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 359537 - printing custom page
printing custom page
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Printing
2.10.x
Other All
: High critical
: ---
Assigned To: gtk-bugs
: 372844 375292 390042 393771 395454 429676 431337 433539 462927 480434 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-10-04 09:45 UTC by mohan.satish
Modified: 2007-10-08 12:43 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16


Attachments
A patch (1.52 KB, patch)
2006-10-25 16:27 UTC, Carlos Garcia Campos
none Details | Review

Description mohan.satish 2006-10-04 09:45:18 UTC
Version: 2.16.0

What were you doing when the application crashed?
added a custom page size and tried to print


Distribution: Fedora Core release 5.92 (FC6 Test3)
Gnome Release: 2.16.0 2006-09-04 (Red Hat, Inc)
BugBuddy Version: 2.16.0

Memory status: size: 130691072 vsize: 0 resident: 130691072 share: 0 rss: 37560320 rss_rlim: 0
CPU usage: start_time: 1159955075 rtime: 0 utime: 714 stime: 0 cutime:660 cstime: 0 timeout: 54 it_real_value: 0 frequency: 0

Backtrace was generated from '/usr/bin/epiphany'

(no debugging symbols found)
Using host libthread_db library "/lib/libthread_db.so.1".
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1208899328 (LWP 3269)]
[New Thread -1266361456 (LWP 3275)]
[New Thread -1232598128 (LWP 3272)]
[New Thread -1222108272 (LWP 3271)]
(no debugging symbols found)
0x00f89402 in __kernel_vsyscall ()

