Bug#683366: xserver-xorg-input-joystick: Xorg segfaults with two different gamepads

2012-08-05 Thread Andrei POPESCU
On Vi, 03 aug 12, 09:52:53, Andrei POPESCU wrote:
 On Ma, 31 iul 12, 19:45:34, Julien Cristau wrote:
   
   Don't hesitate to ask for more info if necessary.
   
  See
  http://wiki.debian.org/XStrikeForce/XserverDebugging#Obtaining_a_backtrace_with_gdb
 
 My first attempts produced only a small backtrace (attached) which seems 
 to be indication of missing some -dbg packages (I already have -core-dbg 
 installed).
 
 Since I can't find a -joystick-dbg package I'm assuming I have to 
 recompile -joystick myself. I'll look into it as soon as possible, but 
 definitely not this weekend.

Attached a slightly bigger backtrace obtained with -joystick recompiled 
with debugging symbols on. Just hope I got it right ;)

Kind regards,
Andrei
-- 
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic
Continuing.

Program received signal SIGSEGV, Segmentation fault.
0xb75f58bb in positionSprite (dev=dev@entry=0xb8e5e6a0, mode=optimized out, 
mask=mask@entry=0xbfcf4194, devx=devx@entry=0xbfcf4178, devy=0xbfcf4180, 
screenx=screenx@entry=0xbfcf4168, screeny=screeny@entry=0xbfcf4170)
at ../../dix/getevents.c:959
959 ../../dix/getevents.c: No such file or directory.
#0  0xb75f58bb in positionSprite (dev=dev@entry=0xb8e5e6a0, mode=optimized 
out, mask=mask@entry=0xbfcf4194, devx=devx@entry=0xbfcf4178, devy=0xbfcf4180, 
screenx=screenx@entry=0xbfcf4168, screeny=screeny@entry=0xbfcf4170)
at ../../dix/getevents.c:959
x = optimized out
scr = 0x0
tmpx = optimized out
tmpy = 0
#1  0xb75f5c7e in positionSprite (screeny=0xbfcf4170, screenx=0xbfcf4168, 
devy=0xbfcf4180, devx=0xbfcf4178, mask=0xbfcf4194, mode=0, dev=0xb8e5e6a0) at 
../../dix/getevents.c:1376
scr = 0xb8b86fb8
#2  fill_pointer_events (events=0xb7105948, events@entry=0xb7105008, 
pDev=pDev@entry=0xb8e5e6a0, type=6, buttons=buttons@entry=0, 
ms=ms@entry=2713919, flags=flags@entry=10, mask_in=mask_in@entry=0xbfcf437c)
at ../../dix/getevents.c:1376
num_events = 2
event = optimized out
raw = 0xb7105008
screenx = -1
screeny = 0
devx = -1
devy = 0
mask = {last_bit = 1 '\001', mask = \003\000\000\000, valuators = 
{-1, 0 repeats 35 times}}
scr = 0xb8b86fb8
#3  0xb75f70bf in GetPointerEvents (events=0xb7105008, 
pDev=pDev@entry=0xb8e5e6a0, type=optimized out, type@entry=6, 
buttons=buttons@entry=0, flags=flags@entry=10, mask_in=mask_in@entry=0xbfcf46a4)
at ../../dix/getevents.c:1612
ms = 2713919
num_events = 0
nev_tmp = optimized out
mask = {last_bit = 1 '\001', mask = \003\000\000\000, valuators = 
{-1, 0 repeats 35 times}}
scroll = {last_bit = 0 '\000', mask = \000\000\000\250\376, valuators 
= {-1.0952680168893801e-42, 2.1219957909652723e-314, -1.002703632050877e-42, 0, 
-nan(0xffea8bfcf47a8), -0.24437522888183594, 
2.1219956210066901e-314, 0, 6.3659873738839482e-314, 
-1.0992529593973038e-42, 1.6975966338591623e-313, -1.4231970371231681e-41, 0, 
5.448208412925659e-312, 3.1829936863985019e-313, -0.24431427910753356, 
-4.4714250262219951e-42, -9.5282490058296001e-58, 
1.9297758281720283e-314, -0.2443180938042907, -4.4714250262220155e-42, 
-9.5252468871714366e-58, 1.5198327991583139e-314, -4.475850611411165e-42, 0, 
-4.6971196094840292e-42, 1.519830536337656e-314, 
-4.4758506114111854e-42, -0.24431427910518244, 2.758594528254854e-313, 
-1.8287669749404062e-35, -4.7964172374647488e-42, -1.8360871656025705e-41, 
-4.8447012069131499e-43, -1.3181118607255953e-34, 
-9.5282482990932858e-58}}
i = optimized out
realtype = 6
#4  0xb75f75fc in QueuePointerEvents (device=device@entry=0xb8e5e6a0, 
type=type@entry=6, buttons=buttons@entry=0, flags=10, 
mask=mask@entry=0xbfcf46a4) at ../../dix/getevents.c:1260
nevents = optimized out
#5  0xb762f4bb in xf86PostMotionEventM (mask=0xbfcf46a4, is_absolute=0, 
device=0xb8e5e6a0) at ../../../../hw/xfree86/common/xf86Xinput.c:1161
flags = optimized out
#6  xf86PostMotionEventM (device=0xb8e5e6a0, is_absolute=0, mask=0xbfcf46a4) at 
../../../../hw/xfree86/common/xf86Xinput.c:1146
No locals.
#7  0xb762f70a in xf86PostMotionEvent (device=device@entry=0xb8e5e6a0, 
is_absolute=is_absolute@entry=0, first_valuator=first_valuator@entry=0, 
num_valuators=num_valuators@entry=2)
at ../../../../hw/xfree86/common/xf86Xinput.c:1045
var = optimized out
i = optimized out
mask = {last_bit = 1 '\001', mask = \003\000\000\000, valuators = 
{-1, 0 repeats 35 times}}
__FUNCTION__ = xf86PostMotionEvent
#8  0xb418119f in jstkAxisTimer (timer=0xb8e003c0, atime=2713919, 
arg=0xb8e5e6a0) at ../../src/jstk_axis.c:210
device = 0xb8e5e6a0
pInfo = optimized out
priv = 0xb8e5a378
sigstate = 1
i = optimized out
nexttimer = 15
movex = -1
movey = 0
movezx 

