View Issue Details

IDProjectCategoryView StatusLast Update
0002002gnunet-gtkgnunet-fs-gtkpublic2011-12-26 22:28
ReporterLRN Assigned ToChristian Grothoff  
PriorityhighSeveritycrashReproducibilityalways
Status closedResolutionfixed 
Product Version0.9.0 
Target Version0.9.1Fixed in Version0.9.1 
Summary0002002: Crash when advertising a namespace without keywords
DescriptionProgram received signal SIGSEGV, Segmentation fault.
0x6735ced4 in _fu971__skip_log () at fs_namespace.c:346
346 if (ac->pos == ac->ksk_uri->data.ksk.keywordCount)
(gdb) bt
#0 0x6735ced4 in _fu971__skip_log () at fs_namespace.c:346
#1 0x6735d7c6 in _fu983__skip_log () at fs_namespace.c:478
#2 0x004113e3 in _fu239__skip_log () at gnunet-fs-gtk-main_window_adv_pseudonym.c:570
#3 0x63a4807f in g_cclosure_marshal_VOID__VOID (closure=0x2f15318, return_value=0x0, n_param_values=1, param_values=0x2f33b90,
    invocation_hint=0x28f43c, marshal_data=0x0) at f:/src/for-mingwmsys/mingw-glib-2.31.2/glib-2.31.2/gobject/gmarshal.c:85
#4 0x63a466b7 in g_closure_invoke (closure=0x2f15318, return_value=0x0, n_param_values=1, param_values=0x2f33b90, invocation_hint=0x28f43c)
    at f:/src/for-mingwmsys/mingw-glib-2.31.2/glib-2.31.2/gobject/gclosure.c:774
#5 0x63a5bb3b in signal_emit_unlocked_R (node=0x2f11b38, detail=0, instance=0x2efe190, emission_return=0x0, instance_and_params=0x2f33b90)
    at f:/src/for-mingwmsys/mingw-glib-2.31.2/glib-2.31.2/gobject/gsignal.c:3302
#6 0x63a5b1c2 in g_signal_emit_valist (instance=0x2efe190, signal_id=107, detail=0, var_args=0x28f61c "2g8lP")
    at f:/src/for-mingwmsys/mingw-glib-2.31.2/glib-2.31.2/gobject/gsignal.c:3033
#7 0x63a5b478 in g_signal_emit (instance=0x2efe190, signal_id=107, detail=0)
    at f:/src/for-mingwmsys/mingw-glib-2.31.2/glib-2.31.2/gobject/gsignal.c:3090
#8 0x00d8e139 in gtk_widget_activate (widget=0x2efe190) at f:/src/for-mingwmsys/mingw-gtk+-2.24.8/gtk+-2.24.8/gtk/gtkwidget.c:5015
#9 0x00c4f7a3 in gtk_menu_shell_activate_item (menu_shell=0x2f010b0, menu_item=0x2efe190, force_deactivate=1)
    at f:/src/for-mingwmsys/mingw-gtk+-2.24.8/gtk+-2.24.8/gtk/gtkmenushell.c:1256
#10 0x00c4e605 in gtk_menu_shell_button_release (widget=0x2f010b0, event=0x2efcdd0)
    at f:/src/for-mingwmsys/mingw-gtk+-2.24.8/gtk+-2.24.8/gtk/gtkmenushell.c:683
#11 0x00c42d85 in gtk_menu_button_release (widget=0x2f010b0, event=0x2efcdd0)
    at f:/src/for-mingwmsys/mingw-gtk+-2.24.8/gtk+-2.24.8/gtk/gtkmenu.c:3043
#12 0x00c390db in _gtk_marshal_BOOLEAN__BOXED (closure=0x2ed83e0, return_value=0x28f868, n_param_values=2, param_values=0x48ef1d0,
    invocation_hint=0x28f88c, marshal_data=0xc42c51) at f:/src/for-mingwmsys/mingw-gtk+-2.24.8/gtk+-2.24.8/gtk/gtkmarshalers.c:86
#13 0x63a46962 in g_type_class_meta_marshal (closure=0x2ed83e0, return_value=0x28f868, n_param_values=2, param_values=0x48ef1d0,
    invocation_hint=0x28f88c, marshal_data=0xb4) at f:/src/for-mingwmsys/mingw-glib-2.31.2/glib-2.31.2/gobject/gclosure.c:885
#14 0x63a466b7 in g_closure_invoke (closure=0x2ed83e0, return_value=0x28f868, n_param_values=2, param_values=0x48ef1d0, invocation_hint=0x28f88c)
    at f:/src/for-mingwmsys/mingw-glib-2.31.2/glib-2.31.2/gobject/gclosure.c:774
#15 0x63a5bc85 in signal_emit_unlocked_R (node=0x2ed8520, detail=0, instance=0x2f010b0, emission_return=0x28f9a8, instance_and_params=0x48ef1d0)
    at f:/src/for-mingwmsys/mingw-glib-2.31.2/glib-2.31.2/gobject/gsignal.c:3340
