View Issue Details

IDProjectCategoryView StatusLast Update
0002403gnunet-gtkgnunet-fs-gtkpublic2012-11-05 18:32
ReporterLRN Assigned ToChristian Grothoff  
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionfixed 
PlatformW32OSNTOS Version6.1.7601
Product Version0.9.3 
Target Version0.9.4Fixed in Version0.9.4 
Summary0002403: Crash in gnunet-fs-gtk when searching for a file that is already downloaded
DescriptionNot sure what it does.
Steps To Reproduce0) gnunet-search lrn
1) Download
gnunet-download -o "CEP176_512kb.mp4" gnunet://fs/chk/0EIOMD6210R4IKO3LQH47DAB3VEPSH5GFGKPN5KDVL42P6RI5QOH8IH9KJSFJLOG5IL0L4MSNOHRP0L310U4A9OBNUFAQMAU8N1PJ88.TJEBP5FLB9O000B90J8P7D3R5D9R2A1KH11P686J9FC6RUORMLHHNMF26USERO8SSE1R60HSUA691SJUQG2RGJ392JRM5R60B0I1RI0.9128785

2) After it's complete, start up gnunet-fs-gtk
3) Search for 'lrn' - it will find at least one result (the mp4 file you've downloaded)
4) Wait a few seconds - it will crash
Additional Information
Program received signal SIGTRAP, Trace/breakpoint trap.
0x75b8280d in KERNELBASE!DeleteAce () from C:\Windows\syswow64\KernelBase.dll
(gdb) bt
#0  0x75b8280d in KERNELBASE!DeleteAce () from C:\Windows\syswow64\KernelBase.dll
#1  0x62ac6614 in GNUNET_abort () at common_logging.c:271
#2  0x62ad3eb5 in GNUNET_CONTAINER_multihashmap_iterate (map=0x0, it=0x69c137db <retry_entry>, it_cls=0x46e8610) at container_multihashmap.c:203
#3  0x69c13e26 in _fu683__skip_log () at fs_download.c:1443
#4  0x69c013e9 in _fu5__skip_log () at fs_api.c:59
#5  0x69c01c70 in process_job_queue (cls=0x341d670, tc=0x28fc20) at fs_api.c:119
#6  0x62af5d7e in run_ready (rs=0x33d42c8, ws=0x33d52f0) at scheduler.c:602
#7  0x62af64ef in GNUNET_SCHEDULER_run (task=0x62aefa14 <program_main>, task_cls=0x28fdac) at scheduler.c:790
#8  0x62af023d in GNUNET_PROGRAM_run2 (argc=1, argv=0x33c7d10, binaryName=0x41e2bb "gnunet-fs-gtk", binaryHelp=0x41e318 "GTK GUI for GNUnet", options=0x41d000, task=0x419da5 <run_main_loop>, task_cls=0x28fe88,
    run_without_scheduler=0) at program.c:261
#9  0x62af0345 in GNUNET_PROGRAM_run (argc=1, argv=0x33c7d10, binaryName=0x41e2bb "gnunet-fs-gtk", binaryHelp=0x41e318 "GTK GUI for GNUnet", options=0x41d000, task=0x419da5 <run_main_loop>, task_cls=0x28fe88) at program.c:296
#10 0x0041a229 in GNUNET_GTK_main_loop_start (binary_name=0x41e2bb "gnunet-fs-gtk", binary_help=0x41e318 "GTK GUI for GNUnet", argc=1, argv=0x33c7d10, options=0x41d000,
    main_window_file=0x41e2f8 "gnunet_fs_gtk_main_window.glade", main_task=0x4017b8 <run>) at ../../../gnunet-gtk-git-svn/src/lib/eventloop.c:911
#11 0x00401da5 in main (argc=1, argv=0x33c7d10) at ../../../gnunet-gtk-git-svn/src/fs/gnunet-fs-gtk.c:444
(gdb) up
#1  0x62ac6614 in GNUNET_abort () at common_logging.c:271
271       DebugBreak ();
(gdb)
#2  0x62ad3eb5 in GNUNET_CONTAINER_multihashmap_iterate (map=0x0, it=0x69c137db <retry_entry>, it_cls=0x46e8610) at container_multihashmap.c:203
203       GNUNET_assert (map != NULL);
(gdb)
#3  0x69c13e26 in _fu683__skip_log () at fs_download.c:1443
1443      GNUNET_CONTAINER_multihashmap_iterate (dc->active, &retry_entry, dc);
(gdb) p *dc
$5 = {h = 0x341d670, top = 0x46e94a8, client = 0x46e5ee8, parent = 0x0, search = 0x0, child_head = 0x0, child_tail = 0x0, prev = 0x0, next = 0x0, client_info = 0x46dfb98, uri = 0x46e8710, meta = 0x46e74f8,
  emsg = 0x46da3e8 "internal error decoding tree", serialization = 0x0, filename = 0x0, temp_filename = 0x0, job_queue = 0x46df3e0, th = 0x0, te = 0x0, rfh = 0x0, active = 0x0, pending_head = 0x0, pending_tail = 0x0,
  top_request = 0x0, target = {hashPubKey = {bits = {0 <repeats 16 times>}}}, task = 0, offset = 9076736, length = 32768, completed = 0, old_file_size = 0, start_time = {abs_value = 1338685893062}, anonymity = 1, treedepth = 3,
  options = -2147483644, has_finished = 0, in_receive = 0, issue_requests = 1}