Thread 1 (Thread -1208899328 (LWP 3269))

  • #0 __kernel_vsyscall
  • #1 __waitpid_nocancel
    from /lib/libpthread.so.0
  • #2 gnome_gtk_module_info_get
    from /usr/lib/libgnomeui-2.so.0
  • #3 nsSupportsWeakReference::~nsSupportsWeakReference\$base
    from /usr/lib/firefox-1.5.0.7/libgtkembedmoz.so
  • #4 <signal handler called>
  • #5 strncpy
    from /lib/libc.so.6
  • #6 pb_module_init
    from /usr/lib/gtk-2.0/2.10.0/printbackends/libprintbackend-cups.so
  • #7 gtk_printer_set_has_details
    from /usr/lib/libgtk-x11-2.0.so.0
  • #8 gtk_print_run_page_setup_dialog
    from /usr/lib/libgtk-x11-2.0.so.0
  • #9 g_cclosure_marshal_VOID__BOOLEAN
    from /lib/libgobject-2.0.so.0
  • #10 g_closure_invoke
    from /lib/libgobject-2.0.so.0
  • #11 g_signal_override_class_closure
    from /lib/libgobject-2.0.so.0
  • #12 g_signal_emit_valist
    from /lib/libgobject-2.0.so.0
  • #13 g_signal_emit_by_name
    from /lib/libgobject-2.0.so.0
  • #14 pb_module_init
    from /usr/lib/gtk-2.0/2.10.0/printbackends/libprintbackend-cups.so
  • #15 pb_module_init
    from /usr/lib/gtk-2.0/2.10.0/printbackends/libprintbackend-cups.so
  • #16 g_main_context_dispatch
    from /lib/libglib-2.0.so.0
  • #17 g_main_context_check
    from /lib/libglib-2.0.so.0
  • #18 g_main_loop_run
    from /lib/libglib-2.0.so.0
  • #19 gtk_dialog_run
    from /usr/lib/libgtk-x11-2.0.so.0
  • #20 GeckoPrintService::TranslateSettings
  • #21 NSGetModule
    from /usr/lib/firefox-1.5.0.7/components/libgklayout.so
  • #22 NSGetModule
    from /usr/lib/firefox-1.5.0.7/components/libgklayout.so
  • #23 EphyBrowser::Print
  • #24 mozilla_embed_get_type
  • #25 ephy_embed_print
  • #26 window_cmd_file_print
  • #27 g_cclosure_marshal_VOID__VOID
    from /lib/libgobject-2.0.so.0
  • #28 g_closure_invoke
    from /lib/libgobject-2.0.so.0
  • #29 g_signal_override_class_closure
    from /lib/libgobject-2.0.so.0
  • #30 g_signal_emit_valist
    from /lib/libgobject-2.0.so.0
  • #31 g_signal_emit
    from /lib/libgobject-2.0.so.0
  • #32 gtk_widget_get_action
    from /usr/lib/libgtk-x11-2.0.so.0
  • #33 gtk_action_activate
    from /usr/lib/libgtk-x11-2.0.so.0
  • #34 g_cclosure_marshal_VOID__VOID
    from /lib/libgobject-2.0.so.0
  • #35 g_closure_invoke
    from /lib/libgobject-2.0.so.0
  • #36 g_signal_override_class_closure
    from /lib/libgobject-2.0.so.0
  • #37 g_signal_emit_valist
    from /lib/libgobject-2.0.so.0
  • #38 g_signal_emit
    from /lib/libgobject-2.0.so.0
  • #39 gtk_widget_activate
    from /usr/lib/libgtk-x11-2.0.so.0
  • #40 gtk_menu_shell_activate_item
    from /usr/lib/libgtk-x11-2.0.so.0
  • #41 gtk_menu_shell_append
    from /usr/lib/libgtk-x11-2.0.so.0
  • #42 gtk_menu_reorder_child
    from /usr/lib/libgtk-x11-2.0.so.0
  • #43 gtk_marshal_BOOLEAN__VOID
    from /usr/lib/libgtk-x11-2.0.so.0
  • #44 g_value_set_static_boxed
    from /lib/libgobject-2.0.so.0
  • #45 g_closure_invoke
    from /lib/libgobject-2.0.so.0
  • #46 g_signal_override_class_closure
    from /lib/libgobject-2.0.so.0
  • #47 g_signal_emit_valist
    from /lib/libgobject-2.0.so.0
  • #48 g_signal_emit
    from /lib/libgobject-2.0.so.0
  • #49 gtk_widget_get_default_style
    from /usr/lib/libgtk-x11-2.0.so.0
  • #50 gtk_propagate_event
    from /usr/lib/libgtk-x11-2.0.so.0
  • #51 gtk_main_do_event
    from /usr/lib/libgtk-x11-2.0.so.0
  • #52 gdk_add_client_message_filter
    from /usr/lib/libgdk-x11-2.0.so.0
  • #53 g_main_context_dispatch
    from /lib/libglib-2.0.so.0
  • #54 g_main_context_check
    from /lib/libglib-2.0.so.0
  • #55 g_main_loop_run
    from /lib/libglib-2.0.so.0
  • #56 gtk_main
    from /usr/lib/libgtk-x11-2.0.so.0
  • #57 main
  • #0 __kernel_vsyscall

Comment 1 Reinout van Schouwen 2006-10-04 10:45:15 UTC
Thanks for the bug report. Unfortunately, that stack trace is not very useful in determining the cause of the crash. Can you get us one with debugging symbols? Please see http://live.gnome.org/GettingTraces for more information on how to do so.
Comment 2 mohan.satish 2006-10-17 13:52:30 UTC
back trace generated from gdb