#16 0x63a5b23f in g_signal_emit_valist (instance=0x2f010b0, signal_id=33, detail=0, var_args=0x28fa70 "\210ъ(")
    at f:/src/for-mingwmsys/mingw-glib-2.31.2/glib-2.31.2/gobject/gsignal.c:3043
#17 0x63a5b478 in g_signal_emit (instance=0x2f010b0, signal_id=33, detail=0)
    at f:/src/for-mingwmsys/mingw-glib-2.31.2/glib-2.31.2/gobject/gsignal.c:3090
#18 0x00d8e039 in gtk_widget_event_internal (widget=0x2f010b0, event=0x2efcdd0)
    at f:/src/for-mingwmsys/mingw-gtk+-2.24.8/gtk+-2.24.8/gtk/gtkwidget.c:4984
#19 0x00d8dbdf in gtk_widget_event (widget=0x2f010b0, event=0x2efcdd0) at f:/src/for-mingwmsys/mingw-gtk+-2.24.8/gtk+-2.24.8/gtk/gtkwidget.c:4781
#20 0x00c37b81 in gtk_propagate_event (widget=0x2f010b0, event=0x2efcdd0) at f:/src/for-mingwmsys/mingw-gtk+-2.24.8/gtk+-2.24.8/gtk/gtkmain.c:2489
#21 0x00c3688f in gtk_main_do_event (event=0x2efcdd0) at f:/src/for-mingwmsys/mingw-gtk+-2.24.8/gtk+-2.24.8/gtk/gtkmain.c:1684
#22 0x6c3865cb in gdk_event_dispatch (source=0x2ed74e0, callback=0, user_data=0x0)
    at f:/src/for-mingwmsys/mingw-gtk+-2.24.8/gtk+-2.24.8/gdk/win32/gdkevents-win32.c:3602
#23 0x685f71d4 in g_main_dispatch (context=0x2ed7560) at f:/src/for-mingwmsys/mingw-glib-2.31.2/glib-2.31.2/glib/gmain.c:2513
#24 0x685f7d02 in g_main_context_dispatch (context=0x2ed7560) at f:/src/for-mingwmsys/mingw-glib-2.31.2/glib-2.31.2/glib/gmain.c:3050
#25 0x6be74577 in run_ready (rs=0x2ebdb40, ws=0x2ebeb68) at scheduler.c:684
#26 0x6be74ce5 in GNUNET_SCHEDULER_run (task=0x6be6e434 <program_main>, task_cls=0x28fdec) at scheduler.c:874
#27 0x6be6ec49 in GNUNET_PROGRAM_run (argc=1, argv=0x2eb2090, binaryName=0x417007 "gnunet-fs-gtk", binaryHelp=0x41730c "GTK GUI for GNUnet",
    options=0x415140, task=0x411bc4 <run_main_loop>, task_cls=0x28fe90) at program.c:250
#28 0x00412fe8 in GNUNET_GTK_main_loop_start (binary_name=0x417007 "gnunet-fs-gtk", binary_help=0x41730c "GTK GUI for GNUnet", argc=1,
    argv=0x2eb2090, options=0x415140, main_window_file=0x4172ec "gnunet_fs_gtk_main_window.glade", main_task=0x409340 <run>) at eventloop.c:909
#29 0x00414c18 in main (argc=1, argv=0x2eb2090) at gnunet-fs-gtk.c:726
Steps To Reproduce1) Create a namespace.
2) Advertise it without adding any keywords to the list
Additional InformationI do not know whether it should be allowed to advertise without keywords (that is, uri argument turns out to be NULL) or not. If not, this should be handled at fs_api level, not in the GUI (although GUI does have to let the user know that advertising did not happen, if an error was returned).
TagsNo tags attached.

Activities

Christian Grothoff

2011-12-13 18:15

manager   ~0005084

Advertising without keywords makes no sense, so the correct answer is for the GUI to disable the 'ok' button as long as there are no keywords.

Christian Grothoff

2011-12-13 19:14

manager   ~0005089

Fixed in SVN #18585.

Issue History

Date Modified Username Field Change
2011-12-12 18:50 LRN New Issue
2011-12-13 18:15 Christian Grothoff Note Added: 0005084
2011-12-13 18:27 Christian Grothoff Assigned To => Christian Grothoff
2011-12-13 18:27 Christian Grothoff Status new => assigned
2011-12-13 18:27 Christian Grothoff Product Version => 0.9.0
2011-12-13 18:27 Christian Grothoff Target Version => 0.9.1
2011-12-13 18:41 Christian Grothoff Priority low => high
2011-12-13 18:41 Christian Grothoff Severity minor => crash
2011-12-13 19:14 Christian Grothoff Note Added: 0005089
2011-12-13 19:14 Christian Grothoff Status assigned => resolved
2011-12-13 19:14 Christian Grothoff Fixed in Version => 0.9.1
2011-12-13 19:14 Christian Grothoff Resolution open => fixed
2011-12-26 22:28 Christian Grothoff Status resolved => closed