TagsNo tags attached.

Activities

Christian Grothoff

2012-06-08 16:15

manager   ~0006029

I believe SVN 21805 fixes this issue. Please let me know if not.

LRN

2012-06-08 18:29

developer   ~0006032

Not fixed in r21805. Still the same crash.

Christian Grothoff

2012-06-09 16:27

manager   ~0006038

I've added a few additional assertions to help diagnose the problem in SVN 21813. I still could not reproduce it (or figure out by reading code), so please report it if any of those assertions fails.

LRN

2012-06-09 21:14

developer   ~0006040

Reproducible on my node with 100% success. Here's a new backtrace:
Program received signal SIGTRAP, Trace/breakpoint trap.
0x75b8280d in KERNELBASE!DeleteAce () from C:\Windows\syswow64\KernelBase.dll
(gdb) bt
#0  0x75b8280d in KERNELBASE!DeleteAce () from C:\Windows\syswow64\KernelBase.dll
#1  0x62ac6614 in GNUNET_abort () at common_logging.c:271
#2  0x69c13eb7 in _fu686__skip_log () at fs_download.c:1438
#3  0x69c013e9 in _fu5__skip_log () at fs_api.c:59
#4  0x69c01c70 in process_job_queue (cls=0x7911b0, tc=0x28fc20) at fs_api.c:119
#5  0x62af5f66 in run_ready (rs=0x7144e8, ws=0x715510) at scheduler.c:602
#6  0x62af66d7 in GNUNET_SCHEDULER_run (task=0x62aefbfc <program_main>, task_cls=0x28fdac) at scheduler.c:790
#7  0x62af0425 in GNUNET_PROGRAM_run2 (argc=1, argv=0x707d50, binaryName=0x41e2bb "gnunet-fs-gtk", binaryHelp=0x41e318 "GTK GUI for GNUnet", options=0x41d000, task=0x419db5 <run_main_loop>, task_cls=0x28fe88,
    run_without_scheduler=0) at program.c:261
#8  0x62af052d in GNUNET_PROGRAM_run (argc=1, argv=0x707d50, binaryName=0x41e2bb "gnunet-fs-gtk", binaryHelp=0x41e318 "GTK GUI for GNUnet", options=0x41d000, task=0x419db5 <run_main_loop>, task_cls=0x28fe88) at program.c:296
#9  0x0041a239 in GNUNET_GTK_main_loop_start (binary_name=0x41e2bb "gnunet-fs-gtk", binary_help=0x41e318 "GTK GUI for GNUnet", argc=1, argv=0x707d50, options=0x41d000,
    main_window_file=0x41e2f8 "gnunet_fs_gtk_main_window.glade", main_task=0x4017b8 <run>) at ../../../gnunet-gtk-git-svn/src/lib/eventloop.c:911
#10 0x00401da5 in main (argc=1, argv=0x707d50) at ../../../gnunet-gtk-git-svn/src/fs/gnunet-fs-gtk.c:444
(gdb) up
#1  0x62ac6614 in GNUNET_abort () at common_logging.c:271
271       DebugBreak ();
(gdb)
#2  0x69c13eb7 in _fu686__skip_log () at fs_download.c:1438
1438      GNUNET_assert (NULL != dc->active);
(gdb) p dc->active
$1 = (struct GNUNET_CONTAINER_MultiHashMap *) 0x0
(gdb) p *dc
$2 = {h = 0x7911b0, top = 0x0, client = 0x0, parent = 0x0, search = 0x0, child_head = 0x0, child_tail = 0x0, prev = 0x0, next = 0x0, client_info = 0x4bb45a0, uri = 0x4bb69c8, meta = 0x4b18cf0,
  emsg = 0x764c20 "internal error decoding tree", serialization = 0x0, filename = 0x0, temp_filename = 0x0, job_queue = 0x4bb4540, th = 0x0, te = 0x0, rfh = 0x0, active = 0x0, pending_head = 0x0, pending_tail = 0x0,
  top_request = 0x0, target = {hashPubKey = {bits = {0 <repeats 16 times>}}}, task = 0, offset = 9076736, length = 32768, completed = 0, old_file_size = 0, start_time = {abs_value = 1339269019171}, anonymity = 1, treedepth = 3,
  options = -2147483644, has_finished = 0, in_receive = 0, issue_requests = 1}

