View Issue Details

IDProjectCategoryView StatusLast Update
0001693GNUnetfile-sharing servicepublic2011-07-20 21:29
Reportermrwiggles Assigned ToChristian Grothoff  
PrioritylowSeverityminorReproducibilityrandom
Status closedResolutionfixed 
Product VersionGit master 
Summary0001693: uninitialized memory in IPC messages generated by gnunet-service-fs
DescriptionPossibly a connection.c problem

==8586== Syscall param socketcall.sendto(msg) points to uninitialised byte(s)
==8586== at 0x6E59382: send (in /lib64/libc-2.13.so)
==8586== by 0x60C5067: GNUNET_NETWORK_socket_send (network.c:568)
==8586== by 0x60B3BAC: transmit_ready (connection.c:1563)
==8586== by 0x60CBF7E: run_ready (scheduler.c:643)
==8586== by 0x60CC428: GNUNET_SCHEDULER_run (scheduler.c:790)
==8586== by 0x60D39F5: GNUNET_SERVICE_run (service.c:1620)
==8586== by 0x40482C: main (gnunet-service-fs.c:621)
==8586== Address 0x74345f9 is 249 bytes inside a block of size 32,876 alloc'd
==8586== at 0x4C28D32: realloc (vg_replace_malloc.c:525)
==8586== by 0x60AD823: GNUNET_xrealloc_ (common_allocation.c:167)
==8586== by 0x60B3A4D: transmit_ready (connection.c:1548)
==8586== by 0x60CBF7E: run_ready (scheduler.c:643)
==8586== by 0x60CC428: GNUNET_SCHEDULER_run (scheduler.c:790)
==8586== by 0x60D39F5: GNUNET_SERVICE_run (service.c:1620)
==8586== by 0x40482C: main (gnunet-service-fs.c:621)
TagsNo tags attached.

Activities

Christian Grothoff

2011-06-14 13:19

manager   ~0004362

Definitively a problem in gnunet-service-fs*.c. Some member in some message is not fully initialized...

Christian Grothoff

2011-07-18 14:45

manager   ~0004522

Still there:

==14883== Syscall param socketcall.sendto(msg) points to uninitialised byte(s)
==14883== at 0x516F202: send (send.c:28)
==14883== by 0x4C77B1C: GNUNET_NETWORK_socket_send (network.c:572)
==14883== by 0x4C661D2: transmit_ready (connection.c:1583)
==14883== by 0x4C80235: run_ready (scheduler.c:648)
==14883== by 0x4C80638: GNUNET_SCHEDULER_run (scheduler.c:795)
==14883== by 0x4C7C3F7: GNUNET_PROGRAM_run (program.c:235)
==14883== by 0x40257B: main (test_fs_namespace.c:447)
==14883== Address 0x6e49f30 is 16 bytes inside a block of size 144 alloc'd
==14883== at 0x4028732: realloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==14883== by 0x4C5FBCA: GNUNET_xrealloc_ (common_allocation.c:167)
==14883== by 0x4C66076: transmit_ready (connection.c:1568)
==14883== by 0x4C80235: run_ready (scheduler.c:648)
==14883== by 0x4C80638: GNUNET_SCHEDULER_run (scheduler.c:795)
==14883== by 0x4C7C3F7: GNUNET_PROGRAM_run (program.c:235)
==14883== by 0x40257B: main (test_fs_namespace.c:447)

Christian Grothoff

2011-07-18 14:45

manager   ~0004523

