After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 303927 - gnome-panel crash with gamin pollonly mode
gnome-panel crash with gamin pollonly mode
Status: RESOLVED FIXED
Product: gnome-menus
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-menus dummy account
gnome-menus dummy account
Depends on:
Blocks:
 
 
Reported: 2005-05-12 15:25 UTC by Frederic Crozat
Modified: 2005-05-12 15:49 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Frederic Crozat 2005-05-12 15:25:29 UTC
Distribution/Version: Mandriva Linux cooker

using gamin 0.1.0 :

if I start gamin in pollonly mode, when opening menu in gnome-panel (which
creates a lot of monitors), I get the following crash :

Poll: file is new
Poll: emit events 32 for
/var/lib/menu-xdg/applications/Mandrakelinux/System/Configuration/KDE/Components/filetypes.desktop
Event to 11342 : 74, 5, filetypes.desktop Created
Failed to write bytes to socket 9
Failed to send event to 11342
Failed to send event to PID 11342
Poll: poll_file for
/var/lib/menu-xdg/applications/Mandrakelinux/System/Configuration/KDE/Components/componentchooser.desktop
called
Poll: file is new
Poll: emit events 32 for
/var/lib/menu-xdg/applications/Mandrakelinux/System/Configuration/KDE/Components/componentchooser.desktop
Event to 11342 : 74, 5, componentchooser.desktop Created

Program received signal SIGPIPE, Broken pipe.
0xffffe410 in ?? ()
(gdb) bt
  • #0 ??
  • #1 ??
  • #2 ??
  • #3 ??
  • #4 write
    from /lib/tls/libc.so.6
  • #5 gam_client_conn_write
    at gam_channel.c line 815
  • #6 gam_send_event
    at gam_connection.c line 550
  • #7 gam_server_emit_event
    at gam_server.c line 291
  • #8 gam_poll_emit_event
    at gam_poll.c line 282
  • #9 gam_poll_scan_directory_internal
    at gam_poll.c line 621
  • #10 gam_poll_scan_all_callback
    at gam_poll.c line 877
  • #11 g_timeout_dispatch
    at gmain.c line 3292
  • #12 g_main_dispatch
    at gmain.c line 1933
  • #13 IA__g_main_context_dispatch
    at gmain.c line 2483
  • #14 g_main_context_iterate
    at gmain.c line 2564
  • #15 IA__g_main_loop_run
    at gmain.c line 2768
  • #16 main
    at gam_server.c line 380

Comment 1 Frederic Crozat 2005-05-12 15:40:36 UTC
ok, it seems to be caused by crash in gnome-panel on the other side of the pipe :

Program received signal SIGSEGV, Segmentation fault.

