View Issue Details

IDProjectCategoryView StatusLast Update
0002415GNUnettransport servicepublic2024-05-03 14:01
ReporterLRN Assigned ToMatthias Wachs  
PrioritynormalSeveritycrashReproducibilityhave not tried
Status closedResolutionunable to reproduce 
Product VersionGit master 
Summary0002415: Crash in MHD during test_quota_compliance_https
Descriptionr21869
Additional Information
Program received signal SIGSEGV, Segmentation fault.
0x00000001 in ?? ()
(gdb) bt
#0  0x00000001 in ?? ()
#1  0x6894657f in MHD_select (daemon=0x37fd08, may_block=0) at f:/src/libmicrohttpd-svn/libmicrohttpd-r21562/src/daemon/daemon.c:1372
#2  0x6894660b in MHD_run (daemon=0x37fd08) at f:/src/libmicrohttpd-svn/libmicrohttpd-r21562/src/daemon/daemon.c:1595
#3  0x6718ee11 in _fu617__skip_log () at plugin_transport_http_server.c:918
#4  0x62af6186 in run_ready (rs=0x491380, ws=0x378fe8) at scheduler.c:602
#5  0x62af68f7 in GNUNET_SCHEDULER_run (task=0x62b02562 <service_task>, task_cls=0x28fe20) at scheduler.c:790
#6  0x62b0324d in GNUNET_SERVICE_run (argc=3, argv=0x48c708, service_name=0x4173ab "transport", options=GNUNET_SERVICE_OPTION_NONE, task=0x4025de <run>, task_cls=0x0) at service.c:1785
#7  0x00402b9a in main (argc=3, argv=0x48c708) at gnunet-service-transport.c:646
(gdb) up
#1  0x6894657f in MHD_select (daemon=0x37fd08, may_block=0) at f:/src/libmicrohttpd-svn/libmicrohttpd-r21562/src/daemon/daemon.c:1372
1372                    pos->write_handler (pos);
(gdb) p pos
$1 = (struct MHD_Connection *) 0x37dd10
(gdb) p pos->write_handler
$2 = (int (*)(struct MHD_Connection *)) 0x1
(gdb) p pos
$3 = (struct MHD_Connection *) 0x37dd10
(gdb) p *pos
$4 = {next = 0x0, prev = 0x545a98, daemon = 0x37fd08, headers_received = 0x504788, headers_received_tail = 0x504798, response = 0x523f88, pool = 0x4a34d0, client_context = 0x4ab368, method = 0x503f80 "GET",
  url = 0x503f84 "/FC74R2SOS77FS2TCRA3VMBTHETNE2KGGBKGRUUBS9FKR9BPCKKI7FVJ6RAEB92MA4JD16R34VS5AT9IP5SLO9FP0OUCIKE93OKANRQ0;3", version = 0x503fef "HTTP/1.1", read_buffer = 0x50401e "",
  write_buffer = 0x523f28 "HTTP/1.1 200 OK\r\nTransfer-Encoding: chunked\r\nDate: Mon, 11 Jun 2012 01:32:38 GMT\r\n\r\n", last = 0x50400f "Accept", colon = 0x504017 "*/*", addr = 0x4ab578, pid = {p = 0x0, x = 0},
  read_buffer_size = 1890, read_buffer_offset = 0, write_buffer_size = 85, write_buffer_send_offset = 0, write_buffer_append_offset = 84, remaining_upload_size = 0, response_write_position = 0,
  continue_message_write_offset = 0, addr_len = 16, last_activity = 1339378358, connection_timeout = 300, client_aware = 1, socket_fd = 824, read_closed = 0, thread_joined = 0, state = MHD_CONNECTION_HEADERS_SENDING,
  responseCode = 200, response_unready = 0, have_chunked_upload = 1, current_chunk_size = 0, current_chunk_offset = 0, read_handler = 0x6894c922 <MHD_tls_connection_handle_read>, write_handler = 0x1,
  idle_handler = 0x6894c976 <MHD_tls_connection_handle_idle>, recv_cls = 0x68944ddb <recv_tls_adapter>, send_cls = 0x68944e3c <send_tls_adapter>, tls_session = 0x4c1100, protocol = 0, cipher = 0}
TagsNo tags attached.

Activities

Matthias Wachs

2012-06-26 17:39

reporter   ~0006156

I tried to analyze the MHD code but I have no clue how this can happen.
Did not occur on my system when running test in a loop...

It seems to be a valid Get connection
(struct MHD_Connection *) 0x37dd10

in state MHD_CONNECTION_HEADERS_SENDING ...

select after shutdown seems to be impossible

Will try to run it in a loop and if now occuring run on windows bot

LRN

2012-06-26 19:23

reporter   ~0006157

It only ever happened to me once (and the report is already 2 weeks old, which is a lot, since i've been running testsuite quite often lately).

Christian Grothoff

2012-06-26 23:26

manager   ~0006164

Downgrading in relevance as it is clearly either not a common issue or even possibly got resolved already.

Matthias Wachs

2012-06-27 09:10

reporter   ~0006165

Running over night:

Not a single crash in 2140 runs

Issue History

Date Modified Username Field Change
2012-06-11 03:57 LRN New Issue
2012-06-11 03:57 LRN Status new => assigned
2012-06-11 03:57 LRN Assigned To => Matthias Wachs
2012-06-22 11:01 Christian Grothoff Product Version => Git master
2012-06-22 11:01 Christian Grothoff Target Version => 0.9.4
2012-06-23 23:04 Christian Grothoff Priority normal => high
2012-06-23 23:04 Christian Grothoff Severity minor => crash
2012-06-26 17:39 Matthias Wachs Note Added: 0006156
2012-06-26 19:23 LRN Note Added: 0006157
2012-06-26 23:26 Christian Grothoff Note Added: 0006164
2012-06-26 23:26 Christian Grothoff Priority high => normal
2012-06-26 23:26 Christian Grothoff Status assigned => feedback
2012-06-26 23:26 Christian Grothoff Target Version 0.9.4 =>
2012-06-27 09:10 Matthias Wachs Note Added: 0006165
2012-07-04 09:32 Christian Grothoff Status feedback => closed
2012-07-04 09:32 Christian Grothoff Resolution open => unable to reproduce
2024-05-03 14:01 Christian Grothoff Category HTTP transport => transport service