Thread 1 (Thread -1208461056 (LWP 4323))

  • #0 strncpy
    from /lib/libc.so.6
  • #1 pb_module_init
    from /usr/lib/gtk-2.0/2.10.0/printbackends/libprintbackend-cups.so
  • #2 gtk_printer_set_has_details
    from /usr/lib/libgtk-x11-2.0.so.0
  • #3 gtk_print_run_page_setup_dialog
    from /usr/lib/libgtk-x11-2.0.so.0
  • #4 g_cclosure_marshal_VOID__BOOLEAN
    from /lib/libgobject-2.0.so.0
  • #5 g_closure_invoke
    from /lib/libgobject-2.0.so.0
  • #6 g_signal_override_class_closure
    from /lib/libgobject-2.0.so.0
  • #7 g_signal_emit_valist
    from /lib/libgobject-2.0.so.0
  • #8 g_signal_emit_by_name
    from /lib/libgobject-2.0.so.0
  • #9 pb_module_init
    from /usr/lib/gtk-2.0/2.10.0/printbackends/libprintbackend-cups.so
  • #10 pb_module_init
    from /usr/lib/gtk-2.0/2.10.0/printbackends/libprintbackend-cups.so
  • #11 g_main_context_dispatch
    from /lib/libglib-2.0.so.0
  • #12 g_main_context_check
    from /lib/libglib-2.0.so.0
  • #13 g_main_loop_run
    from /lib/libglib-2.0.so.0
  • #14 gtk_dialog_run
    from /usr/lib/libgtk-x11-2.0.so.0
  • #15 GeckoPrintService::ShowPrintDialog
    at GeckoPrintService.cpp line 179
  • #16 NSGetModule
    from /usr/lib/firefox-1.5.0.7/components/libgklayout.so
  • #17 NSGetModule
    from /usr/lib/firefox-1.5.0.7/components/libgklayout.so
  • #18 EphyBrowser::Print
    at EphyBrowser.cpp line 693
  • #19 impl_print
    at mozilla-embed.cpp line 711
  • #20 ephy_embed_print
    at ephy-embed.c line 913
  • #21 window_cmd_file_print
    at window-commands.c line 112
  • #22 g_cclosure_marshal_VOID__VOID
    from /lib/libgobject-2.0.so.0
  • #23 g_closure_invoke
    from /lib/libgobject-2.0.so.0
  • #24 g_signal_override_class_closure
    from /lib/libgobject-2.0.so.0
  • #25 g_signal_emit_valist
    from /lib/libgobject-2.0.so.0
  • #26 g_signal_emit
    from /lib/libgobject-2.0.so.0
  • #27 gtk_widget_get_action
    from /usr/lib/libgtk-x11-2.0.so.0
  • #28 gtk_action_activate
    from /usr/lib/libgtk-x11-2.0.so.0
  • #29 g_cclosure_marshal_VOID__VOID
    from /lib/libgobject-2.0.so.0
  • #30 g_closure_invoke
    from /lib/libgobject-2.0.so.0
  • #31 g_signal_override_class_closure
    from /lib/libgobject-2.0.so.0
  • #32 g_signal_emit_valist
    from /lib/libgobject-2.0.so.0
  • #33 g_signal_emit
    from /lib/libgobject-2.0.so.0
  • #34 gtk_widget_activate
    from /usr/lib/libgtk-x11-2.0.so.0
  • #35 gtk_menu_shell_activate_item
    from /usr/lib/libgtk-x11-2.0.so.0
  • #36 gtk_menu_shell_append
    from /usr/lib/libgtk-x11-2.0.so.0
  • #37 gtk_menu_reorder_child
    from /usr/lib/libgtk-x11-2.0.so.0
  • #38 gtk_marshal_BOOLEAN__VOID
    from /usr/lib/libgtk-x11-2.0.so.0
  • #39 g_value_set_static_boxed
    from /lib/libgobject-2.0.so.0
  • #40 g_closure_invoke
    from /lib/libgobject-2.0.so.0
  • #41 g_signal_override_class_closure
    from /lib/libgobject-2.0.so.0
  • #42 g_signal_emit_valist
    from /lib/libgobject-2.0.so.0
  • #43 g_signal_emit
    from /lib/libgobject-2.0.so.0
  • #44 gtk_widget_get_default_style
    from /usr/lib/libgtk-x11-2.0.so.0
  • #45 gtk_propagate_event
    from /usr/lib/libgtk-x11-2.0.so.0
  • #46 gtk_main_do_event
    from /usr/lib/libgtk-x11-2.0.so.0
  • #47 gdk_add_client_message_filter
    from /usr/lib/libgdk-x11-2.0.so.0
  • #48 g_main_context_dispatch
    from /lib/libglib-2.0.so.0
  • #49 g_main_context_check
    from /lib/libglib-2.0.so.0
  • #50 g_main_loop_run
    from /lib/libglib-2.0.so.0
  • #51 gtk_main
    from /usr/lib/libgtk-x11-2.0.so.0
  • #52 main
    at ephy-main.c line 705

