View Issue Details

IDProjectCategoryView StatusLast Update
0001560GNUnetutil librarypublic2010-07-03 20:55
ReporterChristian Grothoff Assigned ToChristian Grothoff  
PriorityurgentSeveritycrashReproducibilityrandom
Status closedResolutionfixed 
Summary0001560: double-free reported in gnunet-service-resolver
DescriptionCore was generated by `gnunet-service-resolver -c /home/grothoff/svn/gnunet/src/core/test_core_api_pee'.
Program terminated with signal 6, Aborted.
#0 0x00007f2295477f45 in *__GI_raise (sig=<value optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
64 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
        in ../nptl/sysdeps/unix/sysv/linux/raise.c
(gdb) ba
#0 0x00007f2295477f45 in *__GI_raise (sig=<value optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1 0x00007f229547ad80 in *__GI_abort () at abort.c:88
#2 0x00007f22954ad54d in __libc_message (do_abort=2,
    fmt=0x7fff54c11550 "w-p 0003d000 fe:00 4589743", ' ' <repeats 20 times>, "/home/grothoff/gn9/lib/libgnunetutil.so.4.0.0\n7f2295bdd000-7f2295bfa000 r-xp 00000000 08:05 1251294", ' ' <repeats 20 times>, "/lib/ld-2.10.2.so\n7f2295ddb000-7f22"...) at ../sysdeps/unix/sysv/linux/libc_fatal.c:173
#3 0x00007f22954b6d16 in malloc_printerr (action=3, str=0x7f22955618b8 "double free or corruption (!prev)", ptr=<value optimized out>) at malloc.c:6239
#4 0x00007f22954bb9bc in *__GI___libc_free (mem=<value optimized out>) at malloc.c:3738
#5 0x00007f22959ad75a in GNUNET_xfree_ (ptr=0x7ad600, filename=0x7f22959d45f4 "server.c", linenumber=1237) at common_allocation.c:158
#6 0x00007f22959cc734 in GNUNET_SERVER_client_disconnect (client=0x7ad600) at server.c:1237
#7 0x00007f22959cc832 in GNUNET_SERVER_receive_done (client=0x7ad600, success=-1) at server.c:1303
#8 0x00007f22959cd030 in transmit_response (cls=0x7bd800, size=0, buf=0x0) at server_tc.c:84
#9 0x00007f22959b0f51 in destroy_continuation (cls=0x79d510, tc=0x7fff54c11e70) at connection.c:549
#10 0x00007f22959ca034 in run_ready (sched=0x7fff54c11ee0) at scheduler.c:559
#11 0x00007f22959ca444 in GNUNET_SCHEDULER_run (task=0x7f22959cf8cb <service_task>, task_cls=0x7fff54c12190) at scheduler.c:687
#12 0x00007f22959d07be in GNUNET_SERVICE_run (argc=3, argv=0x7fff54c123d8, serviceName=0x401f0c "resolver", opt=GNUNET_SERVICE_OPTION_NONE, task=0x401c77 <run>, task_cls=0x0)
    at service.c:1404
#13 0x0000000000401cd9 in main (argc=3, argv=0x7fff54c123d8) at gnunet-service-resolver.c:516
Additional InformationSo far I've been unable to reproduce this one on valgrind. Running

while true; do ./test_core_api_start_only && echo ok || break; done

seems to cause the crash reasonably fast on my system (once in 40 runs or so), without causing the test to fail (ARM).
TagsNo tags attached.

Activities

Christian Grothoff

2010-05-26 10:49

manager   ~0004020

*** glibc detected *** gnunet-service-resolver: double free or corruption (!prev): 0x000000000180b600 ***
======= Backtrace: =========
/lib/libc.so.6[0x7fd364a0bd16]
/lib/libc.so.6(cfree+0x6c)[0x7fd364a109bc]
/home/grothoff/gn9/lib/libgnunetutil.so.4(GNUNET_xfree_+0x57)[0x7fd364f0275a]
/home/grothoff/gn9/lib/libgnunetutil.so.4(GNUNET_SERVER_client_disconnect+0x23e)[0x7fd364f21734]
/home/grothoff/gn9/lib/libgnunetutil.so.4(GNUNET_SERVER_receive_done+0x88)[0x7fd364f21832]
/home/grothoff/gn9/lib/libgnunetutil.so.4[0x7fd364f22030]
/home/grothoff/gn9/lib/libgnunetutil.so.4[0x7fd364f05f51]
/home/grothoff/gn9/lib/libgnunetutil.so.4[0x7fd364f1f034]
/home/grothoff/gn9/lib/libgnunetutil.so.4(GNUNET_SCHEDULER_run+0x397)[0x7fd364f1f444]
/home/grothoff/gn9/lib/libgnunetutil.so.4(GNUNET_SERVICE_run+0x481)[0x7fd364f257be]
gnunet-service-resolver[0x401cd9]
/lib/libc.so.6(__libc_start_main+0xfd)[0x7fd3649b9abd]
gnunet-service-resolver[0x400fd9]

Christian Grothoff

2010-05-26 23:29

manager   ~0004022

Not reproduceable on my quad core at home (!). Strange.

Christian Grothoff

2010-07-01 13:46

manager   ~0004051

Fixed in SVN 12077.

Issue History

Date Modified Username Field Change
2010-05-26 10:49 Christian Grothoff New Issue
2010-05-26 10:49 Christian Grothoff Note Added: 0004020
2010-05-26 23:29 Christian Grothoff Note Added: 0004022
2010-07-01 13:46 Christian Grothoff Note Added: 0004051
2010-07-01 13:46 Christian Grothoff Status new => resolved
2010-07-01 13:46 Christian Grothoff Resolution open => fixed
2010-07-01 13:46 Christian Grothoff Assigned To => Christian Grothoff
2010-07-03 20:55 Christian Grothoff Status resolved => closed