==14976== Syscall param socketcall.sendto(msg) points to uninitialised byte(s)
==14976== at 0x516F202: send (send.c:28)
==14976== by 0x4C77B1C: GNUNET_NETWORK_socket_send (network.c:572)
==14976== by 0x4C661D2: transmit_ready (connection.c:1583)
==14976== by 0x4C80235: run_ready (scheduler.c:648)
==14976== by 0x4C80638: GNUNET_SCHEDULER_run (scheduler.c:795)
==14976== by 0x4C7C3F7: GNUNET_PROGRAM_run (program.c:235)
==14976== by 0x401E2E: main (test_fs_search.c:296)
==14976== Address 0x6bb2d70 is 16 bytes inside a block of size 144 alloc'd
==14976== at 0x4028732: realloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==14976== by 0x4C5FBCA: GNUNET_xrealloc_ (common_allocation.c:167)
==14976== by 0x4C66076: transmit_ready (connection.c:1568)
==14976== by 0x4C80235: run_ready (scheduler.c:648)
==14976== by 0x4C80638: GNUNET_SCHEDULER_run (scheduler.c:795)
==14976== by 0x4C7C3F7: GNUNET_PROGRAM_run (program.c:235)
==14976== by 0x401E2E: main (test_fs_search.c:296)

Christian Grothoff

2011-07-18 14:46

manager   ~0004524

==15050== Syscall param socketcall.sendto(msg) points to uninitialised byte(s)
==15050== at 0x516F202: send (send.c:28)
==15050== by 0x4C77B1C: GNUNET_NETWORK_socket_send (network.c:572)
==15050== by 0x4C661D2: transmit_ready (connection.c:1583)
==15050== by 0x4C80235: run_ready (scheduler.c:648)
==15050== by 0x4C80638: GNUNET_SCHEDULER_run (scheduler.c:795)
==15050== by 0x4C7C3F7: GNUNET_PROGRAM_run (program.c:235)
==15050== by 0x40202E: main (test_fs_search_persistence.c:367)
==15050== Address 0x6c6e6d0 is 16 bytes inside a block of size 144 alloc'd
==15050== at 0x4028732: realloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==15050== by 0x4C5FBCA: GNUNET_xrealloc_ (common_allocation.c:167)
==15050== by 0x4C66076: transmit_ready (connection.c:1568)
==15050== by 0x4C80235: run_ready (scheduler.c:648)
==15050== by 0x4C80638: GNUNET_SCHEDULER_run (scheduler.c:795)
==15050== by 0x4C7C3F7: GNUNET_PROGRAM_run (program.c:235)
==15050== by 0x40202E: main (test_fs_search_persistence.c:367)

Christian Grothoff

2011-07-18 20:48

manager   ~0004528

Fixed in SVN 16098.

Issue History

Date Modified Username Field Change
2011-06-14 12:02 mrwiggles New Issue
2011-06-14 12:09 Christian Grothoff Category util library => FS service
2011-06-14 12:09 Christian Grothoff Status new => assigned
2011-06-14 12:09 Christian Grothoff Assigned To => Christian Grothoff
2011-06-14 13:19 Christian Grothoff Note Added: 0004362
2011-06-14 14:15 Christian Grothoff Reproducibility always => random
2011-06-17 10:07 Christian Grothoff Summary Running valgrind on filesharing service shows memory issue => uninitialized memory in IPC messages generated by gnunet-service-fs
2011-06-17 18:18 Christian Grothoff Assigned To Christian Grothoff =>
2011-06-17 18:19 Christian Grothoff Status assigned => acknowledged
2011-06-23 12:59 Christian Grothoff Priority normal => low
2011-07-18 14:45 Christian Grothoff Note Added: 0004522
2011-07-18 14:45 Christian Grothoff Note Added: 0004523
2011-07-18 14:46 Christian Grothoff Note Added: 0004524
2011-07-18 19:57 Christian Grothoff Status acknowledged => assigned
2011-07-18 19:57 Christian Grothoff Assigned To => Christian Grothoff
2011-07-18 20:48 Christian Grothoff Note Added: 0004528
2011-07-18 20:48 Christian Grothoff Status assigned => resolved
2011-07-18 20:48 Christian Grothoff Resolution open => fixed
2011-07-20 21:29 Christian Grothoff Status resolved => closed