Comment 3 Christian Persch 2006-10-17 19:17:43 UTC
The trace is still missing debug symbols from gtk+; can you please install the debug symbols for gtk+ and get a better trace?

Still it's clear this is a bug in cups backend of gtk-print, re-assigning.
Comment 4 mohan.satish 2006-10-19 14:58:17 UTC
with gtk debuginfo


Thread 1 (Thread -1208186624 (LWP 8631))

  • #0 strncpy
    from /lib/libc.so.6
  • #1 cups_printer_get_options
    at /usr/include/bits/string3.h line 143
  • #2 _gtk_printer_get_options
    at gtkprinter.c line 744
  • #3 selected_printer_changed
    at gtkprintunixdialog.c line 1264
  • #4 g_cclosure_marshal_VOID__BOOLEAN
    from /lib/libgobject-2.0.so.0
  • #5 g_closure_invoke
    from /lib/libgobject-2.0.so.0
  • #6 g_signal_override_class_closure
    from /lib/libgobject-2.0.so.0
  • #7 g_signal_emit_valist
    from /lib/libgobject-2.0.so.0
  • #8 g_signal_emit_by_name
    from /lib/libgobject-2.0.so.0
  • #9 cups_request_ppd_cb
    at gtkprintbackendcups.c line 1241
  • #10 cups_dispatch_watch_dispatch
    at gtkprintbackendcups.c line 582
  • #11 g_main_context_dispatch
    from /lib/libglib-2.0.so.0
  • #12 g_main_context_check
    from /lib/libglib-2.0.so.0
  • #13 g_main_loop_run
    from /lib/libglib-2.0.so.0
  • #14 IA__gtk_dialog_run
    at gtkdialog.c line 996
  • #15 GeckoPrintService::ShowPrintDialog
    at GeckoPrintService.cpp line 179
  • #16 NSGetModule
    from /usr/lib/firefox-1.5.0.7/components/libgklayout.so
  • #17 NSGetModule
    from /usr/lib/firefox-1.5.0.7/components/libgklayout.so
  • #18 EphyBrowser::Print
    at EphyBrowser.cpp line 693
  • #19 impl_print
    at mozilla-embed.cpp line 711
  • #20 ephy_embed_print
    at ephy-embed.c line 913
  • #21 window_cmd_file_print
    at window-commands.c line 112
  • #22 g_cclosure_marshal_VOID__VOID
  • #23 g_closure_invoke
    from /lib/libgobject-2.0.so.0
  • #24 g_signal_override_class_closure
    from /lib/libgobject-2.0.so.0
  • #25 g_signal_emit_valist
    from /lib/libgobject-2.0.so.0
  • #26 g_signal_emit
    from /lib/libgobject-2.0.so.0
  • #27 _gtk_action_emit_activate
    at gtkaction.c line 835
  • #28 IA__gtk_action_activate
    at gtkaction.c line 862
  • #29 g_cclosure_marshal_VOID__VOID
    from /lib/libgobject-2.0.so.0
  • #30 g_closure_invoke
    from /lib/libgobject-2.0.so.0
  • #31 g_signal_override_class_closure
    from /lib/libgobject-2.0.so.0
  • #32 g_signal_emit_valist
    from /lib/libgobject-2.0.so.0
  • #33 g_signal_emit
    from /lib/libgobject-2.0.so.0
  • #34 IA__gtk_widget_activate
    at gtkwidget.c line 3942
  • #35 IA__gtk_menu_shell_activate_item
    at gtkmenushell.c line 1024
  • #36 gtk_menu_shell_button_release
    at gtkmenushell.c line 630
  • #37 gtk_menu_button_release
    at gtkmenu.c line 2619
  • #38 _gtk_marshal_BOOLEAN__BOXED
    at gtkmarshalers.c line 84
  • #39 g_value_set_static_boxed
    from /lib/libgobject-2.0.so.0
  • #40 g_closure_invoke
    from /lib/libgobject-2.0.so.0
  • #41 g_signal_override_class_closure
    from /lib/libgobject-2.0.so.0
  • #42 g_signal_emit_valist
    from /lib/libgobject-2.0.so.0
  • #43 g_signal_emit
    from /lib/libgobject-2.0.so.0
  • #44 gtk_widget_event_internal
    at gtkwidget.c line 3911
  • #45 IA__gtk_propagate_event
    at gtkmain.c line 2188
  • #46 IA__gtk_main_do_event
    at gtkmain.c line 1422
  • #47 gdk_event_dispatch
    at gdkevents-x11.c line 2320
  • #48 g_main_context_dispatch
    from /lib/libglib-2.0.so.0
  • #49 g_main_context_check
    from /lib/libglib-2.0.so.0
  • #50 g_main_loop_run
    from /lib/libglib-2.0.so.0
  • #51 IA__gtk_main
    at gtkmain.c line 1001
  • #52 main
    at ephy-main.c line 705

