gpaint crashed when user changes font
Bug #262889 reported by
Kevin Huang
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gpaint (Debian) |
Fix Released
|
Unknown
|
|||
gpaint (Ubuntu) |
Fix Released
|
Medium
|
Andrew Starr-Bochicchio | ||
Hardy |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: gpaint
scenario1:
1. click font options (original is Sans/12)
2. do nothing, just click "OK". --> crash
scenario2:
1. click font options (original is Sans/12)
2. select any font, font size, then click "OK". --> crash
Changed in gpaint: | |
status: | Unknown → New |
Changed in gpaint: | |
status: | New → Fix Committed |
Changed in gpaint: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
gdb trace log:
Starting program: /tmp/gpaint- 0.3.3/src/ gpaint- 2
[Thread debugging using libthread_db enabled]
[New Thread 0xb7263910 (LWP 14858)]
Program received signal SIGSEGV, Segmentation fault. tool->canvas- >drawing_ area); marshal_ VOID__VOID () libgobject- 2.0.so. 0 libgobject- 2.0.so. 0 libgobject- 2.0.so. 0
[Switching to Thread 0xb7263910 (LWP 14858)]
0x08062516 in text_attribute (tool=0x93d7cc0, attrib=GpaintFont,
data=0x9481b68) at text.c:156
156 GtkWidget *widget = GTK_WIDGET(
(gdb) bt
#0 0x08062516 in text_attribute (tool=0x93d7cc0, attrib=GpaintFont,
data=0x9481b68) at text.c:156
#1 0xb7585074 in g_cclosure_
from /usr/lib/
#2 0xb7577923 in g_closure_invoke () from /usr/lib/
#3 0xb758ae9d in ?? () from /usr/lib/
#4 0x091d61e8 in ?? ()
#5 0x00000000 in ?? ()
(gdb) print tool->canvas
$1 = (gpaint_canvas *) 0x0
(gdb)
The tool->canvas is only set on tool_palette.c on_tool_select() at line 400: set_tool( canvas_ lookup( GTK_WIDGET( tb->widget) ), tb->tool);
canvas_
Which means the users have to click the text-tool button at least once to set the tool->canvas to avoid the crash.
Please report the bug to upstream. Thanks.