This is the mail archive of the frysk@sourceware.org mailing list for the frysk project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Dwarf expertise needed


By the way the only difference between the is that in one main calls first calls secon calls crash. And in the working one main calls second calls crash.

Sami Wagiaalla wrote:
Now the are attached
------------------------------------------------------------------------

#include <stdlib.h>

void crash(int param1){
  int* a = 0;
  a[0] = param1;
}

inline void second(int w){
  crash(0);
}

int main(){

second(0);

  return 0;
}

------------------------------------------------------------------------

#include <stdlib.h>

void crash(int param1){
  int* a = 0;
  a[0] = param1;
}

inline void second(int w){
  crash(0);
}

void first(){
  second(0);
}

int main(){

first(0);

  return 0;
}



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]