View Issue Details

IDProjectCategoryView StatusLast Update
0002339GNUnetutil librarypublic2012-06-02 19:15
ReporterBart Polot Assigned ToChristian Grothoff  
PriorityimmediateSeveritycrashReproducibilityhave not tried
Status closedResolutionfixed 
Product VersionGit master 
Target Version0.9.3Fixed in Version0.9.3 
Summary0002339: Invalid free in transport service during GNUNET_SERVER_destroy
Description[bart@saturn ~/svn/gnunet/src/nse]$ ./gnunet-nse-profiler -c nse_profiler_test.conf
Hostkeys created Progress: [0%............25%............50%.............75%............100%]
Peers started Progress: [0%............25%............50%.............75%............100%]
Peer connection Progress: [0%............24%............49%.............74%.....Mai 10 15:51:01-904765 nse-profiler-6560 WARNING Failing peer group startup with error: `from connect topology (timeout)'!
May 10 15:51:06-337496 util-scheduler-15827 ERROR Attempt to cancel dead task 1476482048!
May 10 15:51:06-350663 transport-15827 ERROR Assertion failed at scheduler.c:918.
*** glibc detected *** gnunet-service-transport: free(): invalid pointer: 0x00007f5288452738 ***
======= Backtrace: =========
/lib/libc.so.6(+0x78a56)[0x7f528812fa56]
/tmp/bartgnunet/lib/libgnunetutil.so.7(GNUNET_NETWORK_socket_close+0x34)[0x7f5289532cf4]
/tmp/bartgnunet/lib/libgnunetutil.so.7(GNUNET_CONNECTION_destroy+0x122)[0x7f52895206d2]
/tmp/bartgnunet/lib/libgnunetutil.so.7(GNUNET_SERVER_client_disconnect+0x195)[0x7f5289541325]
/tmp/bartgnunet/lib/libgnunetutil.so.7(GNUNET_SERVER_destroy+0xd5)[0x7f52895422c5]
/tmp/bartgnunet/lib/libgnunetutil.so.7(GNUNET_SERVICE_stop+0x24)[0x7f5289549d84]
/tmp/bartgnunet/lib/gnunet/libgnunet_plugin_transport_tcp.so(libgnunet_plugin_transport_tcp_done+0x75)[0x7f5287eb4635]
/tmp/bartgnunet/lib/libgnunetutil.so.7(GNUNET_PLUGIN_unload+0x6c)[0x7f528953873c]
gnunet-service-transport[0x4108f6]
gnunet-service-transport[0x404513]
/tmp/bartgnunet/lib/libgnunetutil.so.7(GNUNET_SCHEDULER_run+0x71a)[0x7f528953f24a]
/tmp/bartgnunet/lib/libgnunetutil.so.7(GNUNET_SERVICE_run+0x7c7)[0x7f5289549037]
gnunet-service-transport[0x402ef9]
/lib/libc.so.6(__libc_start_main+0xf5)[0x7f52880d8455]
gnunet-service-transport[0x402f31]
======= Memory map: ========
00400000-00418000 r-xp 00000000 08:01 2621839 /tmp/bartgnunet/bin/gnunet-service-transport
00617000-00619000 rw-p 00017000 08:01 2621839 /tmp/bartgnunet/bin/gnunet-service-transport
01eb2000-01ef3000 rw-p 00000000 00:00 0 [heap]
7f5287a8f000-7f5287aa4000 r-xp 00000000 08:01 275682 /usr/lib/libgcc_s.so.1
7f5287aa4000-7f5287ca3000 ---p 00015000 08:01 275682 /usr/lib/libgcc_s.so.1
7f5287ca3000-7f5287ca4000 rw-p 00014000 08:01 275682 /usr/lib/libgcc_s.so.1
7f5287ca4000-7f5287cac000 r-xp 00000000 08:01 2621771 /tmp/bartgnunet/lib/libgnunetnat.so.0.0.0
7f5287cac000-7f5287eab000 ---p 00008000 08:01 2621771 /tmp/bartgnunet/lib/libgnunetnat.so.0.0.0
7f5287eab000-7f5287eac000 rw-p 00007000 08:01 2621771 /tmp/bartgnunet/lib/libgnunetnat.so.0.0.0
7f5287eac000-7f5287eb6000 r-xp 00000000 08:01 2621796 /tmp/bartgnunet/lib/gnunet/libgnunet_plugin_transport_tcp.so
7f5287eb6000-7f52880b6000 ---p 0000a000 08:01 2621796 /tmp/bartgnunet/lib/gnunet/libgnunet_plugin_transport_tcp.so
7f52880b6000-7f52880b7000 rw-p 0000a000 08:01 2621796 /tmp/bartgnunet/lib/gnunet/libgnunet_plugin_transport_tcp.so
7f52880b7000-7f528824e000 r-xp 00000000 08:01 2891696 /lib/libc-2.15.so
7f528824e000-7f528844e000 ---p 00197000 08:01 2891696 /lib/libc-2.15.so
7f528844e000-7f5288452000 r--p 00197000 08:01 2891696 /lib/libc-2.15.so
7f5288452000-7f5288454000 rw-p 0019b000 08:01 2891696 /lib/libc-2.15.so
7f5288454000-7f5288458000 rw-p 00000000 00:00 0
7f5288458000-7f528845b000 r-xp 00000000 08:01 2891646 /lib/libdl-2.15.so
7f528845b000-7f528865a000 ---p 00003000 08:01 2891646 /lib/libdl-2.15.so
7f528865a000-7f528865b000 r--p 00002000 08:01 2891646 /lib/libdl-2.15.so
7f528865b000-7f528865c000 rw-p 00003000 08:01 2891646 /lib/libdl-2.15.so
7f528865c000-7f528874f000 r-xp 00000000 08:01 2891649 /lib/libm-2.15.so
7f528874f000-7f528894f000 ---p 000f3000 08:01 2891649 /lib/libm-2.15.so
7f528894f000-7f5288950000 r--p 000f3000 08:01 2891649 /lib/libm-2.15.so
7f5288950000-7f5288951000 rw-p 000f4000 08:01 2891649 /lib/libm-2.15.so
7f5288951000-7f5288a62000 r-xp 00000000 08:01 267336 /usr/lib/libunistring.so.0.1.2
7f5288a62000-7f5288c61000 ---p 00111000 08:01 267336 /usr/lib/libunistring.so.0.1.2
7f5288c61000-7f5288c65000 rw-p 00110000 08:01 267336 /usr/lib/libunistring.so.0.1.2
7f5288c65000-7f5288c66000 rw-p 00000000 00:00 0
7f5288c66000-7f5288c7b000 r-xp 00000000 08:01 268032 /usr/lib/libz.so.1.2.6
7f5288c7b000-7f5288e7a000 ---p 00015000 08:01 268032 /usr/lib/libz.so.1.2.6
7f5288e7a000-7f5288e7b000 r--p 00014000 08:01 268032 /usr/lib/libz.so.1.2.6
7f5288e7b000-7f5288e7c000 rw-p 00015000 08:01 268032 /usr/lib/libz.so.1.2.6
7f5288e7c000-7f5288e85000 r-xp 00000000 08:01 292159 /usr/lib/libltdl.so.7.3.0
7f5288e85000-7f5289084000 ---p 00009000 08:01 292159 /usr/lib/libltdl.so.7.3.0
7f5289084000-7f5289085000 r--p 00008000 08:01 292159 /usr/lib/libltdl.so.7.3.0
7f5289085000-7f5289086000 rw-p 00009000 08:01 292159 /usr/lib/libltdl.so.7.3.0
7f5289086000-7f5289089000 r-xp 00000000 08:01 270378 /usr/lib/libgpg-error.so.0.8.0
7f5289089000-7f5289288000 ---p 00003000 08:01 270378 /usr/lib/libgpg-error.so.0.8.0
7f5289288000-7f5289289000 rw-p 00002000 08:01 270378 /usr/lib/libgpg-error.so.0.8.0
7f5289289000-7f5289302000 r-xp 00000000 08:01 270385 /usr/lib/libgcrypt.so.11.7.0
7f5289302000-7f5289502000 ---p 00079000 08:01 270385 /usr/lib/libgcrypt.so.11.7.0
7f5289502000-7f5289506000 rw-p 00079000 08:01 270385 /usr/lib/libgcrypt.so.11.7.0
7f5289506000-7f528955a000 r-xp 00000000 08:01 2621701 /tmp/bartgnunet/lib/libgnunetutil.so.7.0.0
7f528955a000-7f528975a000 ---p 00054000 08:01 2621701 /tmp/bartgnunet/lib/libgnunetutil.so.7.0.0
7f528975a000-7f528975c000 rw-p 00054000 08:01 2621701 /tmp/bartgnunet/lib/libgnunetutil.so.7.0.0
7f528975c000-7f528975d000 rw-p 00000000 00:00 0
7f528975d000-7f5289763000 r-xp 00000000 08:01 2621753 /tmp/bartgnunet/lib/libgnunetstatistics.so.0.1.0
7f5289763000-7f5289962000 ---p 00006000 08:01 2621753 /tmp/bartgnunet/lib/libgnunetstatistics.so.0.1.0
7f5289962000-7f5289963000 rw-p 00005000 08:01 2621753 /tmp/bartgnunet/lib/libgnunetstatistics.so.0.1.0
7f5289963000-7f5289968000 r-xp 00000000 08:01 2621770 /tmp/bartgnunet/lib/libgnunetpeerinfo.so.0.0.0
7f5289968000-7f5289b67000 ---p 00005000 08:01 2621770 /tmp/bartgnunet/lib/libgnunetpeerinfo.so.0.0.0
7f5289b67000-7f5289b68000 rw-p 00004000 08:01 2621770 /tmp/bartgnunet/lib/libgnunetpeerinfo.so.0.0.0
7f5289b68000-7f5289b6b000 r-xp 00000000 08:01 2621703 /tmp/bartgnunet/lib/libgnunethello.so.0.0.0
7f5289b6b000-7f5289d6a000 ---p 00003000 08:01 2621703 /tmp/bartgnunet/lib/libgnunethello.so.0.0.0
7f5289d6a000-7f5289d6b000 rw-p 00002000 08:01 2621703 /tmp/bartgnunet/lib/libgnunethello.so.0.0.0
7f5289d6b000-7f5289d72000 r-xp 00000000 08:01 2621811 /tmp/bartgnunet/lib/libgnunetats.so.0.1.0
7f5289d72000-7f5289f71000 ---p 00007000 08:01 2621811 /tmp/bartgnunet/lib/libgnunetats.so.0.1.0
7f5289f71000-7f5289f72000 rw-p 00006000 08:01 2621811 /tmp/bartgnunet/lib/libgnunetats.so.0.1.0
7f5289f72000-7f5289f93000 r-xp 00000000 08:01 2891705 /lib/ld-2.15.so
7f528a15f000-7f528a165000 rw-p 00000000 00:00 0
7f528a190000-7f528a193000 rw-p 00000000 00:00 0
7f528a193000-7f528a194000 r--p 00021000 08:01 2891705 /lib/ld-2.15.so
7f528a194000-7f528a195000 rw-p 00022000 08:01 2891705 /lib/ld-2.15.so
7f528a195000-7f528a196000 rw-p 00000000 00:00 0
7fff0081a000-7fff0083d000 rw-p 00000000 00:00 0 [stack]
7fff008e3000-7fff008e4000 r-xp 00000000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
*** glibc detected *** gnunet-service-transport: free(): invalid pointer: 0x00007f59e05a17c8 ***
======= Backtrace: =========
/lib/libc.so.6(+0x78a56)[0x7f59e027ea56]
/tmp/bartgnunet/lib/libgnunetutil.so.7(GNUNET_NETWORK_socket_close+0x34)[0x7f59e1681cf4]
/tmp/bartgnunet/lib/libgnunetutil.so.7(GNUNET_CONNECTION_destroy+0x122)[0x7f59e166f6d2]
/tmp/bartgnunet/lib/libgnunetutil.so.7(GNUNET_SERVER_client_disconnect+0x195)[0x7f59e1690325]
/tmp/bartgnunet/lib/libgnunetutil.so.7(GNUNET_SERVER_destroy+0xd5)[0x7f59e16912c5]
/tmp/bartgnunet/lib/libgnunetutil.so.7(GNUNET_SERVICE_stop+0x24)[0x7f59e1698d84]
/tmp/bartgnunet/lib/gnunet/libgnunet_plugin_transport_tcp.so(libgnunet_plugin_transport_tcp_done+0x75)[0x7f59e0003635]
/tmp/bartgnunet/lib/libgnunetutil.so.7(GNUNET_PLUGIN_unload+0x6c)[0x7f59e168773c]
gnunet-service-transport[0x4108f6]
gnunet-service-transport[0x404513]
/tmp/bartgnunet/lib/libgnunetutil.so.7(GNUNET_SCHEDULER_run+0x71a)[0x7f59e168e24a]
/tmp/bartgnunet/lib/libgnunetutil.so.7(GNUNET_SERVICE_run+0x7c7)[0x7f59e1698037]
gnunet-service-transport[0x402ef9]
/lib/libc.so.6(__libc_start_main+0xf5)[0x7f59e0227455]
gnunet-service-transport[0x402f31]
======= Memory map: ========
00400000-00418000 r-xp 00000000 08:01 2621839 /tmp/bartgnunet/bin/gnunet-service-transport
00617000-00619000 rw-p 00017000 08:01 2621839 /tmp/bartgnunet/bin/gnunet-service-transport
015ed000-0162e000 rw-p 00000000 00:00 0 [heap]
7f59dfbde000-7f59dfbf3000 r-xp 00000000 08:01 275682 /usr/lib/libgcc_s.so.1
7f59dfbf3000-7f59dfdf2000 ---p 00015000 08:01 275682 /usr/lib/libgcc_s.so.1
7f59dfdf2000-7f59dfdf3000 rw-p 00014000 08:01 275682 /usr/lib/libgcc_s.so.1
7f59dfdf3000-7f59dfdfb000 r-xp 00000000 08:01 2621771 /tmp/bartgnunet/lib/libgnunetnat.so.0.0.0
7f59dfdfb000-7f59dfffa000 ---p 00008000 08:01 2621771 /tmp/bartgnunet/lib/libgnunetnat.so.0.0.0
7f59dfffa000-7f59dfffb000 rw-p 00007000 08:01 2621771 /tmp/bartgnunet/lib/libgnunetnat.so.0.0.0
7f59dfffb000-7f59e0005000 r-xp 00000000 08:01 2621796 /tmp/bartgnunet/lib/gnunet/libgnunet_plugin_transport_tcp.so
7f59e0005000-7f59e0205000 ---p 0000a000 08:01 2621796 /tmp/bartgnunet/lib/gnunet/libgnunet_plugin_transport_tcp.so
7f59e0205000-7f59e0206000 rw-p 0000a000 08:01 2621796 /tmp/bartgnunet/lib/gnunet/libgnunet_plugin_transport_tcp.so
7f59e0206000-7f59e039d000 r-xp 00000000 08:01 2891696 /lib/libc-2.15.so
7f59e039d000-7f59e059d000 ---p 00197000 08:01 2891696 /lib/libc-2.15.so
7f59e059d000-7f59e05a1000 r--p 00197000 08:01 2891696 /lib/libc-2.15.so
7f59e05a1000-7f59e05a3000 rw-p 0019b000 08:01 2891696 /lib/libc-2.15.so
7f59e05a3000-7f59e05a7000 rw-p 00000000 00:00 0
7f59e05a7000-7f59e05aa000 r-xp 00000000 08:01 2891646 /lib/libdl-2.15.so
7f59e05aa000-7f59e07a9000 ---p 00003000 08:01 2891646 /lib/libdl-2.15.so
7f59e07a9000-7f59e07aa000 r--p 00002000 08:01 2891646 /lib/libdl-2.15.so
7f59e07aa000-7f59e07ab000 rw-p 00003000 08:01 2891646 /lib/libdl-2.15.so
7f59e07ab000-7f59e089e000 r-xp 00000000 08:01 2891649 /lib/libm-2.15.so
7f59e089e000-7f59e0a9e000 ---p 000f3000 08:01 2891649 /lib/libm-2.15.so
7f59e0a9e000-7f59e0a9f000 r--p 000f3000 08:01 2891649 /lib/libm-2.15.so
7f59e0a9f000-7f59e0aa0000 rw-p 000f4000 08:01 2891649 /lib/libm-2.15.so
7f59e0aa0000-7f59e0bb1000 r-xp 00000000 08:01 267336 /usr/lib/libunistring.so.0.1.2
7f59e0bb1000-7f59e0db0000 ---p 00111000 08:01 267336 /usr/lib/libunistring.so.0.1.2
7f59e0db0000-7f59e0db4000 rw-p 00110000 08:01 267336 /usr/lib/libunistring.so.0.1.2
7f59e0db4000-7f59e0db5000 rw-p 00000000 00:00 0
7f59e0db5000-7f59e0dca000 r-xp 00000000 08:01 268032 /usr/lib/libz.so.1.2.6
7f59e0dca000-7f59e0fc9000 ---p 00015000 08:01 268032 /usr/lib/libz.so.1.2.6
7f59e0fc9000-7f59e0fca000 r--p 00014000 08:01 268032 /usr/lib/libz.so.1.2.6
7f59e0fca000-7f59e0fcb000 rw-p 00015000 08:01 268032 /usr/lib/libz.so.1.2.6
7f59e0fcb000-7f59e0fd4000 r-xp 00000000 08:01 292159 /usr/lib/libltdl.so.7.3.0
7f59e0fd4000-7f59e11d3000 ---p 00009000 08:01 292159 /usr/lib/libltdl.so.7.3.0
7f59e11d3000-7f59e11d4000 r--p 00008000 08:01 292159 /usr/lib/libltdl.so.7.3.0
7f59e11d4000-7f59e11d5000 rw-p 00009000 08:01 292159 /usr/lib/libltdl.so.7.3.0
7f59e11d5000-7f59e11d8000 r-xp 00000000 08:01 270378 /usr/lib/libgpg-error.so.0.8.0
7f59e11d8000-7f59e13d7000 ---p 00003000 08:01 270378 /usr/lib/libgpg-error.so.0.8.0
7f59e13d7000-7f59e13d8000 rw-p 00002000 08:01 270378 /usr/lib/libgpg-error.so.0.8.0
7f59e13d8000-7f59e1451000 r-xp 00000000 08:01 270385 /usr/lib/libgcrypt.so.11.7.0
7f59e1451000-7f59e1651000 ---p 00079000 08:01 270385 /usr/lib/libgcrypt.so.11.7.0
7f59e1651000-7f59e1655000 rw-p 00079000 08:01 270385 /usr/lib/libgcrypt.so.11.7.0
7f59e1655000-7f59e16a9000 r-xp 00000000 08:01 2621701 /tmp/bartgnunet/lib/libgnunetutil.so.7.0.0
7f59e16a9000-7f59e18a9000 ---p 00054000 08:01 2621701 /tmp/bartgnunet/lib/libgnunetutil.so.7.0.0
7f59e18a9000-7f59e18ab000 rw-p 00054000 08:01 2621701 /tmp/bartgnunet/lib/libgnunetutil.so.7.0.0
7f59e18ab000-7f59e18ac000 rw-p 00000000 00:00 0
7f59e18ac000-7f59e18b2000 r-xp 00000000 08:01 2621753 /tmp/bartgnunet/lib/libgnunetstatistics.so.0.1.0
7f59e18b2000-7f59e1ab1000 ---p 00006000 08:01 2621753 /tmp/bartgnunet/lib/libgnunetstatistics.so.0.1.0
7f59e1ab1000-7f59e1ab2000 rw-p 00005000 08:01 2621753 /tmp/bartgnunet/lib/libgnunetstatistics.so.0.1.0
7f59e1ab2000-7f59e1ab7000 r-xp 00000000 08:01 2621770 /tmp/bartgnunet/lib/libgnunetpeerinfo.so.0.0.0
7f59e1ab7000-7f59e1cb6000 ---p 00005000 08:01 2621770 /tmp/bartgnunet/lib/libgnunetpeerinfo.so.0.0.0
7f59e1cb6000-7f59e1cb7000 rw-p 00004000 08:01 2621770 /tmp/bartgnunet/lib/libgnunetpeerinfo.so.0.0.0
7f59e1cb7000-7f59e1cba000 r-xp 00000000 08:01 2621703 /tmp/bartgnunet/lib/libgnunethello.so.0.0.0
7f59e1cba000-7f59e1eb9000 ---p 00003000 08:01 2621703 /tmp/bartgnunet/lib/libgnunethello.so.0.0.0
7f59e1eb9000-7f59e1eba000 rw-p 00002000 08:01 2621703 /tmp/bartgnunet/lib/libgnunethello.so.0.0.0
7f59e1eba000-7f59e1ec1000 r-xp 00000000 08:01 2621811 /tmp/bartgnunet/lib/libgnunetats.so.0.1.0
7f59e1ec1000-7f59e20c0000 ---p 00007000 08:01 2621811 /tmp/bartgnunet/lib/libgnunetats.so.0.1.0
7f59e20c0000-7f59e20c1000 rw-p 00006000 08:01 2621811 /tmp/bartgnunet/lib/libgnunetats.so.0.1.0
7f59e20c1000-7f59e20e2000 r-xp 00000000 08:01 2891705 /lib/ld-2.15.so
7f59e22ae000-7f59e22b4000 rw-p 00000000 00:00 0
7f59e22df000-7f59e22e2000 rw-p 00000000 00:00 0
7f59e22e2000-7f59e22e3000 r--p 00021000 08:01 2891705 /lib/ld-2.15.so
7f59e22e3000-7f59e22e4000 rw-p 00022000 08:01 2891705 /lib/ld-2.15.so
7f59e22e4000-7f59e22e5000 rw-p 00000000 00:00 0
7fffee0e5000-7fffee107000 rw-p 00000000 00:00 0 [stack]
7fffee115000-7fffee116000 r-xp 00000000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
May 10 15:51:07-332025 util-scheduler-29095 ERROR Attempt to cancel dead task 1476482048!
May 10 15:51:07-350688 transport-29095 ERROR Assertion failed at scheduler.c:918.
May 10 15:51:07-977182 util-scheduler-23359 ERROR Attempt to cancel dead task 1476482048!
May 10 15:51:07-977988 transport-23359 ERROR Assertion failed at scheduler.c:918.
Mai 10 15:52:10-285322 nse-profiler-6560 ERROR Assertion failed at testing_group.c:5314.
Aborted (core dumped)



[bart@saturn ~/svn/gnunet/src/nse]$ gdb /tmp/bartgnunet/bin/gnunet-service-transport --core core.11880
GNU gdb (GDB) 7.4.1
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /tmp/bartgnunet/bin/gnunet-service-transport...done.

warning: core file may not match specified executable file.
[New LWP 11880]

warning: Can't read pathname for load map: Input/output error.
Core was generated by `gnunet-service-transport -c /tmp/nse-profiler//3784//gnunet-testing-config7mWCA'.
Program terminated with signal 6, Aborted.
#0 0x00007f59e023ac35 in raise () from /lib/libc.so.6
(gdb) bt full
#0 0x00007f59e023ac35 in raise () from /lib/libc.so.6
No symbol table info available.
#1 0x00007f59e023c0b8 in abort () from /lib/libc.so.6
No symbol table info available.
#2 0x00007f59e0278e5b in __libc_message () from /lib/libc.so.6
No symbol table info available.
#3 0x00007f59e027ea56 in malloc_printerr () from /lib/libc.so.6
No symbol table info available.
#4 0x00007f59e1681cf4 in GNUNET_NETWORK_socket_close (desc=0x1604ee0) at network.c:375
        __x__ = <optimized out>
        ret = -1
#5 0x00007f59e166f6d2 in GNUNET_CONNECTION_destroy (connection=0x160dfa0) at connection.c:971
        pos = 0x7f59e05a17c8
        __FUNCTION__ = "GNUNET_CONNECTION_destroy"
#6 0x00007f59e1690325 in GNUNET_SERVER_client_disconnect (client=0x160e070) at server.c:1342
        server = 0x15f4680
        prev = <optimized out>
        pos = <optimized out>
        n = <optimized out>
        rc = 0
        __FUNCTION__ = "GNUNET_SERVER_client_disconnect"
#7 0x00007f59e16912c5 in GNUNET_SERVER_destroy (server=0x15f4680) at server.c:709
        hpos = <optimized out>
        npos = <optimized out>
        i = <optimized out>
        __FUNCTION__ = "GNUNET_SERVER_destroy"
#8 0x00007f59e1698d84 in GNUNET_SERVICE_stop (sctx=0x15f3670) at service.c:1892
        i = <optimized out>
#9 0x00007f59e0003635 in libgnunet_plugin_transport_tcp_done (cls=0x15f37e0) at plugin_transport_tcp.c:2299
        api = 0x15f37e0
        plugin = 0x15f4880
        tcp_probe = <optimized out>
        __FUNCTION__ = "libgnunet_plugin_transport_tcp_done"
#10 0x00007f59e168773c in GNUNET_PLUGIN_unload (library_name=0x15f24b0 "libgnunet_plugin_transport_tcp", arg=0x15f37e0)
    at plugin.c:270
        pos = 0x15f3480
        prev = <optimized out>
        done = <optimized out>
        ret = 0x0
#11 0x00000000004108f6 in GST_plugins_unload () at gnunet-service-transport_plugins.c:171
        plug = 0x15f3350
        __FUNCTION__ = "GST_plugins_unload"
#12 0x0000000000404513 in shutdown_task (cls=<optimized out>, tc=<optimized out>) at gnunet-service-transport.c:526
No locals.
#13 0x00007f59e168e24a in run_ready (ws=0x15f0180, rs=0x15f00f0) at scheduler.c:602
        p = <optimized out>
        pos = 0x15f2280
        tc = {reason = GNUNET_SCHEDULER_REASON_SHUTDOWN, read_ready = 0x15f00f0, write_ready = 0x15f0180}
#14 GNUNET_SCHEDULER_run (task=task@entry=0x7f59e1695540 <service_task>, task_cls=task_cls@entry=0x7fffee105f00)
    at scheduler.c:790
        rs = 0x15f00f0
        ws = <optimized out>
        timeout = <optimized out>
        ret = <optimized out>
        shc_int = 0x15f0210
        shc_term = 0x15f1d60
        shc_quit = 0x15f1ec0
        shc_hup = 0x15f1f70
        shc_pipe = 0x15f1e10
        last_tr = 7619
        busy_wait_warning = 1
        pr = 0x15efd50
        c = 0 '\000'
        __FUNCTION__ = "GNUNET_SCHEDULER_run"
#15 0x00007f59e1698037 in GNUNET_SERVICE_run (argc=<optimized out>, argv=<optimized out>,
    service_name=service_name@entry=0x41352f "transport", options=options@entry=GNUNET_SERVICE_OPTION_NONE,
    task=task@entry=0x403010 <run>, task_cls=task_cls@entry=0x0) at service.c:1773
        err = 0
        cfg_fn = 0x15ee090 "/tmp/nse-profiler//3784//gnunet-testing-config7mWCAo"
        loglev = 0x0
        logfile = 0x0
        do_daemonize = 0
        i = <optimized out>
        skew_offset = 140024010347784
        skew_variance = 140737187438736
        clock_offset = <optimized out>
