nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   Xorg 1.11.2 gets segfault after switch into its console. (http://www.nvnews.net/vbulletin/showthread.php?t=171211)

O01eg 12-28-11 11:48 AM

Xorg 1.11.2 gets segfault after switch into its console.
 
1 Attachment(s)
When I switch into Xorg server after some time of work at another console the Xorg server get segfault if it have started with hardware cursor. With enabled software cursor this bug cann't be reproduced.

Some information from coredump:

Core was generated by `X :4 vt1 -nolisten tcp -br'.
Program terminated with signal 11, Segmentation fault.
#0 0x00000000004e6cc5 in xf86CursorSetCursor (pDev=0x1050260, pScreen=0x8b2430,
pCurs=0x140dd70, x=640, y=512)
at
/tmp/portage/x11-base/xorg-server-1.11.2-r2/work/xorg-server-1.11.2/hw/xfree86/ramdac/xf86Cursor.c:329
329 ScreenPriv->HotX = pCurs->bits->xhot;
(gdb) p pCurs
$3 = (CursorPtr) 0x140dd70
(gdb) p pCurs->bits
$4 = (CursorBitsPtr) 0x100cb5f0100cb60
(gdb) p pCurs->bits->xhot
Cannot access memory at address 0x100cb5f0100cb78
(gdb) p *pCurs
$5 = {bits = 0x100cb5f0100cb60, foreRed = 1280, foreGreen = 255, foreBlue =
1281, backRed = 255, backGreen = 0, backBlue = 0, refcnt = 1,
devPrivates = 0xff003100ff0030, id = 0, serialNumber = 0, name = 3592765440}
(gdb) p *pCurs->bits
Cannot access memory at address 0x100cb5f0100cb60
(gdb) bt
#0 0x00000000004e6cc5 in xf86CursorSetCursor (pDev=0x1050260, pScreen=0x8b2430,
pCurs=0x140dd70, x=640, y=512)
at
/tmp/portage/x11-base/xorg-server-1.11.2-r2/work/xorg-server-1.11.2/hw/xfree86/ramdac/xf86Cursor.c:329
#1 0x00000000004e68d9 in xf86CursorEnableDisableFBAccess (index=0, enable=1)
at
/tmp/portage/x11-base/xorg-server-1.11.2-r2/work/xorg-server-1.11.2/hw/xfree86/ramdac/xf86Cursor.c:235
#2 0x0000000000492d8e in xf86VTSwitch () at
/tmp/portage/x11-base/xorg-server-1.11.2-r2/work/xorg-server-1.11.2/hw/xfree86/common/xf86Events.c:530
#3 0x0000000000492696 in xf86Wakeup (blockData=0x0, err=-1, pReadmask=0x884840)
at
/tmp/portage/x11-base/xorg-server-1.11.2-r2/work/xorg-server-1.11.2/hw/xfree86/common/xf86Events.c:284
#4 0x00000000004423b2 in WakeupHandler (result=-1, pReadmask=0x884840)
at
/tmp/portage/x11-base/xorg-server-1.11.2-r2/work/xorg-server-1.11.2/dix/dixutils.c:421
#5 0x00000000005f0611 in WaitForSomething (pClientsReady=0x1086c80) at
/tmp/portage/x11-base/xorg-server-1.11.2-r2/work/xorg-server-1.11.2/os/WaitFor.c:235
#6 0x000000000043426d in Dispatch () at
/tmp/portage/x11-base/xorg-server-1.11.2-r2/work/xorg-server-1.11.2/dix/dispatch.c:368
#7 0x000000000042596d in main (argc=6, argv=0x7fff56b1ec08,
envp=0x7fff56b1ec40)
at
/tmp/portage/x11-base/xorg-server-1.11.2-r2/work/xorg-server-1.11.2/dix/main.c:287

Here https://bugs.freedesktop.org/show_bug.cgi?id=44193 Xorg.1.log and xorg.conf.

AaronP 12-28-11 01:29 PM

Re: Xorg 1.11.2 gets segfault after switch into its console.
 
Nothing in this backtrace indicates a bug in the NVIDIA driver. Can you please try running Valgrind on the X server to see where this bogus cursor data is coming from?

O01eg 12-28-11 03:02 PM

Re: Xorg 1.11.2 gets segfault after switch into its console.
 
Quote:

Originally Posted by AaronP (Post 2514931)
Can you please try running Valgrind on the X server to see where this bogus cursor data is coming from?

How can I run Xorg under valgrind?
Code:

$ /usr/bin/valgrind --log-file=X.log /usr/bin/Xorg :4 vt1 -nolisten tcp -br
==12374==
==12374== Warning: Can't execute setuid/setgid executable: /usr/bin/Xorg
==12374== Possible workaround: remove --trace-children=yes, if in effect
==12374==
valgrind: /usr/bin/Xorg: Permission denied


AaronP 12-28-11 04:17 PM

Re: Xorg 1.11.2 gets segfault after switch into its console.
 
You need to run it as root.

O01eg 12-29-11 12:01 PM

Re: Xorg 1.11.2 gets segfault after switch into its console.
 
1 Attachment(s)
Log from valgrind:
Code:

valgrind --log-file=X.log /usr/bin/X :4 vt2 -nolisten tcp -br


All times are GMT -5. The time now is 02:28 PM.

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.