View Issue Details

IDProjectCategoryView StatusLast Update
0002070GNUnetcadet servicepublic2012-02-28 11:05
ReporterChristian Grothoff Assigned ToBart Polot  
PriorityimmediateSeveritycrashReproducibilityalways
Status closedResolutionfixed 
Product VersionGit master 
Target Version0.9.2Fixed in Version0.9.2 
Summary0002070: crash in mesh service during log call (NULL pointer dereference)
Description(gdb) ba
#0 0x00000000004022d7 in client_allow_send (cls=0xd44ae0, tc=0x7fff0a980dc0)
    at gnunet-service-mesh.c:731
#1 0x00007f70f9836682 in run_ready (rs=0xd40890, ws=0xd40920)
    at scheduler.c:684
#2 0x00007f70f9836e67 in GNUNET_SCHEDULER_run (
    task=0x7f70f98424b2 <service_task>, task_cls=0x7fff0a9810c0)
    at scheduler.c:874
#3 0x00007f70f9843f54 in GNUNET_SERVICE_run (argc=3, argv=0x7fff0a981328,
    serviceName=0x4140cc "mesh", opt=GNUNET_SERVICE_OPTION_NONE,
    task=0x40f364 <run>, task_cls=0x0) at service.c:1712
#4 0x000000000040f9c9 in main (argc=3, argv=0x7fff0a981328)
    at gnunet-service-mesh.c:4502
(gdb) print *info
$3 = {origin = 0x0, data = 0xd44b60, client = 0x0, peer = 0xd43a30,
  destination = 0, copies = 0x0, handler_n = 3803388433,
  size = 1326653576519, timeout_task = 0x7f70f983cba7}
TagsNo tags attached.

Relationships

child of 0002064 closedChristian Grothoff new VPN service (working with new exit/dns services) needs to be fully implemented and tested 

Activities

Christian Grothoff

2012-01-17 16:40

manager   ~0005272

Fixed in SVN 19199.

Christian Grothoff

2012-01-17 16:45

manager   ~0005273

Not fixed, as the pointer is not even NULL:

==30059== Invalid read of size 4
==30059== at 0x4022E4: client_allow_send (gnunet-service-mesh.c:731)
==30059== by 0x527E681: run_ready (scheduler.c:684)
==30059== by 0x527EE66: GNUNET_SCHEDULER_run (scheduler.c:874)
==30059== by 0x528BF53: GNUNET_SERVICE_run (service.c:1712)
==30059== by 0x40F9DC: main (gnunet-service-mesh.c:4502)
==30059== Address 0x64 is not stack'd, malloc'd or (recently) free'd
==30059==
==30059==
==30059== Process terminating with default action of signal 11 (SIGSEGV): dumping core
==30059== Access not within mapped region at address 0x64
==30059== at 0x4022E4: client_allow_send (gnunet-service-mesh.c:731)
==30059== by 0x527E681: run_ready (scheduler.c:684)
==30059== by 0x527EE66: GNUNET_SCHEDULER_run (scheduler.c:874)
==30059== by 0x528BF53: GNUNET_SERVICE_run (service.c:1712)
==30059== by 0x40F9DC: main (gnunet-service-mesh.c:4502)

Bart Polot

2012-01-17 17:14

manager   ~0005275

Workaround in 19205, working on fix.

Christian Grothoff

2012-01-17 17:16

manager   ~0005276

cc1: warnings being treated as errors
gnunet-service-mesh.c: In function ‘client_allow_send’:
gnunet-service-mesh.c:736: error: passing argument 1 of ‘GNUNET_SERVER_receive_done’ from incompatible pointer type
../../src/include/gnunet_server_lib.h:226: note: expected ‘struct GNUNET_SERVER_Client *’ but argument is of type ‘struct MeshClient *’

Bart Polot

2012-01-17 17:17

manager   ~0005277

Oops, fixed that. Still working on the big picture.

Bart Polot

2012-01-17 18:30

manager   ~0005278

Fixed in r19208.

Issue History

Date Modified Username Field Change
2012-01-15 19:58 Christian Grothoff New Issue
2012-01-15 19:58 Christian Grothoff Status new => assigned
2012-01-15 19:58 Christian Grothoff Assigned To => Bart Polot
2012-01-15 21:51 Christian Grothoff Relationship added child of 0002064
2012-01-17 16:40 Christian Grothoff Assigned To Bart Polot => Christian Grothoff
2012-01-17 16:40 Christian Grothoff Note Added: 0005272
2012-01-17 16:40 Christian Grothoff Status assigned => resolved
2012-01-17 16:40 Christian Grothoff Fixed in Version => 0.9.2
2012-01-17 16:40 Christian Grothoff Resolution open => fixed
2012-01-17 16:45 Christian Grothoff Status resolved => assigned
2012-01-17 16:45 Christian Grothoff Note Added: 0005273
2012-01-17 16:46 Christian Grothoff Reproducibility have not tried => always
2012-01-17 16:46 Christian Grothoff Resolution fixed => open
2012-01-17 16:46 Christian Grothoff Fixed in Version 0.9.2 =>
2012-01-17 16:47 Christian Grothoff Assigned To Christian Grothoff => Bart Polot
2012-01-17 16:47 Christian Grothoff Priority normal => immediate
2012-01-17 17:14 Bart Polot Note Added: 0005275
2012-01-17 17:15 Bart Polot Status assigned => confirmed
2012-01-17 17:16 Christian Grothoff Note Added: 0005276
2012-01-17 17:17 Bart Polot Note Added: 0005277
2012-01-17 18:30 Bart Polot Note Added: 0005278
2012-01-17 18:30 Bart Polot Status confirmed => resolved
2012-01-17 18:30 Bart Polot Fixed in Version => Git master
2012-01-17 18:30 Bart Polot Resolution open => fixed
2012-01-22 21:17 Christian Grothoff Fixed in Version Git master => 0.9.2
2012-02-28 11:05 Christian Grothoff Status resolved => closed
2014-05-09 18:34 Christian Grothoff Category mesh service => cadet service