View Issue Details

IDProjectCategoryView StatusLast Update
0002070GNUnetcadet servicepublic2012-02-28 10:05
ReporterChristian Grothoff Assigned ToBart Polot Due Date
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 15:40

manager   ~0005272

Fixed in SVN 19199.

Christian Grothoff

2012-01-17 15: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 16:14

reporter   ~0005275

Workaround in 19205, working on fix.

Christian Grothoff

2012-01-17 16: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 16:17

reporter   ~0005277

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

Bart Polot

2012-01-17 17:30

reporter   ~0005278

Fixed in r19208.

Issue History

Date ModifiedUsernameFieldChange
2012-01-15 18:58Christian GrothoffNew Issue
2012-01-15 18:58Christian GrothoffStatusnew => assigned
2012-01-15 18:58Christian GrothoffAssigned To => Bart Polot
2012-01-15 20:51Christian GrothoffRelationship addedchild of 0002064
2012-01-17 15:40Christian GrothoffAssigned ToBart Polot => Christian Grothoff
2012-01-17 15:40Christian GrothoffNote Added: 0005272
2012-01-17 15:40Christian GrothoffStatusassigned => resolved
2012-01-17 15:40Christian GrothoffFixed in Version => 0.9.2
2012-01-17 15:40Christian GrothoffResolutionopen => fixed
2012-01-17 15:45Christian GrothoffStatusresolved => assigned
2012-01-17 15:45Christian GrothoffNote Added: 0005273
2012-01-17 15:46Christian GrothoffReproducibilityhave not tried => always
2012-01-17 15:46Christian GrothoffResolutionfixed => open
2012-01-17 15:46Christian GrothoffFixed in Version0.9.2 =>
2012-01-17 15:47Christian GrothoffAssigned ToChristian Grothoff => Bart Polot
2012-01-17 15:47Christian GrothoffPrioritynormal => immediate
2012-01-17 16:14Bart PolotNote Added: 0005275
2012-01-17 16:15Bart PolotStatusassigned => confirmed
2012-01-17 16:16Christian GrothoffNote Added: 0005276
2012-01-17 16:17Bart PolotNote Added: 0005277
2012-01-17 17:30Bart PolotNote Added: 0005278
2012-01-17 17:30Bart PolotStatusconfirmed => resolved
2012-01-17 17:30Bart PolotFixed in Version => Git master
2012-01-17 17:30Bart PolotResolutionopen => fixed
2012-01-22 20:17Christian GrothoffFixed in VersionGit master => 0.9.2
2012-02-28 10:05Christian GrothoffStatusresolved => closed
2014-05-09 16:34Christian GrothoffCategorymesh service => cadet service