---Type <return> to continue, or q <return> to quit---
        sctx = {cfg = 0x15edf60, server = 0x15f20e0, addrs = 0x0, service_name = 0x41352f "transport",
          task = 0x403010 <run>, task_cls = 0x0, v4_denied = 0x0, v6_denied = 0x0, v4_allowed = 0x15efd60,
          v6_allowed = 0x15efda0, my_handlers = 0x15f2160, addrlens = 0x0, lsocks = 0x15efcd0, shutdown_task = 4,
          timeout = {rel_value = 18446744073709551615}, ret = 1, ready_confirm_fd = -1, require_found = 1,
          match_uid = 1, match_gid = 1, options = GNUNET_SERVICE_OPTION_NONE}
        cfg = 0x15edf60
        service_options = {{shortName = 99 'c', name = 0x7f59e169f247 "config",
            argumentHelp = 0x7f59e169f24e "FILENAME", description = 0x7f59e169f2f8 "use configuration file FILENAME",
            require_argument = 1, processor = 0x7f59e1680330 <GNUNET_GETOPT_set_string>, scls = 0x7fffee105ed0}, {
            shortName = 100 'd', name = 0x7f59e16a0a00 "daemonize", argumentHelp = 0x0,
            description = 0x7f59e16a0e20 "do daemonize (detach from terminal)", require_argument = 0,
            processor = 0x7f59e1680320 <GNUNET_GETOPT_set_one>, scls = 0x7fffee105ebc}, {shortName = 104 'h',
            name = 0x7f59e169f262 "help", argumentHelp = 0x0, description = 0x7f59e169f257 "print this help",
            require_argument = 0, processor = 0x7f59e167ffd0 <GNUNET_GETOPT_format_help_>, scls = 0x0}, {
            shortName = 76 'L', name = 0x7f59e169f267 "log", argumentHelp = 0x7f59e169f26b "LOGLEVEL",
            description = 0x7f59e169f318 "configure logging to use LOGLEVEL", require_argument = 1,
            processor = 0x7f59e1680330 <GNUNET_GETOPT_set_string>, scls = 0x7fffee105ed8}, {shortName = 108 'l',
            name = 0x7f59e169f274 "logfile", argumentHelp = 0x7f59e169c45e "LOGFILE",
            description = 0x7f59e169f340 "configure logging to write logs to LOGFILE", require_argument = 1,
            processor = 0x7f59e1680330 <GNUNET_GETOPT_set_string>, scls = 0x7fffee105ee0}, {shortName = 118 'v',
            name = 0x7f59e169f27c "version", argumentHelp = 0x0,
            description = 0x7f59e169f284 "print the version number", require_argument = 0,
            processor = 0x7f59e167ffa0 <GNUNET_GETOPT_print_version_>, scls = 0x7f59e169f29d}, {shortName = 0 '\000',
            name = 0x0, argumentHelp = 0x0, description = 0x0, require_argument = 0, processor = 0, scls = 0x0}}
        __FUNCTION__ = "GNUNET_SERVICE_run"