Bug#683366: xserver-xorg-input-joystick: Xorg segfaults with two different gamepads

2012-08-03 Thread Andrei POPESCU
On Ma, 31 iul 12, 19:45:34, Julien Cristau wrote:
  
  Don't hesitate to ask for more info if necessary.
  
 See
 http://wiki.debian.org/XStrikeForce/XserverDebugging#Obtaining_a_backtrace_with_gdb

My first attempts produced only a small backtrace (attached) which seems 
to be indication of missing some -dbg packages (I already have -core-dbg 
installed).

Since I can't find a -joystick-dbg package I'm assuming I have to 
recompile -joystick myself. I'll look into it as soon as possible, but 
definitely not this weekend.

Kind regards,
Andrei
-- 
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic
Continuing.

Program received signal SIGSEGV, Segmentation fault.
0xb760dd1d in fill_pointer_events (events=0xb711d948, events@entry=0xb711d008, 
pDev=pDev@entry=0xb90661a8, type=4, buttons=buttons@entry=4, 
ms=ms@entry=400932, flags=flags@entry=0, mask_in=mask_in@entry=0xbfd2543c)
at ../../dix/getevents.c:1416
1416../../dix/getevents.c: No such file or directory.
#0  0xb760dd1d in fill_pointer_events (events=0xb711d948, 
events@entry=0xb711d008, pDev=pDev@entry=0xb90661a8, type=4, 
buttons=buttons@entry=4, ms=ms@entry=400932, flags=flags@entry=0, 
mask_in=mask_in@entry=0xbfd2543c)
at ../../dix/getevents.c:1416
num_events = 2
event = 0xb711d948
raw = 0xb711d008
screenx = 0
screeny = 0
devx = 0
devy = 0
mask = {last_bit = -1 '\377', mask = \000\000\000\000, valuators = {0 
repeats 36 times}}
scr = 0x0
#1  0xb760f0bf in GetPointerEvents (events=0xb711d008, 
pDev=pDev@entry=0xb90661a8, type=optimized out, type@entry=4, 
buttons=buttons@entry=4, flags=flags@entry=0, mask_in=mask_in@entry=0xbfd25754)
at ../../dix/getevents.c:1612
ms = 400932
num_events = 0
nev_tmp = optimized out
mask = {last_bit = -1 '\377', mask = \000\000\000\000, valuators = {0 
repeats 36 times}}
scroll = {last_bit = 0 '\000', mask = \000\000\000\000, valuators = 
{0 repeats 15 times, -0.28652589708771159, -4.7404743315003783e-42, 
-0.28652971178396025, -4.7404743315003885e-42, -1.1241162361437768e-53, 0, 
-4.9661689146343941e-42, 1.5198813677875627e-314, 
-4.9661709654107757e-42, 1.5198791049669048e-314, -4.7448999166895584e-42, 0, 
-5.0654640480049104e-42, -0.28652589708300935, -5.0654640480049104e-42, 
-1.9437068877139197e-41, -5.181012838561e-43, 
-1.436682506511008e-34, 3.3950757136910782e-314, -5.3881454744661428e-34, 
2.1219957909652723e-314}}
i = optimized out
realtype = 4
#2  0xb760f5fc in QueuePointerEvents (device=device@entry=0xb90661a8, 
type=type@entry=4, buttons=buttons@entry=4, flags=flags@entry=0, 
mask=mask@entry=0xbfd25754) at ../../dix/getevents.c:1260
nevents = optimized out
#3  0xb7647a3f in xf86PostButtonEventM (device=device@entry=0xb90661a8, 
is_absolute=is_absolute@entry=0, button=button@entry=4, 
is_down=is_down@entry=1, mask=mask@entry=0xbfd25754)
at ../../../../hw/xfree86/common/xf86Xinput.c:1267
flags = 0
#4  0xb7647c20 in xf86PostButtonEvent (device=0xb90661a8, is_absolute=0, 
button=4, is_down=1, first_valuator=0, num_valuators=0) at 
../../../../hw/xfree86/common/xf86Xinput.c:1225
var = optimized out
mask = {last_bit = -1 '\377', mask = \000\000\000\000, valuators = {0 
repeats 36 times}}
i = optimized out
__FUNCTION__ = xf86PostButtonEvent
#5  0xb4f15d28 in ?? () from /usr/lib/xorg/modules/input/joystick_drv.so
No symbol table info available.
#6  0xb7736482 in DoTimer (timer=0xb910ceb8, now=now@entry=400931, 
prev=prev@entry=0xb77b0410) at ../../os/WaitFor.c:406
newTime = optimized out
#7  0xb7736a91 in WaitForSomething 
(pClientsReady=pClientsReady@entry=0xb8fb9d18) at ../../os/WaitFor.c:262
expired = optimized out
i = optimized out
waittime = {tv_sec = 0, tv_usec = 0}
wt = 0xbfd259a8
timeout = optimized out
clientsReadable = {fds_bits = {0 repeats 32 times}}
clientsWritable = {fds_bits = {-1216680632, 0, -1076733328, 
-1218458515, -1216680616, 0, -1190593628, -1216716812, -1076733300, 2, 
-1192195920, -1217788034, -1216680632, -1076733328, -1192204096, -1218458515, 
-1190593784, 594, 1073741825, -1192193816, 0, -1076733272, 1, 
-1076733112, -1221527973, -1216716812, 594, -1216716812, -1076733112, 1, 
-1190888512, -1217130686}}
selecterr = 0
nready = 0
devicesReadable = {fds_bits = {1073741824, 0 repeats 31 times}}
now = 400931
someReady = optimized out
#8  0xb75f80ee in Dispatch () at ../../dix/dispatch.c:357
clientReady = 0xb8fb9d18
result = optimized out
client = optimized out
nready = optimized out
icheck = 0xb77b2118
start_tick = optimized out
#9  0xb75e5e95 in main (argc=6, argv=0xbfd25d34, envp=0xbfd25d50) at 
../../dix/main.c:288
i = 

