View Issue Details

IDProjectCategoryView StatusLast Update
0002322GNUnettransport servicepublic2024-05-03 14:01
ReporterChristian Grothoff Assigned ToMatthias Wachs  
PrioritylowSeveritycrashReproducibilityhave not tried
Status closedResolutionwon't fix 
Product VersionGit master 
Target Version0.9.4Fixed in Version0.9.4 
Summary0002322: transport service crashes on assertion that "s" is non-NULL on HTTP disconnect
DescriptionThis is from the peer on gnunet.org:

gnunet9@tripwire:~$ gdb bin/gnunet-service-transport core.17685
GNU gdb (GDB) 7.4-debian
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-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/gnunet9/bin/gnunet-service-transport...done.

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

warning: Can't read pathname for load map: Input/output error.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `gnunet-service-transport -c /home/gnunet9/.gnunet/gnunet.conf -l ~/.gnunet//tra'.
Program terminated with signal 6, Aborted.
#0 0x00007effca95c475 in *__GI_raise (sig=<optimized out>)
    at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
64 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) ba
#0 0x00007effca95c475 in *__GI_raise (sig=<optimized out>)
    at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1 0x00007effca95f6f0 in *__GI_abort () at abort.c:92
#2 0x00007effcb14a969 in GNUNET_abort () at common_logging.c:273
#3 0x00007effc6b7e90a in exist_session (plugin=<optimized out>,
    s=<optimized out>) at plugin_transport_http.c:563
#4 0x00007effc6b8391d in server_disconnect_cb (cls=<optimized out>,
    connection=<optimized out>, httpSessionCache=<optimized out>)
    at plugin_transport_http_server.c:759
#5 0x00007effc9956cf8 in MHD_connection_close (connection=0x2333520,
    termination_code=MHD_REQUEST_TERMINATED_TIMEOUT_REACHED)
    at connection.c:316
#6 0x00007effc9957820 in MHD_connection_handle_idle (connection=0x2333520)
    at connection.c:2376
#7 0x00007effc995b027 in MHD_select (daemon=<optimized out>,
    may_block=<optimized out>) at daemon.c:1373
#8 0x00007effc995b6a5 in MHD_run (daemon=0x2260940) at daemon.c:1595
#9 0x00007effc6b8379c in server_v4_run (cls=0x2253e20, tc=<optimized out>)
    at plugin_transport_http_server.c:916
#10 0x00007effcb16ee60 in run_ready (ws=0x22184d0, rs=0x2218440)
---Type <return> to continue, or q <return> to quit---
    at scheduler.c:602
#11 GNUNET_SCHEDULER_run (task=<optimized out>, task_cls=<optimized out>)
    at scheduler.c:790
#12 0x00007effcb177ae9 in GNUNET_SERVICE_run (argc=5, argv=<optimized out>,
    service_name=<optimized out>, options=<optimized out>,
    task=<optimized out>, task_cls=0x0) at service.c:1773
#13 0x0000000000404229 in main (argc=<optimized out>, argv=<optimized out>)
    at gnunet-service-transport.c:637


The session 's' is NULL.
Additional Informationbt full:

#2 0x00007effcb14a969 in GNUNET_abort () at common_logging.c:273
No locals.
#3 0x00007effc6b7e90a in exist_session (plugin=<optimized out>, s=<optimized out>) at plugin_transport_http.c:563
        head = <optimized out>
        __FUNCTION__ = "exist_session"
#4 0x00007effc6b8391d in server_disconnect_cb (cls=<optimized out>, connection=<optimized out>, httpSessionCache=<optimized out>) at plugin_transport_http_server.c:759
        sc = 0x233cb70
        tc = 0x0
        s = 0x0
        t = 0x0
        plugin = 0x0
        __FUNCTION__ = "server_disconnect_cb"
        d = <optimized out>
#5 0x00007effc9956cf8 in MHD_connection_close (connection=0x2333520, termination_code=MHD_REQUEST_TERMINATED_TIMEOUT_REACHED) at connection.c:316
        daemon = 0x2260940
