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.
same issue with fluxbox reported on the debian bts http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=648739#15
Created attachment 3976 Fix crash when taking screenshot with fluxbox using active window
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.
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.
Patch pushed to git master, thanks a lot.