Thread NaN (LWP 11554)

  • #0 g_build_pathv
    at gfileutils.c line 1150
  • #1 IA__g_build_filename
    at gfileutils.c line 1300
  • #2 queue_fam_event
    at menu-monitor.c line 165
  • #3 process_fam_events
    at menu-monitor.c line 289
  • #4 register_monitor_with_fam
    at menu-monitor.c line 363
  • #5 lookup_monitor
    at menu-monitor.c line 446
  • #6 menu_get_directory_monitor
    at menu-monitor.c line 473
  • #7 cached_dir_ensure_monitor
    at entry-directories.c line 536
  • #8 cached_dir_load_entries_recursive
    at entry-directories.c line 569
  • #9 cached_dir_add_subdir
    at entry-directories.c line 403
  • #10 cached_dir_load_entries_recursive
    at entry-directories.c line 595
  • #11 cached_dir_add_subdir
    at entry-directories.c line 403
  • #12 cached_dir_load_entries_recursive
    at entry-directories.c line 595
  • #13 cached_dir_add_subdir
    at entry-directories.c line 403
  • #14 cached_dir_load_entries_recursive
    at entry-directories.c line 595
  • #15 cached_dir_load
    at entry-directories.c line 651
  • #16 entry_directory_new_full
    at entry-directories.c line 770
  • #17 entry_directory_new
    at entry-directories.c line 790
  • #18 ensure_dir_lists
    at menu-layout.c line 678
  • #19 menu_layout_node_menu_get_app_dirs
    at menu-layout.c line 771
  • #20 process_layout
    at gmenu-tree.c line 3044
  • #21 gmenu_tree_build_from_layout
    at gmenu-tree.c line 3787
  • #22 gmenu_tree_get_root_directory
    at gmenu-tree.c line 729
  • #23 gmenu_tree_get_directory_from_path
    at gmenu-tree.c line 804
  • #24 submenu_to_display
    at menu.c line 1230
  • #25 IA__g_cclosure_marshal_VOID__VOID
    at gmarshal.c line 77
  • #26 IA__g_closure_invoke
    at gclosure.c line 437
  • #27 signal_emit_unlocked_R
    at gsignal.c line 2488
  • #28 IA__g_signal_emit_valist
    at gsignal.c line 2247
  • #29 IA__g_signal_emit
    at gsignal.c line 2291
  • #30 IA__gtk_widget_show
    at gtkwidget.c line 2012
  • #31 IA__gtk_menu_popup
    at gtkmenu.c line 1408
  • #32 _gtk_menu_item_popup_submenu
    at gtkmenuitem.c line 1006
  • #33 gtk_real_menu_item_select
    at gtkmenuitem.c line 871
  • #34 IA__g_cclosure_marshal_VOID__VOID
    at gmarshal.c line 77
  • #35 g_type_class_meta_marshal
    at gclosure.c line 514
  • #36 IA__g_closure_invoke
    at gclosure.c line 437
  • #37 signal_emit_unlocked_R
    at gsignal.c line 2418
  • #38 IA__g_signal_emit_valist
    at gsignal.c line 2247
  • #39 IA__g_signal_emit
    at gsignal.c line 2291
  • #40 IA__gtk_item_select
    at gtkitem.c line 134
  • #41 IA__gtk_menu_item_select
    at gtkmenuitem.c line 417
  • #42 gtk_menu_shell_real_select_item
    at gtkmenushell.c line 885
  • #43 IA__gtk_menu_shell_select_item
    at gtkmenushell.c line 867
  • #44 gtk_menu_shell_enter_notify
    at gtkmenushell.c line 660
  • #45 _gtk_marshal_BOOLEAN__BOXED
    at gtkmarshalers.c line 83
  • #46 g_type_class_meta_marshal
    at gclosure.c line 514
  • #47 IA__g_closure_invoke
    at gclosure.c line 437
  • #48 signal_emit_unlocked_R
    at gsignal.c line 2526
  • #49 IA__g_signal_emit_valist
    at gsignal.c line 2257
  • #50 IA__g_signal_emit
    at gsignal.c line 2291
  • #51 gtk_widget_event_internal
    at gtkwidget.c line 3631
  • #52 IA__gtk_widget_event
    at gtkwidget.c line 3437
  • #53 gtk_menu_shell_enter_notify
    at gtkmenushell.c line 665
  • #54 gtk_menu_enter_notify
    at gtkmenu.c line 3095
  • #55 _gtk_marshal_BOOLEAN__BOXED
    at gtkmarshalers.c line 83
  • #56 g_type_class_meta_marshal
    at gclosure.c line 514
  • #57 IA__g_closure_invoke
    at gclosure.c line 437
  • #58 signal_emit_unlocked_R
    at gsignal.c line 2526
  • #59 IA__g_signal_emit_valist
    at gsignal.c line 2257
  • #60 IA__g_signal_emit
    at gsignal.c line 2291
  • #61 gtk_widget_event_internal
    at gtkwidget.c line 3631
  • #62 IA__gtk_widget_event
    at gtkwidget.c line 3437
  • #63 IA__gtk_main_do_event
    at gtkmain.c line 1399
  • #64 gdk_event_dispatch
    at gdkevents-x11.c line 2221
  • #65 g_main_dispatch
    at gmain.c line 1933
  • #66 IA__g_main_context_dispatch
    at gmain.c line 2483
  • #67 g_main_context_iterate
    at gmain.c line 2564
  • #68 IA__g_main_loop_run
    at gmain.c line 2768
  • #69 IA__gtk_main
    at gtkmain.c line 971
  • #70 main
    at main.c line 90

gnome-menus is CVS HEAD from 2005-05-12 (same for gnome-panel and gamin)
Comment 2 Mark McLoughlin 2005-05-12 15:49:23 UTC
Thanks

2005-05-12  Mark McLoughlin  <mark@skynet.ie>

        Fix for bug #303927

        * libmenu/menu-monitor.c: (queue_fam_event): NULL-terminate
        the arguments to g_build_filename()