Seems that sometimes pScreen pointer in miPointerSetPosition() is null.

In the attached crash report, the crash is happening here:
current_x = MIPOINTER(pDev)->x - pScreen->x;

#0  0x000056353930d2af in miPointerSetPosition (pDev=pDev@entry=0x56353a9d0960, 
mode=mode@entry=0, screenx=screenx@entry=0x7f4a11cd25c0, 
screeny=screeny@entry=0x7f4a11cd25c8, nevents=nevents@entry=0x7f4a11cd25bc, 
    events=events@entry=0x7f4a20145050) at ../../../../mi/mipointer.c:629


(gdb) x pScreen
0x56353a660470: 0x00000000


But I have seen it also happening a few lines earlier here:
switch_screen = !point_on_screen(pScreen, x, y);


I don't know how it is possible to get the crash on line 629.
The pScreen pointer is accessed before that, and I would expect the crash 
already there.

And I have absolutely no idea why I'm seeing that null pointer anyway.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1778233

Title:
  Xorg crash when using mouse

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xorg/+bug/1778233/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to