#16 0x0000000000402ef9 in main (argc=<optimized out>, argv=<optimized out>) at gnunet-service-transport.c:637
No locals.
Steps To ReproduceRun gnunet-nse-profiler changing nse_profiler.conf to user TCP as transport plugin
Additional InformationMore core dumps, some are of depth 16 some are 14:

[bart@saturn ~/svn/gnunet/src/nse]$ gdb /tmp/bartgnunet/bin/gnunet-service-transport --core core.15827
GNU gdb (GDB) 7.4.1
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /tmp/bartgnunet/bin/gnunet-service-transport...done.

warning: core file may not match specified executable file.
[New LWP 15827]

warning: Can't read pathname for load map: Input/output error.
Core was generated by `gnunet-service-transport -c /tmp/nse-profiler//22//gnunet-testing-configZUHoB2'.
Program terminated with signal 6, Aborted.
#0 0x00007fa7d4837c35 in raise () from /lib/libc.so.6
(gdb) bt full
#0 0x00007fa7d4837c35 in raise () from /lib/libc.so.6
No symbol table info available.
#1 0x00007fa7d48390b8 in abort () from /lib/libc.so.6
No symbol table info available.
#2 0x00007fa7d5c65919 in GNUNET_abort () at common_logging.c:273
No locals.
#3 0x00007fa7d5c89eb0 in GNUNET_SCHEDULER_cancel (task=<optimized out>) at scheduler.c:884
        t = <optimized out>
        prev = <optimized out>
        p = <optimized out>
        to = <optimized out>
        ret = <optimized out>
        __FUNCTION__ = "GNUNET_SCHEDULER_cancel"
#4 0x00007fa7d5c8d38a in GNUNET_SERVER_client_disconnect (client=0x19de740) at server.c:1275
        server = 0x54
        prev = <optimized out>
        pos = <optimized out>
        n = <optimized out>
        rc = <optimized out>
        __FUNCTION__ = "GNUNET_SERVER_client_disconnect"
#5 0x00007fa7d5c8e2c5 in GNUNET_SERVER_destroy (server=0x19dc6a0) at server.c:709
        hpos = <optimized out>
        npos = <optimized out>
        i = <optimized out>
        __FUNCTION__ = "GNUNET_SERVER_destroy"
#6 0x00007fa7d5c95d84 in GNUNET_SERVICE_stop (sctx=0x19db6a0) at service.c:1892
        i = <optimized out>
#7 0x00007fa7d4600635 in libgnunet_plugin_transport_tcp_done (cls=0x19dcf60) at plugin_transport_tcp.c:2299
        api = 0x19dcf60
        plugin = 0x19dc720
        tcp_probe = <optimized out>
        __FUNCTION__ = "libgnunet_plugin_transport_tcp_done"
#8 0x00007fa7d5c8473c in GNUNET_PLUGIN_unload (library_name=0x19db2b0 "libgnunet_plugin_transport_tcp", arg=0x19dcf60)
    at plugin.c:270
        pos = 0x19db410
        prev = <optimized out>
        done = <optimized out>
        ret = 0x0
#9 0x00000000004108f6 in GST_plugins_unload () at gnunet-service-transport_plugins.c:171
        plug = 0x19db2e0
        __FUNCTION__ = "GST_plugins_unload"
#10 0x0000000000404513 in shutdown_task (cls=<optimized out>, tc=<optimized out>) at gnunet-service-transport.c:526
No locals.
#11 0x00007fa7d5c8b24a in run_ready (ws=0x19d8180, rs=0x19d80f0) at scheduler.c:602
        p = <optimized out>
        pos = 0x19da290
        tc = {reason = GNUNET_SCHEDULER_REASON_SHUTDOWN, read_ready = 0x19d80f0, write_ready = 0x19d8180}
#12 GNUNET_SCHEDULER_run (task=task@entry=0x7fa7d5c92540 <service_task>, task_cls=task_cls@entry=0x7fff7b5ca280)
    at scheduler.c:790
        rs = 0x19d80f0
        ws = <optimized out>
        timeout = <optimized out>
        ret = <optimized out>
        shc_int = 0x19d8210
        shc_term = 0x19d9d50
        shc_quit = 0x19d9eb0
        shc_hup = 0x19d9f60
        shc_pipe = 0x19d9e00
        last_tr = 3715
        busy_wait_warning = 0
        pr = 0x19d7d50
        c = 0 '\000'
        __FUNCTION__ = "GNUNET_SCHEDULER_run"
#13 0x00007fa7d5c95037 in GNUNET_SERVICE_run (argc=<optimized out>, argv=<optimized out>,
    service_name=service_name@entry=0x41352f "transport", options=options@entry=GNUNET_SERVICE_OPTION_NONE,
    task=task@entry=0x403010 <run>, task_cls=task_cls@entry=0x0) at service.c:1773
        err = 0
        cfg_fn = 0x19d6090 "/tmp/nse-profiler//22//gnunet-testing-configZUHoB2"
        loglev = 0x0
        logfile = 0x0
        do_daemonize = 0
        i = <optimized out>
        skew_offset = 140358822749448
        skew_variance = 140735263056912
        clock_offset = <optimized out>
        sctx = {cfg = 0x19d5f60, server = 0x19da0d0, addrs = 0x0, service_name = 0x41352f "transport",
---Type <return> to continue, or q <return> to quit---
          task = 0x403010 <run>, task_cls = 0x0, v4_denied = 0x0, v6_denied = 0x0, v4_allowed = 0x19d7d60,
          v6_allowed = 0x19d7da0, my_handlers = 0x19da150, addrlens = 0x0, lsocks = 0x19d7cd0, shutdown_task = 4,
          timeout = {rel_value = 18446744073709551615}, ret = 1, ready_confirm_fd = -1, require_found = 1,
          match_uid = 1, match_gid = 1, options = GNUNET_SERVICE_OPTION_NONE}
        cfg = 0x19d5f60
        service_options = {{shortName = 99 'c', name = 0x7fa7d5c9c247 "config",
            argumentHelp = 0x7fa7d5c9c24e "FILENAME", description = 0x7fa7d5c9c2f8 "use configuration file FILENAME",
            require_argument = 1, processor = 0x7fa7d5c7d330 <GNUNET_GETOPT_set_string>, scls = 0x7fff7b5ca250}, {
            shortName = 100 'd', name = 0x7fa7d5c9da00 "daemonize", argumentHelp = 0x0,
            description = 0x7fa7d5c9de20 "do daemonize (detach from terminal)", require_argument = 0,
            processor = 0x7fa7d5c7d320 <GNUNET_GETOPT_set_one>, scls = 0x7fff7b5ca23c}, {shortName = 104 'h',
            name = 0x7fa7d5c9c262 "help", argumentHelp = 0x0, description = 0x7fa7d5c9c257 "print this help",
            require_argument = 0, processor = 0x7fa7d5c7cfd0 <GNUNET_GETOPT_format_help_>, scls = 0x0}, {
            shortName = 76 'L', name = 0x7fa7d5c9c267 "log", argumentHelp = 0x7fa7d5c9c26b "LOGLEVEL",
            description = 0x7fa7d5c9c318 "configure logging to use LOGLEVEL", require_argument = 1,
            processor = 0x7fa7d5c7d330 <GNUNET_GETOPT_set_string>, scls = 0x7fff7b5ca258}, {shortName = 108 'l',
            name = 0x7fa7d5c9c274 "logfile", argumentHelp = 0x7fa7d5c9945e "LOGFILE",
            description = 0x7fa7d5c9c340 "configure logging to write logs to LOGFILE", require_argument = 1,
            processor = 0x7fa7d5c7d330 <GNUNET_GETOPT_set_string>, scls = 0x7fff7b5ca260}, {shortName = 118 'v',
            name = 0x7fa7d5c9c27c "version", argumentHelp = 0x0,
            description = 0x7fa7d5c9c284 "print the version number", require_argument = 0,
            processor = 0x7fa7d5c7cfa0 <GNUNET_GETOPT_print_version_>, scls = 0x7fa7d5c9c29d}, {shortName = 0 '\000',
            name = 0x0, argumentHelp = 0x0, description = 0x0, require_argument = 0, processor = 0, scls = 0x0}}
        __FUNCTION__ = "GNUNET_SERVICE_run"
#14 0x0000000000402ef9 in main (argc=<optimized out>, argv=<optimized out>) at gnunet-service-transport.c:637
No locals.
(gdb)



[bart@saturn ~/svn/gnunet/src/nse]$ gdb /tmp/bartgnunet/bin/gnunet-service-transport --core core.23359
GNU gdb (GDB) 7.4.1
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /tmp/bartgnunet/bin/gnunet-service-transport...done.

warning: core file may not match specified executable file.
[New LWP 23359]

warning: Can't read pathname for load map: Input/output error.
Core was generated by `gnunet-service-transport -c /tmp/nse-profiler//36//gnunet-testing-configBilNhB'.
Program terminated with signal 6, Aborted.
#0 0x00007ff7877f5c35 in raise () from /lib/libc.so.6
(gdb) bt full
#0 0x00007ff7877f5c35 in raise () from /lib/libc.so.6
No symbol table info available.
#1 0x00007ff7877f70b8 in abort () from /lib/libc.so.6
No symbol table info available.
#2 0x00007ff788c23919 in GNUNET_abort () at common_logging.c:273
No locals.
#3 0x00007ff788c47eb0 in GNUNET_SCHEDULER_cancel (task=<optimized out>) at scheduler.c:884
        t = <optimized out>
        prev = <optimized out>
        p = <optimized out>
        to = <optimized out>
        ret = <optimized out>
        __FUNCTION__ = "GNUNET_SCHEDULER_cancel"
