! 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 !
Xfdesktop segfaults on middle-click
Status:
RESOLVED: INVALID
Product:
Xfdesktop
Component:
General

Comments

Description haarp 2015-03-23 08:40:25 CET
This is with 4.12.1:

When the window-list-on-middle-click option is enabled, Xfdesktop receives a segmentation fault when a middle-click is attempted.
Comment 1 Thaddaeus Tintenfisch editbugs 2015-03-23 11:36:26 CET
We need the backtrace of the crash. Please follow the instructions of the following link:

http://docs.xfce.org/contribute/bugs/start#backtraces
Comment 2 haarp 2015-03-23 14:52:15 CET
Created attachment 6117 
backtrace

Ok, it appears to be related to the compiler used. icc is problematic, gcc works. Feel free to close this as invalid if icc is not supported.
Comment 3 Peter de Ridder editbugs 2015-03-24 08:47:49 CET
Unless this is truely a bug in xfdesktop, we can't do much about it.
If this is a bug, it could be only exposed by on compiler and not the other.
How ever this part of the code looks straight forward.

It gets an icon from wnck_window_get_mini_icon possebly scales it gdk_pixbuf_scale_simple or copies it gdk_pixbuf_copy and then calls gdk_pixbuf_saturate_and_pixelate where it crashes.

In case it has anything to do with the application it would be that there is a NULL pointer in there. If libwnck and gdk-pixbuf are compiled with the default checks it should tell you in the console output and not crash.

If it is a compiler problem it could be either a bug in the compiler giving a wrong argument to the function. or the fact that you are mixing compilers. The application binary interface (ABI) of C code is specified but there are multiple (depening on the platform and such) if gdk-pixbuf is compiled with gcc and xfdesktop with icc, there is a slight posibility that they use a different calling ABI.

If we want to look deeper into this, I suggest writing a simple application that does just menu_item_from_wnck_window and see if that causes the crash as well.
Comment 4 haarp 2015-03-24 16:02:53 CET
It is possible that this is a compiler bug. However, I've been using icc for ages and never had trouble with middle-clicking before.

I'm not really interested in debugging compilers however. Since gcc works, I'll be using that from now on. But thanks for having a look at it!

Bug #11754

Reported by:
haarp
Reported on: 2015-03-23
Last modified on: 2015-03-24

People

Assignee:
Eric Koegel
CC List:
2 users

Version

Version:
4.12.0

Attachments

backtrace (4.05 KB, application/octet-stream)
2015-03-23 14:52 CET , haarp
no flags

Additional information