segmentation fault in gnome-screenshot

Bug #22321 reported by Francesco Accattapà
50
This bug affects 3 people
Affects Status Importance Assigned to Milestone
gnome-utils
Expired
Critical
gnome-utils (Ubuntu)
Invalid
Low
Ubuntu Desktop Bugs

Bug Description

gnome-screenshot crashes with a segmentation fault. I got this backtrace using gdb:

------------------------------------------------------
[New Thread 805515440 (LWP 8969)]
Xlib: extension "SHAPE" missing on display ":0.0".

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 805515440 (LWP 8969)]
0x10007574 in screenshot_get_pixbuf ()
(gdb) bt
#0 0x10007574 in screenshot_get_pixbuf ()
#1 0x100052f4 in _start ()
#2 0x100052f4 in _start ()
#3 0x100052f4 in _start ()
#4 0x100052f4 in _start ()
#5 0x100052f4 in _start ()
Previous frame inner to this frame (corrupt stack?)
(gdb) thread apply all bt

Thread 1 (Thread 805515440 (LWP 8969)):
#0 0x10007574 in screenshot_get_pixbuf ()
#1 0x100052f4 in _start ()
#2 0x100052f4 in _start ()
#3 0x100052f4 in _start ()
#4 0x100052f4 in _start ()
#5 0x100052f4 in _start ()
------------------------------------------------------

Please let me know if I could provide more information.

http://bugzilla.gnome.org/show_bug.cgi?id=317116: http://bugzilla.gnome.org/show_bug.cgi?id=317116

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks for your bug. What version of Ubuntu do you use? Any reason you don't use
SHAPE for xorg?

Revision history for this message
Francesco Accattapà (callipeo) wrote :

(In reply to comment #1)
> Thanks for your bug. What version of Ubuntu do you use?

Ups, I should have mentioned it before: I'm using a breezy system with
gnome-panel 2.12.0-0ubuntu2.

> Any reason you don't use SHAPE for xorg?

I do not even know what is the SHAPE extension. Should I attach my xorg.conf file?

Revision history for this message
Sebastien Bacher (seb128) wrote :

(In reply to comment #2)

> I do not even know what is the SHAPE extension. Should I attach my xorg.conf file?

yes please, what videocard do you have?

Revision history for this message
Francesco Accattapà (callipeo) wrote :

Created an attachment (id=4019)
xorg.conf file

The video card is an ATI Radeon Mobility 9200 M9+ on an iBook G4.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Daniel, any reason why shape is not listed by the config?

Revision history for this message
Francesco Accattapà (callipeo) wrote :

Actually, if I manually add the "shape" module to xorg.conf the problem disappears.

Revision history for this message
Sebastien Bacher (seb128) wrote :

I've forwarded the issue upstream: http://bugzilla.gnome.org/show_bug.cgi?id=317116

Changed in gnome-utils:
status: Unconfirmed → Confirmed
Changed in gnome-utils:
status: Unconfirmed → Confirmed
Revision history for this message
Áron Sisak (asisak) wrote :

Thanks you for your reply!

However, SHAPE extension is initialized for me:
aron@lemon:~$ grep -C 5 SHAPE /var/log/Xorg.0.log
        compiled for 7.1.1, module version = 1.0.0
        Module class: X.Org Server Extension
        ABI class: X.Org Server Extension, version 0.3
(II) Loading extension SHAPE
(II) Loading extension MIT-SUNDRY-NONSTANDARD
(II) Loading extension BIG-REQUESTS
(II) Loading extension SYNC

Sorry for questioning you, but are you really sure #81817 is a duplicate of this?

Revision history for this message
Sebastien Bacher (seb128) wrote :

The backtrace are pretty similar and upstream marked http://bugzilla.gnome.org/show_bug.cgi?id=383623 which marks your bug duplicate from that one

Changed in gnome-utils:
assignee: seb128 → desktop-bugs
Revision history for this message
Sebastien Bacher (seb128) wrote :

might not be a duplicate, I've undupped the upstream bugs, doing the same with the ubuntu tasks for them

Changed in gnome-utils:
status: Confirmed → Triaged
Revision history for this message
Werner Kuballa (wkuballa) wrote :

I get the same error in Ubuntu 8.04.1.

I only get the error when trying to take a screenshot of an xterm window. Screenshots of the entire screen or a screenshot of a firefox window works fine.

gdb output is:

(no debugging symbols found)
(no debugging symbols found)
[New Thread 0xb6d3f940 (LWP 7564)]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb6d3f940 (LWP 7564)]
0x0805139d in screenshot_get_pixbuf ()
(gdb) bt
#0 0x0805139d in screenshot_get_pixbuf ()
#1 0x0804f0d2 in _start ()

Regards,
Werner

Revision history for this message
ski (skibrianski) wrote :

Bump/me too. I have the exact symptoms Werner describes (only screenshots of xterm cause problems) on 8.10/amd64.

Revision history for this message
ski (skibrianski) wrote :

PS - The problem werner and I are reporting seems to have nothing to do with the old SHAPE-related bug.

[...]
(no debugging symbols found)
(no debugging symbols found)
[New Thread 0x7f244a59b770 (LWP 20205)]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[New Thread 0x41178950 (LWP 20214)]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7f244a59b770 (LWP 20205)]
0x000000000040a560 in screenshot_get_pixbuf ()
(gdb) bt
#0 0x000000000040a560 in screenshot_get_pixbuf ()
#1 0x0000000000408609 in ?? ()
#2 0x00007f244688c19c in ?? () from /usr/lib/libgio-2.0.so.0
#3 0x00007f24455f0d3b in g_main_context_dispatch ()
   from /usr/lib/libglib-2.0.so.0
#4 0x00007f24455f450d in ?? () from /usr/lib/libglib-2.0.so.0
#5 0x00007f24455f4a3d in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#6 0x00007f24479977a7 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#7 0x0000000000407a1d in main ()

Changed in gnome-utils:
status: Confirmed → Incomplete
Changed in gnome-utils:
status: Incomplete → Invalid
Revision history for this message
Sebastien Bacher (seb128) wrote :

could you try if that's an issue on karmic too?

Changed in gnome-utils (Ubuntu):
status: Triaged → Incomplete
Revision history for this message
Pedro Villavicencio (pedro) wrote :

We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to New. Thanks again!.

Changed in gnome-utils (Ubuntu):
status: Incomplete → Invalid
Changed in gnome-utils:
importance: Unknown → Critical
status: Invalid → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.