#4 0x00007ff788c4b38a in GNUNET_SERVER_client_disconnect (client=0x171f860) at server.c:1275
        server = 0x54
        prev = <optimized out>
        pos = <optimized out>
        n = <optimized out>
        rc = <optimized out>
        __FUNCTION__ = "GNUNET_SERVER_client_disconnect"
#5 0x00007ff788c4c2c5 in GNUNET_SERVER_destroy (server=0x17056a0) at server.c:709
        hpos = <optimized out>
        npos = <optimized out>
        i = <optimized out>
        __FUNCTION__ = "GNUNET_SERVER_destroy"
#6 0x00007ff788c53d84 in GNUNET_SERVICE_stop (sctx=0x17046a0) at service.c:1892
        i = <optimized out>
#7 0x00007ff7875be635 in libgnunet_plugin_transport_tcp_done (cls=0x1705f60) at plugin_transport_tcp.c:2299
        api = 0x1705f60
        plugin = 0x1705720
        tcp_probe = <optimized out>
        __FUNCTION__ = "libgnunet_plugin_transport_tcp_done"
#8 0x00007ff788c4273c in GNUNET_PLUGIN_unload (library_name=0x17042b0 "libgnunet_plugin_transport_tcp", arg=0x1705f60)
    at plugin.c:270
        pos = 0x1704410
        prev = <optimized out>
        done = <optimized out>
        ret = 0x0
