Closed stoza closed 3 years ago
I haven't had time to reproduce your problem, but by looking quickly at your code, aren't you missing the following snippet in the simulation code? This would explain the memory access error.
dce.SetStackSize (1 << 20);
Oh yes that's was totally that! thank you!
f77d3e908f66394dfacd5a1108a52d1fd515d523
Description of the problem
I'm currently trying to use ns3 to run some simulation on IS-IS daemon of Frrouting which is a fork of guagga. But Every time I try to run the simulation I have a SIGSEV
So after some research it appear that the line which cause the SIGSEV is the following:
gid_t groups[NGROUPS_MAX] = {};
withNGROUPS_MAX=65536
And that's memset which cause the SIGSEV. Here you have the output of gdb:And here you have a part of the output of valgrind:
So I've try a super simple code which use memset to initialize a big array:
And I've got exactly the same behavior. But when trying with a much smaller array (size=6) there is no problems.
output of ./waf configure
Steps to reproduce
To reproduce just compile the example code given above (and called memset_example in the following) with gcc:
gcc -Wall -fPIC -g -pie -rdynamic -o memset_example memset_example.c
. Then use the executable in a very simple scenario:Then you should be able to have the SIGSEV.
Thanks a lot for your help