! 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 !
Segfault on left-click
Status:
RESOLVED: FIXED
Product:
Xfce4-volstatus-icon
Component:
General

Comments

Description Stefan Ott 2007-11-02 18:00:23 CET
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.8) Gecko/20071029 Firefox/2.0.0.8
Build Identifier: 

When I left-click the icon, the program segfaults. I traced it down to the for-loop in xfce-volstatus-dialog.c, line 322. If I change the code so that the looped part is only executed once, it seems to work just fine. printf-ing the loop showed that the problematic code seems to be l->next.

I'm running gentoo linux with xfce4-volstatus-icon 0.1.0 (unpatched).

Reproducible: Always

Steps to Reproduce:
1. Mount USB stick
2. Start xfce4-volstatus-icon
3. Left-click the icon

Actual Results:  
A segfault

Expected Results:  
No segfault :)

Last few lines of strace. If you need more, let me know.

stat64("/usr/share/icons/hicolor/index.theme", {st_mode=S_IFREG|0644, st_size=22255, ...}) = 0
gettimeofday({1194026137, 331094}, NULL) = 0
brk(0x80ff000)                          = 0x80ff000
brk(0x80fb000)                          = 0x80fb000
gettimeofday({1194026137, 331988}, NULL) = 0
writev(4, [{"l\1\0\1w\0\0\0\32\0\0\0\230\0\0\0\1\1o\0\34\0\0\0/org/fre"..., 168}, {"\24\0\0\0block.storage_device\0\0\0\0V\0\0\0"..., 119}], 2) = 287
gettimeofday({1194026137, 332216}, NULL) = 0
poll([{fd=4, events=POLLIN, revents=POLLIN}], 1, 25000) = 1
read(4, "l\2\1\1\227\0\0\0\361\4\0\0-\0\0\0\6\1s\0\5\0\0\0:1.61\0\0\0"..., 2048) = 215
read(4, 0x80ca000, 2048)                = -1 EAGAIN (Resource temporarily unavailable)
gettimeofday({1194026137, 333234}, NULL) = 0
gettimeofday({1194026137, 333512}, NULL) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
Comment 1 Brian J. Tarricone (not reading bugmail) 2007-11-07 04:59:32 CET
Please report this to the author directly.  There isn't a component for the mpd plugin here.
Comment 2 Brian J. Tarricone (not reading bugmail) 2007-11-07 05:01:31 CET
Er, whoops, wrong bug.
Comment 3 Brian J. Tarricone (not reading bugmail) 2007-11-07 05:07:40 CET
Should be fixed as of svn rev 3558.

Bug #3646

Reported by:
Stefan Ott
Reported on: 2007-11-02
Last modified on: 2009-07-14

People

Assignee:
Brian J. Tarricone (not reading bugmail)
CC List:
0 users

Version

Version:
unspecified

Attachments

Additional information