And a new INFO-level log from gnunet-fs-gtk:
(gnunet-fs-gtk.exe:9924): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed
июн 09 23:10:16-00000000000976114236 util-9924 INFO Trying to connect to `[::1]:2094' (0x4b8d1b8)
июн 09 23:10:16-00000000000976114237 util-9924 INFO Trying to connect to `127.0.0.1:2094' (0x4b8d1b8)
июн 09 23:10:16-00000000000976114237 gnunet-fs-gtk-9924 DEBUG Download activated
июн 09 23:10:16-00000000000976114237 gnunet-fs-gtk-9924 DEBUG Asking for transmission to FS service
июн 09 23:10:16-00000000000976114237 gnunet-fs-gtk-9924 DEBUG Download activated
июн 09 23:10:16-00000000000976114237 gnunet-fs-gtk-9924 DEBUG Asking for transmission to FS service
июн 09 23:10:16-00000000000976114237 util-9924 INFO Trying to connect to `[::1]:2094' (0x4bc0eb8)
июн 09 23:10:16-00000000000976114238 util-9924 INFO Trying to connect to `127.0.0.1:2094' (0x4bc0eb8)
июн 09 23:10:16-00000000000976114238 util-9924 INFO Trying to connect to `[::1]:2094' (0x764268)
июн 09 23:10:16-00000000000976114238 util-9924 INFO Trying to connect to `127.0.0.1:2094' (0x764268)
июн 09 23:10:16-00000000000976114269 gnunet-fs-gtk-9924 ERROR Assertion failed at fs_download.c:1124.
июн 09 23:10:17-00000000000976115503 gnunet-fs-gtk-9924 DEBUG Download deactivated
июн 09 23:10:17-00000000000976115508 gnunet-fs-gtk-9924 DEBUG Download deactivated
июн 09 23:10:19-00000000000976116850 util-9924 INFO Trying to connect to `[::1]:2094' (0x4bca700)
июн 09 23:10:19-00000000000976116851 util-9924 INFO Trying to connect to `127.0.0.1:2094' (0x4bca700)
июн 09 23:10:19-00000000000976116878 gnunet-fs-gtk-9924 DEBUG Download activated
июн 09 23:10:19-00000000000976116878 gnunet-fs-gtk-9924 DEBUG Asking for transmission to FS service
июн 09 23:10:19-00000000000976116878 util-9924 INFO Trying to connect to `[::1]:2094' (0x4be8f60)
июн 09 23:10:19-00000000000976116878 util-9924 INFO Trying to connect to `127.0.0.1:2094' (0x4be8f60)
июн 09 23:10:19-00000000000976116900 gnunet-fs-gtk-9924 ERROR Assertion failed at fs_download.c:1124.
июн 09 23:10:21-00000000000976118879 gnunet-fs-gtk-9924 DEBUG Download deactivated
июн 09 23:10:21-00000000000976118884 gnunet-fs-gtk-9924 DEBUG Download activated
июн 09 23:10:21-00000000000976118884 gnunet-fs-gtk-9924 DEBUG Asking for transmission to FS service
июн 09 23:10:21-00000000000976118884 util-9924 INFO Trying to connect to `[::1]:2094' (0x4bbc548)
июн 09 23:10:21-00000000000976118884 util-9924 INFO Trying to connect to `127.0.0.1:2094' (0x4bbc548)
июн 09 23:10:23-00000000000976120884 gnunet-fs-gtk-9924 DEBUG Download deactivated
июн 09 23:10:23-00000000000976120889 gnunet-fs-gtk-9924 DEBUG Download activated
июн 09 23:10:23-00000000000976120889 gnunet-fs-gtk-9924 ERROR Assertion failed at fs_download.c:1438.

Christian Grothoff

2012-06-09 21:31

manager   ~0006041

SVN 21830 contains another possible fix, found one path that conceivably might lead to an error at line 1438.

LRN

2012-06-10 05:59

developer   ~0006042

Apparently fixed.

Issue History

Date Modified Username Field Change
2012-06-03 03:18 LRN New Issue
2012-06-07 22:14 Christian Grothoff Assigned To => Christian Grothoff
2012-06-07 22:14 Christian Grothoff Status new => assigned
2012-06-08 16:15 Christian Grothoff Note Added: 0006029
2012-06-08 16:15 Christian Grothoff Status assigned => feedback
2012-06-08 16:15 Christian Grothoff Target Version => 0.9.4
2012-06-08 16:16 Christian Grothoff Product Version Git master => 0.9.3
2012-06-08 18:29 LRN Note Added: 0006032
2012-06-08 18:29 LRN Status feedback => assigned
2012-06-09 16:27 Christian Grothoff Note Added: 0006038
2012-06-09 21:14 LRN Note Added: 0006040
2012-06-09 21:31 Christian Grothoff Note Added: 0006041
2012-06-10 05:59 LRN Note Added: 0006042
2012-06-10 12:11 Christian Grothoff Status assigned => resolved
2012-06-10 12:11 Christian Grothoff Fixed in Version => 0.9.4
2012-06-10 12:11 Christian Grothoff Resolution open => fixed
2012-11-05 18:32 Christian Grothoff Status resolved => closed