#9 0x00000000004108f6 in GST_plugins_unload () at gnunet-service-transport_plugins.c:171
        plug = 0x17042e0
        __FUNCTION__ = "GST_plugins_unload"
#10 0x0000000000404513 in shutdown_task (cls=<optimized out>, tc=<optimized out>) at gnunet-service-transport.c:526
No locals.
#11 0x00007ff788c4924a in run_ready (ws=0x1701180, rs=0x17010f0) at scheduler.c:602
        p = <optimized out>
        pos = 0x1703290
        tc = {reason = GNUNET_SCHEDULER_REASON_SHUTDOWN, read_ready = 0x17010f0, write_ready = 0x1701180}
#12 GNUNET_SCHEDULER_run (task=task@entry=0x7ff788c50540 <service_task>, task_cls=task_cls@entry=0x7fff2ac2ca80)
    at scheduler.c:790
        rs = 0x17010f0
        ws = <optimized out>
        timeout = <optimized out>
        ret = <optimized out>
        shc_int = 0x1701210
        shc_term = 0x1702d50
        shc_quit = 0x1702eb0
        shc_hup = 0x1702f60
        shc_pipe = 0x1702e00
        last_tr = 7719
        busy_wait_warning = 1
        pr = 0x1700d50
        c = 0 '\000'
        __FUNCTION__ = "GNUNET_SCHEDULER_run"
