View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003241 | GNUnet | conversation service | public | 2013-12-24 23:11 | 2014-04-08 16:42 |
Reporter | yids | Assigned To | Christian Grothoff | ||
Priority | normal | Severity | crash | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | AMD64 | OS | Debian | OS Version | Wheezy |
Product Version | Git master | ||||
Target Version | 0.10.1 | Fixed in Version | 0.10.1 | ||
Summary | 0003241: gnunet-conversation crashes | ||||
Description | gnunet-conversation crashes when started yids@ingorgare:~$ gdb --args gnunet-conversation -e ingorgare GNU gdb (GDB) 7.4.1-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 /usr/local/bin/gnunet-conversation...done. (gdb) run Starting program: /usr/local/bin/gnunet-conversation -e ingorgare Dec 24 23:03:07-965867 gnunet-conversation-29008 ERROR Assertion failed at scheduler.c:1602. Program received signal SIGABRT, Aborted. 0x00007ffff6787475 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) backtrace #0 0x00007ffff6787475 in *__GI_raise (sig=<optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 #1 0x00007ffff678a6f0 in *__GI_abort () at abort.c:92 #2 0x00007ffff6d770f9 in GNUNET_abort () at common_logging.c:289 #3 0x00007ffff6d9ef4b in GNUNET_SCHEDULER_add_file_with_priority (delay=..., priority=<optimized out>, fd=<optimized out>, on_read=<optimized out>, on_write=<optimized out>, task=<optimized out>, task_cls=<optimized out>) at scheduler.c:1602 #4 GNUNET_SCHEDULER_add_file_with_priority (delay=..., priority=GNUNET_SCHEDULER_PRIORITY_DEFAULT, fd=<optimized out>, on_read=1, on_write=0, task=0x401d40 <handle_command>, task_cls=0x0) at scheduler.c:1578 #5 0x00007ffff6d9f010 in GNUNET_SCHEDULER_add_read_file (delay=..., rfd=rfd@entry=0x606720, task=task@entry=0x401d40 <handle_command>, task_cls=task_cls@entry=0x0) at scheduler.c:1525 #6 0x0000000000401d81 in handle_command (cls=<optimized out>, tc=<optimized out>) at gnunet-conversation.c:1046 #7 0x00007ffff6d9f991 in run_ready (ws=0x607970, rs=0x6078e0) at scheduler.c:595 #8 GNUNET_SCHEDULER_run (task=task@entry=0x7ffff6d9ac80 <program_main>, task_cls=task_cls@entry=0x7fffffffe320) at scheduler.c:817 #9 0x00007ffff6d9b402 in GNUNET_PROGRAM_run2 (argc=<optimized out>, argv=0x606740, binaryName=binaryName@entry=0x403ce0 "gnunet-conversation", binaryHelp=binaryHelp@entry=0x4043d8 "Enables having a conversation with other GNUnet users.", options=options@entry=0x404700, task=task@entry=0x403670 <run>, task_cls=task_cls@entry=0x0, run_without_scheduler=run_without_scheduler@entry=0) at program.c:302 #10 0x00007ffff6d9b73a in GNUNET_PROGRAM_run (argc=<optimized out>, argv=<optimized out>, binaryName=binaryName@entry=0x403ce0 "gnunet-conversation", binaryHelp=binaryHelp@entry=0x4043d8 "Enables having a conversation with other GNUnet users.", options=options@entry=0x404700, task=task@entry=0x403670 <run>, task_cls=task_cls@entry=0x0) at program.c:341 #11 0x0000000000401af5 in main (argc=3, argv=0x606740) at gnunet-conversation.c:1183 | ||||
Steps To Reproduce | start gnunet-conversation | ||||
Tags | No tags attached. | ||||
Attached Files | convValgrind.log (10,278 bytes)
==28894== Memcheck, a memory error detector ==28894== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al. ==28894== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info ==28894== Command: gnunet-conversation -e ingorgare ==28894== Parent PID: 5058 ==28894== --28894-- --28894-- Valgrind options: --28894-- --suppressions=/usr/lib/valgrind/debian-libc6-dbg.supp --28894-- -v --28894-- --log-file=convValgrind.log --28894-- Contents of /proc/version: --28894-- Linux version 3.2.0-4-amd64 (debian-kernel@lists.debian.org) (gcc version 4.6.3 (Debian 4.6.3-14) ) #1 SMP Debian 3.2.51-1 --28894-- Arch and hwcaps: AMD64, amd64-sse3-cx16-lzcnt --28894-- Page sizes: currently 4096, max supported 4096 --28894-- Valgrind library directory: /usr/lib/valgrind --28894-- Reading syms from /usr/local/bin/gnunet-conversation (0x400000) --28894-- Reading syms from /lib/x86_64-linux-gnu/ld-2.13.so (0x4000000) --28894-- Considering /lib/x86_64-linux-gnu/ld-2.13.so .. --28894-- .. CRC mismatch (computed 96755979 wanted cac73926) --28894-- Considering /usr/lib/debug/lib/x86_64-linux-gnu/ld-2.13.so .. --28894-- .. CRC is valid --28894-- Reading syms from /usr/lib/valgrind/memcheck-amd64-linux (0x38000000) --28894-- Considering /usr/lib/valgrind/memcheck-amd64-linux .. --28894-- .. CRC mismatch (computed 917e6694 wanted d604052d) --28894-- Considering /usr/lib/debug/usr/lib/valgrind/memcheck-amd64-linux .. --28894-- .. CRC is valid --28894-- object doesn't have a dynamic symbol table --28894-- Reading suppressions file: /usr/lib/valgrind/debian-libc6-dbg.supp --28894-- Reading suppressions file: /usr/lib/valgrind/default.supp ==28894== embedded gdbserver: reading from /tmp/vgdb-pipe-from-vgdb-to-28894-by-yids-on-??? ==28894== embedded gdbserver: writing to /tmp/vgdb-pipe-to-vgdb-from-28894-by-yids-on-??? ==28894== embedded gdbserver: shared mem /tmp/vgdb-pipe-shared-mem-vgdb-28894-by-yids-on-??? ==28894== ==28894== TO CONTROL THIS PROCESS USING vgdb (which you probably ==28894== don't want to do, unless you know exactly what you're doing, ==28894== or are doing some strange experiment): ==28894== /usr/lib/valgrind/../../bin/vgdb --pid=28894 ...command... ==28894== ==28894== TO DEBUG THIS PROCESS USING GDB: start GDB like this ==28894== /path/to/gdb gnunet-conversation ==28894== and then give GDB the following command ==28894== target remote | /usr/lib/valgrind/../../bin/vgdb --pid=28894 ==28894== --pid is optional if only one valgrind process is running ==28894== --28894-- REDIR: 0x40169d0 (strlen) redirected to 0x38061d67 (vgPlain_amd64_linux_REDIR_FOR_strlen) --28894-- Reading syms from /usr/lib/valgrind/vgpreload_core-amd64-linux.so (0x4a22000) --28894-- Considering /usr/lib/valgrind/vgpreload_core-amd64-linux.so .. --28894-- .. CRC mismatch (computed 2439aefb wanted 12795d6b) --28894-- Considering /usr/lib/debug/usr/lib/valgrind/vgpreload_core-amd64-linux.so .. --28894-- .. CRC is valid --28894-- Reading syms from /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so (0x4c24000) --28894-- Considering /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so .. --28894-- .. CRC mismatch (computed 765bf264 wanted b7bd9c2d) --28894-- Considering /usr/lib/debug/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so .. --28894-- .. CRC is valid --28894-- REDIR: 0x4016840 (index) redirected to 0x4c29180 (index) --28894-- REDIR: 0x40168c0 (strcmp) redirected to 0x4c2a0a0 (strcmp) --28894-- Reading syms from /usr/local/lib/libgnunetmicrophone.so.0.0.0 (0x4e2f000) --28894-- Reading syms from /usr/local/lib/libgnunetspeaker.so.0.0.0 (0x5031000) --28894-- Reading syms from /usr/local/lib/libgnunetconversation.so.0.0.0 (0x5233000) --28894-- Reading syms from /usr/local/lib/libgnunetgns.so.0.0.0 (0x5439000) --28894-- Reading syms from /usr/local/lib/libgnunetgnsrecord.so.0.0.0 (0x563c000) --28894-- Reading syms from /usr/local/lib/libgnunetnamestore.so.0.0.1 (0x5840000) --28894-- Reading syms from /usr/local/lib/libgnunetidentity.so.0.0.0 (0x5a47000) --28894-- Reading syms from /usr/local/lib/libgnunetutil.so.9.2.0 (0x5c4c000) --28894-- Reading syms from /lib/x86_64-linux-gnu/libm-2.13.so (0x5eab000) --28894-- Considering /lib/x86_64-linux-gnu/libm-2.13.so .. --28894-- .. CRC mismatch (computed 6432bfb2 wanted afb38428) --28894-- Considering /usr/lib/debug/lib/x86_64-linux-gnu/libm-2.13.so .. --28894-- .. CRC is valid --28894-- Reading syms from /lib/x86_64-linux-gnu/libc-2.13.so (0x612d000) --28894-- Considering /lib/x86_64-linux-gnu/libc-2.13.so .. --28894-- .. CRC mismatch (computed 94085f59 wanted 21fc4da2) --28894-- Considering /usr/lib/debug/lib/x86_64-linux-gnu/libc-2.13.so .. --28894-- .. CRC is valid --28894-- Reading syms from /usr/local/lib/libgnunetdnsparser.so.0.1.0 (0x64b7000) --28894-- Reading syms from /usr/local/lib/libgnunetstatistics.so.0.1.2 (0x66bc000) --28894-- Reading syms from /usr/local/lib/libgcrypt.so.20.0.0 (0x68c2000) --28894-- Reading syms from /usr/local/lib/libgpg-error.so.0.10.0 (0x6b9f000) --28894-- Reading syms from /usr/lib/x86_64-linux-gnu/libltdl.so.7.3.0 (0x6da3000) --28894-- object doesn't have a symbol table --28894-- Reading syms from /lib/x86_64-linux-gnu/libz.so.1.2.7 (0x6fac000) --28894-- Considering /lib/x86_64-linux-gnu/libz.so.1.2.7 .. --28894-- .. CRC mismatch (computed 57f46862 wanted 0646fc34) --28894-- object doesn't have a symbol table --28894-- Reading syms from /usr/lib/x86_64-linux-gnu/libunistring.so.0.1.2 (0x71c3000) --28894-- object doesn't have a symbol table --28894-- Reading syms from /usr/lib/x86_64-linux-gnu/libidn.so.11.6.8 (0x74da000) --28894-- object doesn't have a symbol table --28894-- Reading syms from /lib/x86_64-linux-gnu/libdl-2.13.so (0x770e000) --28894-- Considering /lib/x86_64-linux-gnu/libdl-2.13.so .. --28894-- .. CRC mismatch (computed 9914f48e wanted 4bf1fa82) --28894-- Considering /usr/lib/debug/lib/x86_64-linux-gnu/libdl-2.13.so .. --28894-- .. CRC is valid --28894-- REDIR: 0x61b1890 (strcasecmp) redirected to 0x4a22750 (_vgnU_ifunc_wrapper) --28894-- REDIR: 0x61b3b50 (strncasecmp) redirected to 0x4a22750 (_vgnU_ifunc_wrapper) --28894-- REDIR: 0x61af8f0 (__GI_strrchr) redirected to 0x4c28fa0 (__GI_strrchr) --28894-- REDIR: 0x61ade10 (__GI_strlen) redirected to 0x4c29500 (__GI_strlen) --28894-- REDIR: 0x61a8b20 (malloc) redirected to 0x4c28b80 (malloc) --28894-- REDIR: 0x61ac3d0 (__GI_strcmp) redirected to 0x4c2a050 (__GI_strcmp) --28894-- REDIR: 0x61afff0 (memchr) redirected to 0x4c2a140 (memchr) --28894-- REDIR: 0x61a8a40 (free) redirected to 0x4c27ce0 (free) --28894-- REDIR: 0x61b0690 (memset) redirected to 0x4a22750 (_vgnU_ifunc_wrapper) --28894-- REDIR: 0x61ba8f0 (__memset_x86_64) redirected to 0x4c2b490 (memset) --28894-- REDIR: 0xffffffffff600000 (???) redirected to 0x38061d53 (vgPlain_amd64_linux_REDIR_FOR_vgettimeofday) --28894-- REDIR: 0xffffffffff600400 (???) redirected to 0x38061d5d (vgPlain_amd64_linux_REDIR_FOR_vtime) --28894-- REDIR: 0x61b6220 (memcpy) redirected to 0x4a22750 (_vgnU_ifunc_wrapper) --28894-- REDIR: 0x61b6270 (__GI_memcpy) redirected to 0x4c2a620 (memcpy) --28894-- REDIR: 0x61addd0 (strlen) redirected to 0x4a22750 (_vgnU_ifunc_wrapper) --28894-- REDIR: 0x61ad820 (strcpy) redirected to 0x4a22750 (_vgnU_ifunc_wrapper) --28894-- REDIR: 0x61ad850 (__GI_strcpy) redirected to 0x4c295f0 (__GI_strcpy) --28894-- REDIR: 0x61ae040 (__GI_strncmp) redirected to 0x4c299d0 (__GI_strncmp) --28894-- REDIR: 0x61ac310 (__GI_strchr) redirected to 0x4c29080 (__GI_strchr) --28894-- REDIR: 0x61b7640 (strchrnul) redirected to 0x4c2b7d0 (strchrnul) --28894-- REDIR: 0x61b75f0 (__GI___rawmemchr) redirected to 0x4c2b820 (__GI___rawmemchr) --28894-- REDIR: 0x61baf40 (strstr) redirected to 0x4a22750 (_vgnU_ifunc_wrapper) --28894-- REDIR: 0x61bb380 (__GI_strstr) redirected to 0x4c2bbd0 (strstr) --28894-- REDIR: 0x61ac2e0 (index) redirected to 0x4a22750 (_vgnU_ifunc_wrapper) --28894-- REDIR: 0x61b18d0 (__strcasecmp_sse2) redirected to 0x4c29a40 (strcasecmp) --28894-- REDIR: 0x61af8c0 (rindex) redirected to 0x4a22750 (_vgnU_ifunc_wrapper) --28894-- REDIR: 0x61adef0 (strnlen) redirected to 0x4c29480 (strnlen) --28894-- REDIR: 0x61b3b90 (__strncasecmp_sse2) redirected to 0x4c29b20 (strncasecmp) --28894-- REDIR: 0x61634d0 (putenv) redirected to 0x4c2be70 (putenv) --28894-- REDIR: 0x61a9b70 (realloc) redirected to 0x4c28c50 (realloc) --28894-- REDIR: 0x61b1740 (__GI_stpcpy) redirected to 0x4c2b220 (__GI_stpcpy) --28894-- REDIR: 0x61af890 (strncpy) redirected to 0x4a22750 (_vgnU_ifunc_wrapper) --28894-- REDIR: 0x61ba810 (__GI_strncpy) redirected to 0x4c29810 (__GI_strncpy) ==28894== ==28894== Process terminating with default action of signal 6 (SIGABRT) ==28894== at 0x615F475: raise (raise.c:64) ==28894== by 0x61626EF: abort (abort.c:92) ==28894== by 0x5C620F8: GNUNET_abort (common_logging.c:289) ==28894== by 0x5C89F4A: GNUNET_SCHEDULER_add_file_with_priority (scheduler.c:1602) ==28894== by 0x5C8A00F: GNUNET_SCHEDULER_add_read_file (scheduler.c:1525) ==28894== by 0x401D80: handle_command (gnunet-conversation.c:1046) ==28894== by 0x5C8A990: GNUNET_SCHEDULER_run (scheduler.c:595) ==28894== by 0x5C86401: GNUNET_PROGRAM_run2 (program.c:302) ==28894== by 0x5C86739: GNUNET_PROGRAM_run (program.c:341) ==28894== by 0x401AF4: main (gnunet-conversation.c:1183) ==28894== ==28894== HEAP SUMMARY: ==28894== in use at exit: 56,929 bytes in 3,247 blocks ==28894== total heap usage: 5,367 allocs, 2,120 frees, 183,271 bytes allocated ==28894== ==28894== Searching for pointers to 3,247 not-freed blocks ==28894== Checked 286,136 bytes ==28894== ==28894== LEAK SUMMARY: ==28894== definitely lost: 0 bytes in 0 blocks ==28894== indirectly lost: 0 bytes in 0 blocks ==28894== possibly lost: 0 bytes in 0 blocks ==28894== still reachable: 56,929 bytes in 3,247 blocks ==28894== suppressed: 0 bytes in 0 blocks ==28894== Rerun with --leak-check=full to see details of leaked memory ==28894== ==28894== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 4 from 4) --28894-- --28894-- used_suppression: 4 dl-hack3-cond-1 ==28894== ==28894== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 4 from 4) | ||||
|
Fixed. Argh. grothoff@spec:~/svn/gnunet/src/util$ svn diff -r 31746 Index: scheduler.c =================================================================== --- scheduler.c (revision 31746) +++ scheduler.c (working copy) @@ -1599,7 +1599,7 @@ int real_fd; GNUNET_DISK_internal_file_handle_ (fd, &real_fd, sizeof (int)); - GNUNET_assert (real_fd > 0); + GNUNET_assert (real_fd >= 0); return add_without_sets ( delay, priority, on_read ? real_fd : -1, |
Date Modified | Username | Field | Change |
---|---|---|---|
2013-12-24 23:11 | yids | New Issue | |
2013-12-24 23:11 | yids | File Added: convValgrind.log | |
2013-12-24 23:25 | Christian Grothoff | Note Added: 0007944 | |
2013-12-24 23:25 | Christian Grothoff | Status | new => resolved |
2013-12-24 23:25 | Christian Grothoff | Fixed in Version | => 0.10.1 |
2013-12-24 23:25 | Christian Grothoff | Resolution | open => fixed |
2013-12-24 23:25 | Christian Grothoff | Assigned To | => Christian Grothoff |
2013-12-24 23:25 | Christian Grothoff | Target Version | => 0.10.1 |
2013-12-24 23:28 | Christian Grothoff | Fixed in Version | 0.10.1 => Git master |
2014-01-01 22:02 | Christian Grothoff | Fixed in Version | Git master => 0.10.1 |
2014-04-08 16:42 | Christian Grothoff | Status | resolved => closed |