Open GoogleCodeExporter opened 8 years ago
Its bare minimum done.
I need to print seed. I guess I commented those lines. The use of same
seed will reproduce the issue.
What causes Segmentation fafault
Original comment by mangesh....@gmail.com
on 3 Dec 2012 at 2:01
I ran gdb it shows
#0 0x009e9183 in initstate_r ()
from /lib/tls/libc.so.6
-bash-3.00# grep initstate_r *
Binary file sim matches
simLibAdv.h: int r= initstate_r(seed,state,64,rand_state);
-bash-3.00#
Common problem with this function is discussed in the below forum but I have no
idea what is causing the segmentaion fault in this function call.
http://stackoverflow.com/questions/4167034/c-initstate-r-crashing
Original comment by sshah...@hawk.iit.edu
on 3 Dec 2012 at 3:31
Original issue reported on code.google.com by
sshah...@hawk.iit.edu
on 3 Dec 2012 at 11:23