gnome-screenshot crashes in remove_one_stack()

Bug #76193 reported by aysiu
268
Affects Status Importance Assigned to Milestone
gnome-utils
Fix Released
Critical
gnome-utils (Ubuntu)
Fix Released
Medium
Ubuntu Desktop Bugs
Nominated for Hardy by ivan

Bug Description

Binary package hint: gnome-utils

If I use gnome-screenshot in Edgy Eft (regardless of whether I use it in Gnome or IceWM), it will successfully take a screenshot and then Bug Buddy will come up with the message below. The screenshot works fine and saves the image. But the message still appears:

Memory status: size: 1671168 vsize: 0 resident: 1671168 share: 0 rss: 548864 rss_rlim: 0
CPU usage: start_time: 1166374206 rtime: 0 utime: 98 stime: 0 cutime:0 cstime: 0 timeout: 98 it_real_value: 0 frequency: 681

Backtrace was generated from '/usr/bin/gnome-panel-screenshot'

(no debugging symbols found)
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".

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

Thank you for your bug. How do you start gnome-screenshot? Could you set /apps/bug-buddy/run_on_crash to false with gconf-editor and let apport get a crash file for that problem? It looks like bug-buddy doesn't work fine with it

Changed in gnome-utils:
assignee: nobody → desktop-bugs
importance: Undecided → Medium
status: Unconfirmed → Needs Info
Revision history for this message
aysiu (ubuntubugzilla-psychocats) wrote :

I start gnome-screenshot with a keyboard shortcut.

I unchecked run_on_crash, and now everything seems to work fine.

If apport got a crash file for it, where would it be? There didn't seem to be a visible crash this time.

So is this really a bug with Bug Buddy and not gnome-screenshot?

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

Crashes from apport are stored to /var/crash. Do you have apport installed? There is no reason for bug-buddy to run if gnome-screenshot doesn't crash so there is probably something making it crash. Does it happy every time when you use bug-buddy?

Revision history for this message
aysiu (ubuntubugzilla-psychocats) wrote :

Yes, I have apport, apport-gtk, and python-apport-utils all installed, but there's nothing in the /var/crash directory.