Bug#683366: xserver-xorg-input-joystick: Xorg segfaults with two different gamepads

2012-07-31 Thread Andrei POPESCU
On Ma, 31 iul 12, 09:27:46, Andrei POPESCU wrote:
 
 I'm also attaching Xorg.0.log.old, which was generated with another 
 gamepad.

Really attaching it now :)

Kind regards,
Andrei
-- 
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic


Xorg.0.log.old
Description: application/trash


signature.asc
Description: Digital signature


Bug#683366: xserver-xorg-input-joystick: Xorg segfaults with two different gamepads

2012-07-31 Thread Andrei POPESCU
On Ma, 31 iul 12, 09:27:46, Andrei POPESCU wrote:
 
 I'm also attaching Xorg.0.log.old, which was generated with another 
 gamepad.

Really attaching it now :)

Kind regards,
Andrei
-- 
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic


Xorg.0.log.old
Description: application/trash


signature.asc
Description: Digital signature


Bug#683366: xserver-xorg-input-joystick: Xorg segfaults with two different gamepads

2012-07-31 Thread Julien Cristau
On Tue, Jul 31, 2012 at 09:27:46 +0300, Andrei POPESCU wrote:

 Xorg segfaults whenever I touch a button or stick on two different 
 gamepads.
 
 
 ,[ /etc/X11/xorg.conf.d/input-class_gamepad.conf ]
 | Section InputClass
 | Identifier  Gamepad
 | MatchproductXbox|X-Box|Action
 | Option  SendCoreEventsfalse
 | EndSection
 `
 
 I'm also attaching Xorg.0.log.old, which was generated with another 
 gamepad.
 
 Don't hesitate to ask for more info if necessary.
 
See
http://wiki.debian.org/XStrikeForce/XserverDebugging#Obtaining_a_backtrace_with_gdb

Cheers,
Julien


signature.asc
Description: Digital signature