#6 0x00007effc9957820 in MHD_connection_handle_idle (connection=0x2333520) at connection.c:2376
        daemon = <optimized out>
        timeout = 300
        end = <optimized out>
        rend = <optimized out>
        line = <optimized out>
#7 0x00007effc995b027 in MHD_select (daemon=<optimized out>, may_block=<optimized out>) at daemon.c:1373
        pos = 0x2333520
        next = 0x23a4cd0
        num_ready = <optimized out>
        rs = {fds_bits = {0, 0, 0, 0, 0, 0, 0, 0, 2251799813685248, 0, 0, 0, 0, 0, 0, 0}}
        ws = {fds_bits = {0 <repeats 16 times>}}
        es = {fds_bits = {0 <repeats 16 times>}}
        max = 563
        timeout = {tv_sec = 0, tv_usec = 0}
        tv = <optimized out>
        ltimeout = 36354816
        ds = <optimized out>
#8 0x00007effc995b6a5 in MHD_run (daemon=0x2260940) at daemon.c:1595
No locals.
#9 0x00007effc6b8379c in server_v4_run (cls=0x2253e20, tc=<optimized out>) at plugin_transport_http_server.c:916
        plugin = 0x2253e20
        __FUNCTION__ = "server_v4_run"
#10 0x00007effcb16ee60 in run_ready (ws=0x22184d0, rs=0x2218440) at scheduler.c:602
        p = <optimized out>
        pos = 0x2271c10
        tc = {reason = 20, read_ready = 0x237f330, write_ready = 0x22f19b0}
TagsNo tags attached.

Activities

Christian Grothoff

2012-05-10 23:36

manager   ~0005866

Matthias, what feedback do you require!?

Christian Grothoff

2012-05-11 00:38

manager   ~0005868

Ok, looking at the source it is not at all clear how this can happen. Need a way to reproduce this...

Matthias Wachs

2012-09-18 13:56

reporter   ~0006356

Many changes in transport including the split in client and server ...

Matthias Wachs

2012-09-18 15:34

reporter   ~0006362

I think this bug is not up to date anymore

Issue History

Date Modified Username Field Change
2012-05-07 20:46 Christian Grothoff New Issue
2012-05-07 20:46 Christian Grothoff Status new => assigned
2012-05-07 20:46 Christian Grothoff Assigned To => Matthias Wachs
2012-05-10 10:41 Christian Grothoff Category transport service => HTTP transport
2012-05-10 13:20 Matthias Wachs Status assigned => feedback
2012-05-10 23:36 Christian Grothoff Note Added: 0005866
2012-05-10 23:36 Christian Grothoff Status feedback => assigned
2012-05-11 00:32 Christian Grothoff Summary transport service segfaults => transport service crashes on assertion that "s" is non-NULL on HTTP disconnect
2012-05-11 00:32 Christian Grothoff Target Version 0.9.3 =>
2012-05-11 00:38 Christian Grothoff Note Added: 0005868
2012-05-11 00:38 Christian Grothoff Assigned To Matthias Wachs =>
2012-05-11 00:38 Christian Grothoff Status assigned => feedback
2012-06-26 23:33 Christian Grothoff Priority high => low
2012-09-17 12:56 Christian Grothoff Assigned To => Matthias Wachs
2012-09-18 13:56 Matthias Wachs Note Added: 0006356
2012-09-18 15:34 Matthias Wachs Note Added: 0006362
2012-09-18 15:34 Matthias Wachs Status feedback => resolved
2012-09-18 15:34 Matthias Wachs Resolution open => won't fix
2012-10-06 16:36 Christian Grothoff Fixed in Version => 0.9.4
2012-10-06 16:36 Christian Grothoff Target Version => 0.9.4
2012-11-05 18:33 Christian Grothoff Status resolved => closed
2024-05-03 14:01 Christian Grothoff Category HTTP transport => transport service