Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 12-28-11, 11:48 AM   #1
O01eg
Registered User
 
Join Date: Dec 2011
Posts: 3
Exclamation Xorg 1.11.2 gets segfault after switch into its console.

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.
Attached Files
File Type: gz nvidia-bug-report.log.gz (68.0 KB, 22 views)
O01eg is offline   Reply With Quote
Old 12-28-11, 01:29 PM   #2
AaronP
NVIDIA Corporation
 
AaronP's Avatar
 
Join Date: Mar 2005
Posts: 2,487
Default 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?
AaronP is offline   Reply With Quote
Old 12-28-11, 03:02 PM   #3
O01eg
Registered User
 
Join Date: Dec 2011
Posts: 3
Default Re: Xorg 1.11.2 gets segfault after switch into its console.

Quote:
Originally Posted by AaronP View Post
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
O01eg is offline   Reply With Quote
Old 12-28-11, 04:17 PM   #4
AaronP
NVIDIA Corporation
 
AaronP's Avatar
 
Join Date: Mar 2005
Posts: 2,487
Default Re: Xorg 1.11.2 gets segfault after switch into its console.

You need to run it as root.
AaronP is offline   Reply With Quote
Old 12-29-11, 12:01 PM   #5
O01eg
Registered User
 
Join Date: Dec 2011
Posts: 3
Exclamation Re: Xorg 1.11.2 gets segfault after switch into its console.

Log from valgrind:
Code:
valgrind --log-file=X.log /usr/bin/X :4 vt2 -nolisten tcp -br
Attached Files
File Type: log valgrind.X.log (17.5 KB, 26 views)
O01eg is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 12:34 AM.


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