bug-xnee
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-xnee] cnee causing segfault


From: Elizabeth B.
Subject: [Bug-xnee] cnee causing segfault
Date: Wed, 30 Dec 2009 17:42:50 -0600

Hi,

Using the CVS version of libxnee, cnee kept segfaulting:

address@hidden [17:26]:~/src/xnee/cnee/src$  ./cnee --keyboard --record --str 5
Sleep workaround a strange RECORD/Xtest problem around 2009 (ignore it)
Workaround: Adding your device events as delivered events to get them recorded.
            You can ignore this message
X info:   The X.Org Foundation 1 6 5
RET: 1

[snip]

error-range                   0-0
X info:   The X.Org Foundation 1 6 5
RET: 1
Workaround: Creating context on data display instead of control
            You can ignore this message
X info:   The X.Org Foundation 1 6 5
RET: 1
Workaround: Creating context on data display instead of control
            You can ignore this message
X info:   The X.Org Foundation 1 6 5
RET: 1
Workaround: Disabling context on data display instead of control
            You can ignore this message
Segmentation fault

anyway the offending line of code is:

xnee_record:821       else if (strstr(xd->x_vendor_name, "Sun Microsystems") )

for some reason (because the code is exiting?) this function is called
but there is nothing in xd->x_vendor_name (xd->x_vendor_name == NULL);
maybe its a weird race condition.

Attached is a patch that corrects this issue. Also attached is the
complete output of cnee before the patch.

Best wishes, Elizabeth B.

Attachment: cnee_diff_01.diff
Description: Text document

Attachment: cnee_out_01.txt
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]