#13 0x00007ff788c53037 in GNUNET_SERVICE_run (argc=<optimized out>, argv=<optimized out>,
    service_name=service_name@entry=0x41352f "transport", options=options@entry=GNUNET_SERVICE_OPTION_NONE,
    task=task@entry=0x403010 <run>, task_cls=task_cls@entry=0x0) at service.c:1773
        err = 0
        cfg_fn = 0x16ff090 "/tmp/nse-profiler//36//gnunet-testing-configBilNhB"
        loglev = 0x0
        logfile = 0x0
        do_daemonize = 0
        i = <optimized out>
        skew_offset = 140701128017160
        skew_variance = 140733910797328
        clock_offset = <optimized out>
        sctx = {cfg = 0x16fef60, server = 0x17030d0, addrs = 0x0, service_name = 0x41352f "transport",
---Type <return> to continue, or q <return> to quit---
          task = 0x403010 <run>, task_cls = 0x0, v4_denied = 0x0, v6_denied = 0x0, v4_allowed = 0x1700d60,
          v6_allowed = 0x1700da0, my_handlers = 0x1703150, addrlens = 0x0, lsocks = 0x1700cd0, shutdown_task = 4,
          timeout = {rel_value = 18446744073709551615}, ret = 1, ready_confirm_fd = -1, require_found = 1,
          match_uid = 1, match_gid = 1, options = GNUNET_SERVICE_OPTION_NONE}
        cfg = 0x16fef60
        service_options = {{shortName = 99 'c', name = 0x7ff788c5a247 "config",
            argumentHelp = 0x7ff788c5a24e "FILENAME", description = 0x7ff788c5a2f8 "use configuration file FILENAME",
            require_argument = 1, processor = 0x7ff788c3b330 <GNUNET_GETOPT_set_string>, scls = 0x7fff2ac2ca50}, {
            shortName = 100 'd', name = 0x7ff788c5ba00 "daemonize", argumentHelp = 0x0,
            description = 0x7ff788c5be20 "do daemonize (detach from terminal)", require_argument = 0,
            processor = 0x7ff788c3b320 <GNUNET_GETOPT_set_one>, scls = 0x7fff2ac2ca3c}, {shortName = 104 'h',
            name = 0x7ff788c5a262 "help", argumentHelp = 0x0, description = 0x7ff788c5a257 "print this help",
            require_argument = 0, processor = 0x7ff788c3afd0 <GNUNET_GETOPT_format_help_>, scls = 0x0}, {
            shortName = 76 'L', name = 0x7ff788c5a267 "log", argumentHelp = 0x7ff788c5a26b "LOGLEVEL",
            description = 0x7ff788c5a318 "configure logging to use LOGLEVEL", require_argument = 1,
            processor = 0x7ff788c3b330 <GNUNET_GETOPT_set_string>, scls = 0x7fff2ac2ca58}, {shortName = 108 'l',
            name = 0x7ff788c5a274 "logfile", argumentHelp = 0x7ff788c5745e "LOGFILE",
            description = 0x7ff788c5a340 "configure logging to write logs to LOGFILE", require_argument = 1,
            processor = 0x7ff788c3b330 <GNUNET_GETOPT_set_string>, scls = 0x7fff2ac2ca60}, {shortName = 118 'v',
            name = 0x7ff788c5a27c "version", argumentHelp = 0x0,
            description = 0x7ff788c5a284 "print the version number", require_argument = 0,
            processor = 0x7ff788c3afa0 <GNUNET_GETOPT_print_version_>, scls = 0x7ff788c5a29d}, {shortName = 0 '\000',
            name = 0x0, argumentHelp = 0x0, description = 0x0, require_argument = 0, processor = 0, scls = 0x0}}
        __FUNCTION__ = "GNUNET_SERVICE_run"
#14 0x0000000000402ef9 in main (argc=<optimized out>, argv=<optimized out>) at gnunet-service-transport.c:637
No locals.
(gdb)

[bart@saturn ~/svn/gnunet/src/nse]$ gdb /tmp/bartgnunet/bin/gnunet-service-transport --core core.29095
GNU gdb (GDB) 7.4.1
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /tmp/bartgnunet/bin/gnunet-service-transport...done.

warning: core file may not match specified executable file.
[New LWP 29095]

warning: Can't read pathname for load map: Input/output error.
Core was generated by `gnunet-service-transport -c /tmp/nse-profiler//3974//gnunet-testing-configxDwsJ'.
Program terminated with signal 6, Aborted.
#0 0x00007f3309b0fc35 in raise () from /lib/libc.so.6
(gdb) bt full
#0 0x00007f3309b0fc35 in raise () from /lib/libc.so.6
No symbol table info available.
#1 0x00007f3309b110b8 in abort () from /lib/libc.so.6
No symbol table info available.
#2 0x00007f330af3d919 in GNUNET_abort () at common_logging.c:273
No locals.
#3 0x00007f330af61eb0 in GNUNET_SCHEDULER_cancel (task=<optimized out>) at scheduler.c:884
        t = <optimized out>
        prev = <optimized out>
        p = <optimized out>
        to = <optimized out>
        ret = <optimized out>
        __FUNCTION__ = "GNUNET_SCHEDULER_cancel"
#4 0x00007f330af6538a in GNUNET_SERVER_client_disconnect (client=0x1c7a450) at server.c:1275
        server = 0x54
        prev = <optimized out>
        pos = <optimized out>
        n = <optimized out>
        rc = <optimized out>
        __FUNCTION__ = "GNUNET_SERVER_client_disconnect"
#5 0x00007f330af662c5 in GNUNET_SERVER_destroy (server=0x1c58680) at server.c:709
        hpos = <optimized out>
        npos = <optimized out>
        i = <optimized out>
        __FUNCTION__ = "GNUNET_SERVER_destroy"
#6 0x00007f330af6dd84 in GNUNET_SERVICE_stop (sctx=0x1c57670) at service.c:1892
        i = <optimized out>
#7 0x00007f33098d8635 in libgnunet_plugin_transport_tcp_done (cls=0x1c577e0) at plugin_transport_tcp.c:2299
        api = 0x1c577e0
        plugin = 0x1c58880
        tcp_probe = <optimized out>
        __FUNCTION__ = "libgnunet_plugin_transport_tcp_done"
#8 0x00007f330af5c73c in GNUNET_PLUGIN_unload (library_name=0x1c564b0 "libgnunet_plugin_transport_tcp", arg=0x1c577e0)
    at plugin.c:270
        pos = 0x1c57480
        prev = <optimized out>
        done = <optimized out>
        ret = 0x0
#9 0x00000000004108f6 in GST_plugins_unload () at gnunet-service-transport_plugins.c:171
        plug = 0x1c57350
        __FUNCTION__ = "GST_plugins_unload"
#10 0x0000000000404513 in shutdown_task (cls=<optimized out>, tc=<optimized out>) at gnunet-service-transport.c:526
No locals.
#11 0x00007f330af6324a in run_ready (ws=0x1c54180, rs=0x1c540f0) at scheduler.c:602
        p = <optimized out>
        pos = 0x1c56280
        tc = {reason = GNUNET_SCHEDULER_REASON_SHUTDOWN, read_ready = 0x1c540f0, write_ready = 0x1c54180}
#12 GNUNET_SCHEDULER_run (task=task@entry=0x7f330af6a540 <service_task>, task_cls=task_cls@entry=0x7fff7d2dc3e0)
    at scheduler.c:790
        rs = 0x1c540f0
        ws = <optimized out>
        timeout = <optimized out>
        ret = <optimized out>
        shc_int = 0x1c54210
        shc_term = 0x1c55d60
        shc_quit = 0x1c55ec0
        shc_hup = 0x1c55f70
        shc_pipe = 0x1c55e10
        last_tr = 12368
        busy_wait_warning = 1
        pr = 0x1c53d50
        c = 0 '\000'
        __FUNCTION__ = "GNUNET_SCHEDULER_run"
#13 0x00007f330af6d037 in GNUNET_SERVICE_run (argc=<optimized out>, argv=<optimized out>,
    service_name=service_name@entry=0x41352f "transport", options=options@entry=GNUNET_SERVICE_OPTION_NONE,
    task=task@entry=0x403010 <run>, task_cls=task_cls@entry=0x0) at service.c:1773
        err = 0
        cfg_fn = 0x1c52090 "/tmp/nse-profiler//3974//gnunet-testing-configxDwsJD"
        loglev = 0x0
        logfile = 0x0
        do_daemonize = 0
        i = <optimized out>
        skew_offset = 139857203750152
        skew_variance = 140735293539696
        clock_offset = <optimized out>
        sctx = {cfg = 0x1c51f60, server = 0x1c560e0, addrs = 0x0, service_name = 0x41352f "transport",
---Type <return> to continue, or q <return> to quit---
          task = 0x403010 <run>, task_cls = 0x0, v4_denied = 0x0, v6_denied = 0x0, v4_allowed = 0x1c53d60,
          v6_allowed = 0x1c53da0, my_handlers = 0x1c56160, addrlens = 0x0, lsocks = 0x1c53cd0, shutdown_task = 4,
          timeout = {rel_value = 18446744073709551615}, ret = 1, ready_confirm_fd = -1, require_found = 1,
          match_uid = 1, match_gid = 1, options = GNUNET_SERVICE_OPTION_NONE}
        cfg = 0x1c51f60
        service_options = {{shortName = 99 'c', name = 0x7f330af74247 "config",
            argumentHelp = 0x7f330af7424e "FILENAME", description = 0x7f330af742f8 "use configuration file FILENAME",
            require_argument = 1, processor = 0x7f330af55330 <GNUNET_GETOPT_set_string>, scls = 0x7fff7d2dc3b0}, {
            shortName = 100 'd', name = 0x7f330af75a00 "daemonize", argumentHelp = 0x0,
            description = 0x7f330af75e20 "do daemonize (detach from terminal)", require_argument = 0,
            processor = 0x7f330af55320 <GNUNET_GETOPT_set_one>, scls = 0x7fff7d2dc39c}, {shortName = 104 'h',
            name = 0x7f330af74262 "help", argumentHelp = 0x0, description = 0x7f330af74257 "print this help",
            require_argument = 0, processor = 0x7f330af54fd0 <GNUNET_GETOPT_format_help_>, scls = 0x0}, {
            shortName = 76 'L', name = 0x7f330af74267 "log", argumentHelp = 0x7f330af7426b "LOGLEVEL",
            description = 0x7f330af74318 "configure logging to use LOGLEVEL", require_argument = 1,
            processor = 0x7f330af55330 <GNUNET_GETOPT_set_string>, scls = 0x7fff7d2dc3b8}, {shortName = 108 'l',
            name = 0x7f330af74274 "logfile", argumentHelp = 0x7f330af7145e "LOGFILE",
            description = 0x7f330af74340 "configure logging to write logs to LOGFILE", require_argument = 1,
            processor = 0x7f330af55330 <GNUNET_GETOPT_set_string>, scls = 0x7fff7d2dc3c0}, {shortName = 118 'v',
            name = 0x7f330af7427c "version", argumentHelp = 0x0,
            description = 0x7f330af74284 "print the version number", require_argument = 0,
            processor = 0x7f330af54fa0 <GNUNET_GETOPT_print_version_>, scls = 0x7f330af7429d}, {shortName = 0 '\000',
            name = 0x0, argumentHelp = 0x0, description = 0x0, require_argument = 0, processor = 0, scls = 0x0}}
        __FUNCTION__ = "GNUNET_SERVICE_run"
#14 0x0000000000402ef9 in main (argc=<optimized out>, argv=<optimized out>) at gnunet-service-transport.c:637
No locals.
(gdb)



[bart@saturn ~/svn/gnunet/src/nse]$ gdb /tmp/bartgnunet/bin/gnunet-service-transport --core core.6790
GNU gdb (GDB) 7.4.1
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /tmp/bartgnunet/bin/gnunet-service-transport...done.

warning: core file may not match specified executable file.
[New LWP 6790]

warning: Can't read pathname for load map: Input/output error.
Core was generated by `gnunet-service-transport -c /tmp/nse-profiler//7//gnunet-testing-configD8cg9v'.
Program terminated with signal 6, Aborted.
#0 0x00007f52880ebc35 in raise () from /lib/libc.so.6
(gdb) bt full
#0 0x00007f52880ebc35 in raise () from /lib/libc.so.6
No symbol table info available.
#1 0x00007f52880ed0b8 in abort () from /lib/libc.so.6
No symbol table info available.
#2 0x00007f5288129e5b in __libc_message () from /lib/libc.so.6
No symbol table info available.
#3 0x00007f528812fa56 in malloc_printerr () from /lib/libc.so.6
No symbol table info available.
#4 0x00007f5289532cf4 in GNUNET_NETWORK_socket_close (desc=0x7f5288452738) at network.c:375
        __x__ = <optimized out>
        ret = -1
