! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Segmentation fault trying to capture active window in Awesome WM
Status:
RESOLVED: FIXED
Product:
Xfce4-screenshooter
Component:
General

Comments

Description Evangelos Foutras 2011-10-28 21:35:21 CEST
Created attachment 3924 
gdb backtrace

I'm conveying a bug that was reported to Arch Linux' bug tracker. The original report is located at https://bugs.archlinux.org/task/25873.

Problem description
-------------------

When using xfce4-screenshooter within the Awesome window manager, to try and capture a screen shot of the active window, it will result in a segmentation fault.

This is happening with the following versions:

 - xfce4-screenshooter 1.8.0
 - awesome 3.4.10

(Both compiled with GCC 4.6.1.)

I've attached a backtrace with debug symbols enabled, obtained from GDB.
Comment 1 Mike Massonnet editbugs 2011-11-18 18:42:15 CET
same issue with fluxbox reported on the debian bts http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=648739#15
Comment 2 Bruno Ramos 2011-11-18 22:28:12 CET
Created attachment 3976 
Fix crash when taking screenshot with fluxbox using active window
Comment 3 Bruno Ramos 2011-11-18 22:29:40 CET
I think the patch I added fixes this problem.

Basically there were some negative values for rec_x and rec_y being used.

I used the same solution that a little bit upper in the file.

I hope it helps.
Comment 4 Evangelos Foutras 2011-11-23 13:34:09 CET
Bruno's patch appears to address the issue. I have applied it to Arch's package and will let you know if I hear any complaints. :p

Thanks for the patch, Bruno.
Comment 5 Jérôme Guelfucci editbugs 2012-01-02 23:23:03 CET
Patch pushed to git master, thanks a lot.

Bug #8080

Reported by:
Evangelos Foutras
Reported on: 2011-10-28
Last modified on: 2012-01-02

People

Assignee:
Jérôme Guelfucci
CC List:
2 users

Version

Version:
unspecified

Attachments

gdb backtrace (2.29 KB, text/x-log)
2011-10-28 21:35 CEST , Evangelos Foutras
no flags
Fix crash when taking screenshot with fluxbox using active window (714 bytes, patch)
2011-11-18 22:28 CET , Bruno Ramos
no flags

Additional information