Bug 245929 - Segfault in job option handling code
Segfault in job option handling code
Status: CLOSED WONTFIX
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: system-config-printer (Show other bugs)
5.0
All Linux
low Severity low
: ---
: ---
Assigned To: Tim Waugh
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2007-06-27 10:13 EDT by Tim Waugh
Modified: 2007-11-30 17:07 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-11-30 15:42:50 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
system-config-printer-job-options.patch (5.68 KB, patch)
2007-06-27 10:15 EDT, Tim Waugh
no flags Details | Diff

  None (edit)
Description Tim Waugh 2007-06-27 10:13:55 EDT
Description of problem:
When modifying a printer's default job options using system-config-printer,
occasionally the program will crash.  It doesn't seem to be repeatable by a
particular sequence of events, but does happen often when several options are
repeatedly added and removed.

NB: this is different from bug #230118, and occurs with fixed CUPS packages.

Version-Release number of selected component (if applicable):
system-config-printer-0.7.32.5-1.el5
cups-1.2.4-11.9.el5

How reproducible:
Often.

Steps to Reproduce:
1.Add three job options and click apply.
2.Remove the options and click apply.
3.Play around with adding and removing options, occasionally applying.
  
Actual results:
After several minutes the application crashes.

Expected results:
No crash.

Additional info:
Example backtrace (but each is different):

#0  0x4d36e627 in _int_realloc () from /lib/libc.so.6
#1  0x4d370196 in realloc_check () from /lib/libc.so.6
#2  0x4d37076c in realloc () from /lib/libc.so.6
#3  0x4d4e064b in g_realloc () from /lib/libglib-2.0.so.0
#4  0x4d55d681 in g_object_weak_ref () from /lib/libgobject-2.0.so.0
#5  0x4d55d77d in g_object_add_weak_pointer () from /lib/libgobject-2.0.so.0
#6  0x4e1afa0b in gdk_x11_gc_get_xdisplay () from /usr/lib/libgdk-x11-2.0.so.0
#7  0x4e1afb85 in gdk_x11_gc_get_xdisplay () from /usr/lib/libgdk-x11-2.0.so.0
#8  0x4e19746f in gdk_window_is_viewable () from /usr/lib/libgdk-x11-2.0.so.0
#9  0x4e1977a7 in gdk_window_process_all_updates ()
   from /usr/lib/libgdk-x11-2.0.so.0
#10 0x4e3dc442 in gtk_container_check_resize ()
   from /usr/lib/libgtk-x11-2.0.so.0
#11 0x4d4d75e1 in g_source_is_destroyed () from /lib/libglib-2.0.so.0
#12 0x4d4d9342 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#13 0x4d4dc31f in g_main_context_check () from /lib/libglib-2.0.so.0
#14 0x4d4dc6c9 in g_main_loop_run () from /lib/libglib-2.0.so.0
#15 0x4e46cb44 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#16 0x00557500 in init_gtk ()
   from /usr/lib/python2.4/site-packages/gtk-2.0/gtk/_gtk.so
#17 0x4e03473a in PyEval_EvalFrame () from /usr/lib/libpython2.4.so.1.0
#18 0x4e03452f in PyEval_EvalFrame () from /usr/lib/libpython2.4.so.1.0
#19 0x4e035c68 in PyEval_EvalCodeEx () from /usr/lib/libpython2.4.so.1.0
#20 0x4e035cf3 in PyEval_EvalCode () from /usr/lib/libpython2.4.so.1.0
#21 0x4e052998 in Py_CompileString () from /usr/lib/libpython2.4.so.1.0
#22 0x4e0540a8 in PyRun_SimpleFileExFlags () from /usr/lib/libpython2.4.so.1.0
#23 0x4e05478a in PyRun_AnyFileExFlags () from /usr/lib/libpython2.4.so.1.0
#24 0x4e05b185 in Py_Main () from /usr/lib/libpython2.4.so.1.0
#25 0x08048582 in main ()
Comment 1 Tim Waugh 2007-06-27 10:15:58 EDT
Created attachment 158015 [details]
system-config-printer-job-options.patch

I tried this back-ported rework of the other job options, but it had no effect.
Comment 4 RHEL Product and Program Management 2007-11-30 15:42:50 EST
Development Management has reviewed and declined this request.  You may appeal
this decision by reopening this request. 

Note You need to log in before you can comment on or make changes to this bug.