#5 0x00007f52895206d2 in GNUNET_CONNECTION_destroy (connection=0x1ed2210) at connection.c:971
        pos = 0x7f5288452738
        __FUNCTION__ = "GNUNET_CONNECTION_destroy"
#6 0x00007f5289541325 in GNUNET_SERVER_client_disconnect (client=0x1ed24e0) at server.c:1342
        server = 0x1eb96a0
        prev = <optimized out>
        pos = <optimized out>
        n = <optimized out>
        rc = 0
        __FUNCTION__ = "GNUNET_SERVER_client_disconnect"
#7 0x00007f52895422c5 in GNUNET_SERVER_destroy (server=0x1eb96a0) at server.c:709
        hpos = <optimized out>
        npos = <optimized out>
        i = <optimized out>
        __FUNCTION__ = "GNUNET_SERVER_destroy"
#8 0x00007f5289549d84 in GNUNET_SERVICE_stop (sctx=0x1eb86a0) at service.c:1892
        i = <optimized out>
#9 0x00007f5287eb4635 in libgnunet_plugin_transport_tcp_done (cls=0x1eb9f60) at plugin_transport_tcp.c:2299
        api = 0x1eb9f60
        plugin = 0x1eb9720
        tcp_probe = <optimized out>
        __FUNCTION__ = "libgnunet_plugin_transport_tcp_done"
#10 0x00007f528953873c in GNUNET_PLUGIN_unload (library_name=0x1eb82b0 "libgnunet_plugin_transport_tcp", arg=0x1eb9f60)
    at plugin.c:270
        pos = 0x1eb8410
        prev = <optimized out>
        done = <optimized out>
        ret = 0x0
#11 0x00000000004108f6 in GST_plugins_unload () at gnunet-service-transport_plugins.c:171
        plug = 0x1eb82e0
        __FUNCTION__ = "GST_plugins_unload"
#12 0x0000000000404513 in shutdown_task (cls=<optimized out>, tc=<optimized out>) at gnunet-service-transport.c:526
No locals.
#13 0x00007f528953f24a in run_ready (ws=0x1eb5180, rs=0x1eb50f0) at scheduler.c:602
        p = <optimized out>
        pos = 0x1eb7290
        tc = {reason = GNUNET_SCHEDULER_REASON_SHUTDOWN, read_ready = 0x1eb50f0, write_ready = 0x1eb5180}
#14 GNUNET_SCHEDULER_run (task=task@entry=0x7f5289546540 <service_task>, task_cls=task_cls@entry=0x7fff0083aae0)
    at scheduler.c:790
        rs = 0x1eb50f0
        ws = <optimized out>
        timeout = <optimized out>
        ret = <optimized out>
        shc_int = 0x1eb5210
        shc_term = 0x1eb6d50
        shc_quit = 0x1eb6eb0
        shc_hup = 0x1eb6f60
        shc_pipe = 0x1eb6e00
        last_tr = 5922
        busy_wait_warning = 1
        pr = 0x1eb4d50
        c = 0 '\000'
        __FUNCTION__ = "GNUNET_SCHEDULER_run"
#15 0x00007f5289549037 in GNUNET_SERVICE_run (argc=<optimized out>, argv=<optimized out>,
    service_name=service_name@entry=0x41352f "transport", options=options@entry=GNUNET_SERVICE_OPTION_NONE,
    task=task@entry=0x403010 <run>, task_cls=task_cls@entry=0x0) at service.c:1773
        err = 0
        cfg_fn = 0x1eb3090 "/tmp/nse-profiler//7//gnunet-testing-configD8cg9v"
        loglev = 0x0
        logfile = 0x0
        do_daemonize = 0
        i = <optimized out>
        skew_offset = 139992467809544
        skew_variance = 140733202017392
        clock_offset = <optimized out>