And, yes, the "crashes" (really it's just Bug Buddy appearing) happen every time I used gnome-screenshot... well, at least until I changed that option in gconf-editor.

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

could you try to run gnome-screenshot with valgrind (https://wiki.ubuntu.com/Valgrind)?

Revision history for this message
aysiu (ubuntubugzilla-psychocats) wrote :

Okay. This is what I get.

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

thank you for your efforts on that. Could you do the same with libgtk2.0-0-dbg installed?

Revision history for this message
aysiu (ubuntubugzilla-psychocats) wrote :

Sure. Here it is.

Revision history for this message
Vicente Ruiz (uve) wrote :

I have a similar error, but I use Feisty.

Revision history for this message
Daniel Holbach (dholbach) wrote :

VRZ: /usr/lib/gtk-2.0/modules/libatk-bridge.so indicates a at-spi bug - does this happen to you with accessibility features turned off as well?

Revision history for this message
Daniel Holbach (dholbach) wrote :

aysiu: do you have accessibility features turned on as well?

Revision history for this message
aysiu (ubuntubugzilla-psychocats) wrote :

No. Should I try it with them turned on?

Revision history for this message
Sergio Uribe (sergiouribe) wrote :

Confirmed

1. open an ppt file with impress
2. see in full screen
3. take a screenshoot with the key PrtScr
4. a bug report is made with this information

Memory status: size: 1671168 vsize: 0 resident: 1671168 share: 0 rss: 126976 rss_rlim: 0
CPU usage: start_time: 1169692836 rtime: 0 utime: 145 stime: 0 cutime:8 cstime: 0 timeout: 137 it_real_value: 0 frequency: 8936514

Backtrace was generated from '/usr/bin/gnome-panel-screenshot'

(no debugging symbols found)
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".

Additional info
I 'm using Ubuntu 6.10 and the crash only affect the screenshoot, neither the system or any program was afected

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

no need to try with accessibility feature no, that was to know if the bug is due to them, if you are not using them that's not that.

The full screen steps don't lead to a crash on my feisty desktop

Could anybody try to get that crash while running gnome-panel-screenshot from gdb or try to get apport catching the crash?

Revision history for this message
Jean-Marie PIVETEAU (jean-marie-piveteau) wrote :

Hello,

I used GDB (apport seems more complicated to use).

I had to run gnome-panel-screenshot 14 times before the application crashes.

You'll find in the attachment the trace of the last (fourteenth!) gnome-panel-screenshot run.

Sorry but I don't know how to install the debug symbols for this application.
However, I did install gnome-panel-dbg, but I just see that this is not used because file /usr/bin/gnome-panel shows that I have the stripped version.
Do you know how to activate the non-stripped copy of gnome-panel ?
I will try to find.

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

Thank you for the work on that. The screenshot utility is shipped with gnome-utils, not gnome-panel. You can install gnome-utils-dbgsym, instructions on how to do that and getting the backtrace are on https://wiki.ubuntu.com/DebuggingProgramCrash. On the gdb prompt after the crash can you type "bt full" to get the backtrace? What version of Ubuntu do you use? Do you run gnome-panel-screenshot with any option?

Revision history for this message
Jean-Marie PIVETEAU (jean-marie-piveteau) wrote :

Here is the result (crash occurred after the 4th snapshot).

Revision history for this message
Jean-Marie PIVETEAU (jean-marie-piveteau) wrote :

My Ubuntu version is Edgy 6.10.

uname -a:
Linux ubuntu 2.6.17-10-386 #2 Tue Dec 5 22:26:18 UTC 2006 i686 GNU/Linux

WIthin gdb, I ran gnome-panel-snapshot without any option.

Revision history for this message
Jean-Marie PIVETEAU (jean-marie-piveteau) wrote :

Probably I would need also to install additional dbgsym packages, but I am faced to 2 depencies problem I don't really know how to solve:

Ouputs from synaptic pop window after selecting for installation:

libgnomevfs2-0-dbgsym:
  Dépend : libgnomevfs2-0 (=2.16.1-0ubuntu2) mais 2.16.1-0ubuntu4 doit être installé

libc6-i686-dbgsym:
  Dépend : libc6-i686 (=2.4-1ubuntu12) mais 2.4-1ubuntu12.3 doit être installé

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

That's because there is no -dbgsym packages for edgy-updates, for those you can install libgnomevfs2-0-dbg and libc6-dbg for those. The backtrace is somewhat similar to the one from bug #76301, it would be interesting to know if you get the crasher with the edgy-proposed version of libgnomevfs2-0 (it'll be available to edgy-updates when some ftpmaster accepts the upload)

Revision history for this message
Jean-Marie PIVETEAU (jean-marie-piveteau) wrote :

as additional information (may be it would be useful): during my 2 previous gnome-panel-screenshot sessions in gdb, in order to attempt to reproduce the crash, I switched my window from the gdb terminal to other graphics window i.e. evolution. I mean:
1 - I launched gnome-panel-screenshot (run),
2 - ALT-TAB on evolution (for example)
3 - gnome-panel-screenshot appears above the evolution window
4 - I clicked "Save"
5 - then, either the crash occurs or not (but capture file is created).
6 - ALT-TAB to the gdb session in terminal.
7 - goto 1 above

This time, I wanted to see what appened if I did not ALT-TAB to another window:
Therefore in gdb I ran 20 times gnome-panel-screenshot without ALT-TABing to another window: I could not crash gnome-panel-screenshot: may be if I continued more tries it would have crashed, I don't know.

Then I did 7 additional runs with ALT-TABing as described above: gnome-panel-screenshot crashed on the 7th.

Anyway, here is a more complete trace with I more debugging symbols.
Before doing the runs, I installed
- libc6-dbg
- libglib2.0-0-dbgsym
- libgnomevfs2-0-dbg

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

Thank you for the work on that. Could you try with the gnome-vfs update which has just been accepted to edgy-updates and note if that fixes the problem?

Revision history for this message
Jean-Marie PIVETEAU (jean-marie-piveteau) wrote : Re: [Bug 76193] Re: gnome-screenshot in Edgy crashes... but still works

I cannot test right now as I am outside of my home since one week.
I will do it when I come back. Maybe someone else can test?

> Message du 11/02/07 20:45
> De : "Sebastien Bacher"
> A : <email address hidden>
> Copie à :
> Objet : [Bug 76193] Re: gnome-screenshot in Edgy crashes... but still works
>
> Thank you for the work on that. Could you try with the gnome-vfs update
> which has just been accepted to edgy-updates and note if that fixes the
> problem?
>
> --
> gnome-screenshot in Edgy crashes... but still works
> https://launchpad.net/bugs/76193
>
>

Revision history for this message
Jean-Marie PIVETEAU (jean-marie-piveteau) wrote : Re: gnome-screenshot in Edgy crashes... but still works

I have updated my system.

version of GNOME VFS is now 2.16.1-0ubuntu7.

I ran gnome-screenshot 20 times in gdb (with ALT-TABing, as decribed in my message dated 2007-02-07 20:09:38) and the problem still exists: sreenshot hangs up after the 20th run.

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

The crash looks like http://bugzilla.gnome.org/show_bug.cgi?id=383309 upstream. What do you mean with the alt-tab? If you alt-tab to evolution you get evolution taking to first plan no? Or do you use a delayed action?

Revision history for this message
Jean-Marie PIVETEAU (jean-marie-piveteau) wrote :

that's right. I press ALT-TAB to get evolution to the first plan, but I press it several times rapidly before screenshot appears, so that I get evolution on the first plan, then the gdb terminal, then evolution, then the terminal, etc ... may be 5 or 6 cycles before screenshot window appears.

Changed in gnome-utils:
status: Needs Info → Confirmed
Revision history for this message
Sebastien Bacher (seb128) wrote :
Changed in gnome-utils:
status: Unknown → Unconfirmed
Changed in gnome-utils:
status: Confirmed → Triaged
Revision history for this message
Pedro Villavicencio (pedro) wrote :

Is someone still able to reproduce this with Jaunty or Intrepid?

Changed in gnome-utils:
status: Triaged → Incomplete
Revision history for this message
JuryMancinelli (jury-mancinelli) wrote : Re: [Bug 76193] Re: gnome-screenshot crashes in remove_one_stack()

no.
sorry.

2009/2/18 Pedro Villavicencio <email address hidden>

> Is someone still able to reproduce this with Jaunty or Intrepid?
>
> ** Changed in: gnome-utils (Ubuntu)
> Status: Triaged => Incomplete
>
> --
> gnome-screenshot crashes in remove_one_stack()
> https://bugs.launchpad.net/bugs/76193
> You received this bug notification because you are a direct subscriber
> of a duplicate bug.
>

--
Jury Mancinelli
GMAIL

Revision history for this message
paulcuz (paul-cuzner) wrote :

On Thursday 19 February 2009 02:53:39 Pedro Villavicencio wrote:
> Is someone still able to reproduce this with Jaunty or Intrepid?
>
> ** Changed in: gnome-utils (Ubuntu)
> Status: Triaged => Incomplete

Hi,

I'm running intrepid now and can't reproduce this bug. All works fine.

Thanks,

PaulC

Revision history for this message
Pedro Villavicencio (pedro) wrote :

Thanks you, marking this as fixed then, will comment on the upstream report, thanks both.

Changed in gnome-utils:
status: Incomplete → Fix Released
Changed in gnome-utils:
status: New → Fix Released
Changed in gnome-utils:
importance: Unknown → Critical
To post a comment you must log in.