View Issue Details

IDProjectCategoryView StatusLast Update
0001920GNUnettesting librarypublic2011-11-30 18:38
ReporterChristian Grothoff Assigned Tomrwiggles  
PriorityurgentSeveritycrashReproducibilityhave not tried
Status closedResolutionfixed 
Target Version0.9.0Fixed in Version0.9.0 
Summary0001920: use-after-free in testing library (with valgrind details)
Description==25299== Invalid read of size 8
==25299== at 0x52A7195: schedule_shutdown_task (testing_group.c:6976)
==25299== by 0x4E6C3C7: run_ready (scheduler.c:684)
==25299== by 0x4E6CB7D: GNUNET_SCHEDULER_run (scheduler.c:864)
==25299== by 0x4E66BEC: GNUNET_PROGRAM_run (program.c:250)
==25299== by 0x403832: check (test_dht_multipeer.c:803)
==25299== by 0x4038E5: main (test_dht_multipeer.c:828)
==25299== Address 0x7309750 is 16 bytes inside a block of size 384 free'd
==25299== at 0x4C268FE: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==25299== by 0x4E3FA36: GNUNET_xfree_ (common_allocation.c:202)
==25299== by 0x529459A: start_fsm (testing.c:543)
==25299== by 0x4E6C3C7: run_ready (scheduler.c:684)
==25299== by 0x4E6CB7D: GNUNET_SCHEDULER_run (scheduler.c:864)
==25299== by 0x4E66BEC: GNUNET_PROGRAM_run (program.c:250)
==25299== by 0x403832: check (test_dht_multipeer.c:803)
==25299== by 0x4038E5: main (test_dht_multipeer.c:828)
==25299==
Steps To ReproduceRun test_dht_multipeer test with valgrind.
Additional InformationLikely related to other crashes reported against testing...
TagsNo tags attached.

Activities

Bart Polot

2011-11-21 18:31

manager   ~0004958

Workaround in r18240 - do no free memory (I can't see any obvious way to access the PeerShutdownContext from the FSM).

Does not look related to other crashes in testing:
*** glibc detected *** /home/gnunet/wachs-lenny-powerpc/wachs-lenny-powerpc/build/src/dht/.libs/lt-test_dht_multipeer: free(): invalid pointer: 0x1018ac70 ***
======= Backtrace: =========
/lib/libc.so.6(+0x82cb4)[0xfda7cb4]
/lib/libc.so.6(cfree+0x8c)[0xfdad32c]
/home/gnunet/wachs-lenny-powerpc/wachs-lenny-powerpc/build/src/util/.libs/libgnunetutil.so.4(GNUNET_xfree_+0x104)[0xff82adc]
/home/gnunet/wachs-lenny-powerpc/wachs-lenny-powerpc/build/src/util/.libs/libgnunetutil.so.4(GNUNET_CONFIGURATION_destroy+0x74)[0xff858ec]
/home/gnunet/wachs-lenny-powerpc/wachs-lenny-powerpc/build/src/testing/.libs/libgnunettesting.so.0(GNUNET_TESTING_daemons_stop+0x694)[0xff1f134]

Issue History

Date Modified Username Field Change
2011-11-21 16:11 Christian Grothoff New Issue
2011-11-21 16:11 Christian Grothoff Status new => assigned
2011-11-21 16:11 Christian Grothoff Assigned To => mrwiggles
2011-11-21 18:31 Bart Polot Note Added: 0004958
2011-11-21 18:31 Bart Polot Status assigned => resolved
2011-11-21 18:31 Bart Polot Fixed in Version => Git master
2011-11-21 18:31 Bart Polot Resolution open => fixed
2011-11-22 20:41 Christian Grothoff Fixed in Version Git master => 0.9.0
2011-11-30 18:38 Christian Grothoff Status resolved => closed