---Type <return> to continue, or q <return> to quit---
        sctx = {cfg = 0x1eb2f60, server = 0x1eb70d0, addrs = 0x0, service_name = 0x41352f "transport",
          task = 0x403010 <run>, task_cls = 0x0, v4_denied = 0x0, v6_denied = 0x0, v4_allowed = 0x1eb4d60,
          v6_allowed = 0x1eb4da0, my_handlers = 0x1eb7150, addrlens = 0x0, lsocks = 0x1eb4cd0, shutdown_task = 4,
          timeout = {rel_value = 18446744073709551615}, ret = 1, ready_confirm_fd = -1, require_found = 1,
          match_uid = 1, match_gid = 1, options = GNUNET_SERVICE_OPTION_NONE}
        cfg = 0x1eb2f60
        service_options = {{shortName = 99 'c', name = 0x7f5289550247 "config",
            argumentHelp = 0x7f528955024e "FILENAME", description = 0x7f52895502f8 "use configuration file FILENAME",
            require_argument = 1, processor = 0x7f5289531330 <GNUNET_GETOPT_set_string>, scls = 0x7fff0083aab0}, {
            shortName = 100 'd', name = 0x7f5289551a00 "daemonize", argumentHelp = 0x0,
            description = 0x7f5289551e20 "do daemonize (detach from terminal)", require_argument = 0,
            processor = 0x7f5289531320 <GNUNET_GETOPT_set_one>, scls = 0x7fff0083aa9c}, {shortName = 104 'h',
            name = 0x7f5289550262 "help", argumentHelp = 0x0, description = 0x7f5289550257 "print this help",
            require_argument = 0, processor = 0x7f5289530fd0 <GNUNET_GETOPT_format_help_>, scls = 0x0}, {
            shortName = 76 'L', name = 0x7f5289550267 "log", argumentHelp = 0x7f528955026b "LOGLEVEL",
            description = 0x7f5289550318 "configure logging to use LOGLEVEL", require_argument = 1,
            processor = 0x7f5289531330 <GNUNET_GETOPT_set_string>, scls = 0x7fff0083aab8}, {shortName = 108 'l',
            name = 0x7f5289550274 "logfile", argumentHelp = 0x7f528954d45e "LOGFILE",
            description = 0x7f5289550340 "configure logging to write logs to LOGFILE", require_argument = 1,
            processor = 0x7f5289531330 <GNUNET_GETOPT_set_string>, scls = 0x7fff0083aac0}, {shortName = 118 'v',
            name = 0x7f528955027c "version", argumentHelp = 0x0,
            description = 0x7f5289550284 "print the version number", require_argument = 0,
            processor = 0x7f5289530fa0 <GNUNET_GETOPT_print_version_>, scls = 0x7f528955029d}, {shortName = 0 '\000',
            name = 0x0, argumentHelp = 0x0, description = 0x0, require_argument = 0, processor = 0, scls = 0x0}}
        __FUNCTION__ = "GNUNET_SERVICE_run"
#16 0x0000000000402ef9 in main (argc=<optimized out>, argv=<optimized out>) at gnunet-service-transport.c:637
No locals.
(gdb)

TagsNo tags attached.

Activities

Matthias Wachs

2012-05-10 16:50

reporter   ~0005856

IMHO this is a util/server issue:

tcp uses:
GNUNET_SERVER_connect_socket

During plugin unload:
- GNUNET_SERVER_destroy
- GNUNET_SERVER_client_disconnect
- GNUNET_CONNECTION_destroy
- GNUNET_NETWORK_socket_close
  GNUNET_free_non_null (desc->addr); <- CRASH
  



 

Christian Grothoff

2012-05-10 21:07

manager   ~0005864

Might be fixed, SVN was possibly from much earlier than the submission time.

Matthias Wachs

2012-05-23 09:45

reporter   ~0005932

With revision 21559

Running a peer over night:
Quite a lot of:

==29226== Invalid read of size 8
==29226== at 0x5080B51: GNUNET_SERVER_mst_receive (server_mst.c:284)
==29226== by 0x507E48E: process_incoming (server.c:1038)
==29226== by 0x5053436: receive_ready (connection.c:1055)
==29226== by 0x5079FA4: run_ready (scheduler.c:602)
==29226== by 0x507A7AD: GNUNET_SCHEDULER_run (scheduler.c:790)
==29226== by 0x5088FD7: GNUNET_SERVICE_run (service.c:1773)
==29226== by 0x402A29: main (gnunet-service-ats.c:185)
==29226== Address 0x7ee0b10 is 32 bytes inside a block of size 48 free'd
==29226== at 0x4C282ED: free (vg_replace_malloc.c:366)
==29226== by 0x504A9DB: GNUNET_xfree_ (common_allocation.c:201)
==29226== by 0x5080D5D: GNUNET_SERVER_mst_destroy (server_mst.c:309)
==29226== by 0x507F627: GNUNET_SERVER_client_disconnect (server.c:1337)
==29226== by 0x507E824: client_message_tokenizer_callback (server.c:1101)
==29226== by 0x5080A89: GNUNET_SERVER_mst_receive (server_mst.c:264)
==29226== by 0x507E48E: process_incoming (server.c:1038)
==29226== by 0x5053436: receive_ready (connection.c:1055)
==29226== by 0x5079FA4: run_ready (scheduler.c:602)
==29226== by 0x507A7AD: GNUNET_SCHEDULER_run (scheduler.c:790)
==29226== by 0x5088FD7: GNUNET_SERVICE_run (service.c:1773)
==29226== by 0x402A29: main (gnunet-service-ats.c:185)

Matthias Wachs

2012-05-23 09:57

reporter   ~0005933

==11278== Invalid read of size 8
==11278== at 0x527012B: GNUNET_SERVER_mst_receive (server_mst.c:278)
==11278== by 0x526F7D8: process_incoming (server.c:1038)
==11278== by 0x524BEE1: receive_ready (connection.c:1055)
==11278== by 0x526D0FF: GNUNET_SCHEDULER_run (scheduler.c:602)
==11278== by 0x5276088: GNUNET_SERVICE_run (service.c:1773)
==11278== by 0x4041F8: main (gnunet-service-transport.c:646)
==11278== Address 0xbe15590 is 32 bytes inside a block of size 48 free'd
==11278== at 0x4028AAE: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==11278== by 0x526F218: GNUNET_SERVER_client_disconnect (server.c:1337)
==11278== by 0x526FE8E: GNUNET_SERVER_mst_receive (server_mst.c:264)
==11278== by 0x526F7D8: process_incoming (server.c:1038)
==11278== by 0x524BEE1: receive_ready (connection.c:1055)
==11278== by 0x526D0FF: GNUNET_SCHEDULER_run (scheduler.c:602)
==11278== by 0x5276088: GNUNET_SERVICE_run (service.c:1773)
==11278== by 0x4041F8: main (gnunet-service-transport.c:646)

Matthias Wachs

2012-05-23 10:23

reporter   ~0005934

Client is disconnected, MST is destroyed and GNUNET_SERVER_Client *client already freed.

Then we receive incoming data...

Matthias Wachs

2012-05-24 10:48

reporter   ~0005938

(0005932) - (0005934) fixed

Christian Grothoff

2012-05-27 23:50

manager   ~0005953

I don't see this any more, any many bugs were fixed in this area.

Issue History

Date Modified Username Field Change
2012-05-10 16:00 Bart Polot New Issue
2012-05-10 16:00 Bart Polot Status new => assigned
2012-05-10 16:00 Bart Polot Assigned To => Matthias Wachs
2012-05-10 16:50 Matthias Wachs Note Added: 0005856
2012-05-10 17:00 Matthias Wachs Assigned To Matthias Wachs =>
2012-05-10 17:00 Matthias Wachs Category transport service => util library
2012-05-10 17:01 Matthias Wachs Summary Invalid free in transport service => Invalid free in transport service during GNUNET_SERVER_destroy
2012-05-10 18:56 Christian Grothoff Priority normal => immediate
2012-05-10 18:56 Christian Grothoff Target Version => 0.9.3
2012-05-10 21:07 Christian Grothoff Note Added: 0005864
2012-05-10 21:07 Christian Grothoff Assigned To => Bart Polot
2012-05-10 21:07 Christian Grothoff Status assigned => feedback
2012-05-10 21:07 Christian Grothoff Target Version 0.9.3 =>
2012-05-11 00:38 Christian Grothoff Assigned To Bart Polot =>
2012-05-23 09:45 Matthias Wachs Note Added: 0005932
2012-05-23 09:45 Matthias Wachs Status feedback => confirmed
2012-05-23 09:57 Matthias Wachs Note Added: 0005933
2012-05-23 10:23 Matthias Wachs Note Added: 0005934
2012-05-24 10:48 Matthias Wachs Note Added: 0005938
2012-05-27 18:35 Christian Grothoff Target Version => 0.9.3
2012-05-27 23:50 Christian Grothoff Note Added: 0005953
2012-05-27 23:50 Christian Grothoff Status confirmed => resolved
2012-05-27 23:50 Christian Grothoff Fixed in Version => 0.9.3
2012-05-27 23:50 Christian Grothoff Resolution open => fixed
2012-05-27 23:50 Christian Grothoff Assigned To => Christian Grothoff
2012-06-02 19:15 Christian Grothoff Status resolved => closed