Hi there,
so, I am trying to build an network simulator using
parasol on Kubuntu 5.1 i386 gcc 4.02 1Gb Ram amd dual
core 3800+. I use valgrind for inspecting memory
problems. Well parasol seems to mess up my program. The
same occurs when I run the synchro example. I run
valgrind with like this:
"valgrind --log-file=LOG -v --max-stackframe=922117100
--leak-check=yes --show-reachable=yes --error-limit=no
synchro"
and errors are (some of them)
Invalid read of size 1
==11398== at 0x804988D: stack_corruption_tester (in
/home/stamos/Documents/Eggrafa/Ap8/THE_PROJECT/CDNsim_latest_release_cache_emu/parasol/examples/sync$
==11398== by 0x8052D56: get_dss (in
/home/stamos/Documents/Eggrafa/Ap8/THE_PROJECT/CDNsim_latest_release_cache_emu/parasol/examples/synchro)
==11398== by 0x804E3D7: ps_run_parasol (in
/home/stamos/Documents/Eggrafa/Ap8/THE_PROJECT/CDNsim_latest_release_cache_emu/parasol/examples/synchro)
==11398== by 0x8048B44: main (in
/home/stamos/Documents/Eggrafa/Ap8/THE_PROJECT/CDNsim_latest_release_cache_emu/parasol/examples/synchro)
==11398== Address 0x1BA855CC is 95652 bytes inside a
block of size 98304 alloc'd
==11398== at 0x1B9008A2: malloc
(vg_replace_malloc.c:149)
==11398== by 0x8049755: stack_corruption_tester (in
/home/stamos/Documents/Eggrafa/Ap8/THE_PROJECT/CDNsim_latest_release_cache_emu/parasol/examples/sync$
==11398== by 0x8052D56: get_dss (in
/home/stamos/Documents/Eggrafa/Ap8/THE_PROJECT/CDNsim_latest_release_cache_emu/parasol/examples/synchro)
==11398== by 0x804E3D7: ps_run_parasol (in
/home/stamos/Documents/Eggrafa/Ap8/THE_PROJECT/CDNsim_latest_release_cache_emu/parasol/examples/synchro)
==11398== by 0x8048B44: main (in
/home/stamos/Documents/Eggrafa/Ap8/THE_PROJECT/CDNsim_latest_release_cache_emu/parasol/examples/synchro)
--11398-- REDIR: 0x1B99F240 (free) redirected to
0x1B9013D1 (free)
--11398-- REDIR: 0x1B9A5BE0 (strcpy) redirected to
0x1B9028C4 (strcpy)
==11398== Warning: client switching stacks? SP change:
0x52BFE5AC --> 0x1BA8A190
==11398== to suppress, use:
--max-stackframe=924271644 or greater
==11398== further instances of this message
will not be shown.
==11398==
==11398== Invalid read of size 4
==11398== at 0x8053C83: wrapper (in
/home/stamos/Documents/Eggrafa/Ap8/THE_PROJECT/CDNsim_latest_release_cache_emu/parasol/examples/synchro)
==11398== Address 0x1BB43620 is 29688 bytes inside a
block of size 46728 alloc'd
==11398== at 0x1B9008A2: malloc
(vg_replace_malloc.c:149)
==11398==
==11398== Invalid read of size 4
==11398== at 0x8048D56: element (in
/home/stamos/Documents/Eggrafa/Ap8/THE_PROJECT/CDNsim_latest_release_cache_emu/parasol/examples/synchro)
==11398== Address 0x1BB4351C is 29428 bytes inside a
block of size 46728 alloc'd
==11398== at 0x1B9008A2: malloc
(vg_replace_malloc.c:149)
==11398==
==11398== Invalid read of size 4
==11398== at 0x804C38B: ps_send (in
/home/stamos/Documents/Eggrafa/Ap8/THE_PROJECT/CDNsim_latest_release_cache_emu/parasol/examples/synchro)
==11398== Address 0x1BB488C4 is 4012 bytes inside a
block of size 6408 alloc'd
==11398== at 0x1B9008A2: malloc
(vg_replace_malloc.c:149)
I did not compile parasol and synchro with debug info
and optimization.
Any ideas?
Logged In: NO
With RC1 this problem I mentioned looks fixed