Comment 5 mohan.satish 2006-10-19 15:02:41 UTC
how to reproduce the crash

Add a custom page using the file -> print setup option. 

Add custom pages of 8x6, 5x4, 3x8 etc and select one of the pages for print

fire up the print dialog box and application will crash


Comment 6 Carlos Garcia Campos 2006-10-25 16:27:35 UTC
Created attachment 75387 [details] [review]
A patch

I got a similar crash, this patch fixes it.
Comment 7 Reinout van Schouwen 2006-11-09 09:36:15 UTC
*** Bug 372844 has been marked as a duplicate of this bug. ***
Comment 8 Christian Kirbach 2006-11-14 21:31:30 UTC
*** Bug 375292 has been marked as a duplicate of this bug. ***
Comment 9 Matthias Clasen 2006-11-16 13:06:00 UTC
2006-11-15  Matthias Clasen  <mclasen@redhat.com>

	* modules/printbackends/cups/gtkprintbackendcups.c (cups_printer_get_options): 
	Don't pass NULL to strncpy.  (#359537, patch by  Carlos Garcia Campos)
Comment 10 Christian Persch 2006-12-27 17:44:59 UTC
*** Bug 390042 has been marked as a duplicate of this bug. ***
Comment 11 Carlos Garcia Campos 2007-01-07 10:01:10 UTC
*** Bug 393771 has been marked as a duplicate of this bug. ***
Comment 12 Christian Persch 2007-01-12 12:27:50 UTC
*** Bug 395454 has been marked as a duplicate of this bug. ***
Comment 13 Christian Persch 2007-04-16 17:06:05 UTC
*** Bug 429676 has been marked as a duplicate of this bug. ***
Comment 14 Reinout van Schouwen 2007-04-19 13:47:55 UTC
*** Bug 431337 has been marked as a duplicate of this bug. ***
Comment 15 Reinout van Schouwen 2007-04-26 09:15:17 UTC
*** Bug 433539 has been marked as a duplicate of this bug. ***
Comment 16 palfrey 2007-08-03 11:47:54 UTC
*** Bug 462927 has been marked as a duplicate of this bug. ***
Comment 17 Cosimo Cecchi 2007-10-08 12:43:25 UTC
*** Bug 480434 has been marked as a duplicate of this bug. ***