Bug 749534

Summary: [Arrandale] X server occasionally crashes soon after login
Product: [Fedora] Fedora Reporter: Pekka Pietikäinen <pp>
Component: xorg-x11-serverAssignee: Adam Jackson <ajax>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 16CC: ajax, kmaraas, mcepl, xgl-maint
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: [cat:crash]
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-13 08:02:09 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
Xorg.0.log including backtrace
none
dmesg output none

Description Pekka Pietikäinen 2011-10-27 11:35:02 UTC
Description of problem:

Running a updated F16 beta I occasionally get a crash within minutes of logging in. Other times it just works for days with no difference in actual usage (gnome-shell, starting up browser, empathy, terminals etc.). Here's a backtrace and a Xorg.0.log is attached as well. Thinkpad T410s with integrated intel graphics (pondered whether should file under -intel or -server-Xorg, assuming these are usually driver bugs and chose -intel)

[ 86985.879] 
Backtrace:
[ 86985.880] 0: /usr/bin/Xorg (xorg_backtrace+0x2f) [0x462d8f]
[ 86985.880] 1: /usr/bin/Xorg (0x400000+0x67b56) [0x467b56]
[ 86985.880] 2: /lib64/libpthread.so.0 (0x30a5800000+0xf4f0) [0x30a580f4f0]
[ 86985.880] 3: /usr/lib64/xorg/modules/extensions/librecord.so (0x7ff6c225e000+
0x26c3) [0x7ff6c22606c3]
[ 86985.880] 4: /usr/bin/Xorg (_CallCallbacks+0x3c) [0x43820c]
[ 86985.880] 5: /usr/bin/Xorg (WriteToClient+0x1f5) [0x466315]
[ 86985.880] 6: /usr/lib64/xorg/modules/extensions/libdri2.so (ProcDRI2WaitMSCRe
ply+0x4f) [0x7ff6c1e4feef]
[ 86985.880] 7: /usr/lib64/xorg/modules/extensions/libdri2.so (DRI2WaitMSCComple
te+0x52) [0x7ff6c1e4e6d2]
[ 86985.880] 8: /usr/lib64/xorg/modules/drivers/intel_drv.so (0x7ff6c1bfb000+0x2
5ae4) [0x7ff6c1c20ae4]
[ 86985.880] 9: /usr/lib64/libdrm.so.2 (drmHandleEvent+0xa3) [0x376b407513]
[ 86985.880] 10: /usr/bin/Xorg (WakeupHandler+0x6b) [0x4379db]
[ 86985.880] 11: /usr/bin/Xorg (WaitForSomething+0x1a9) [0x460289]
[ 86985.880] 12: /usr/bin/Xorg (0x400000+0x3379a) [0x43379a]
[ 86985.880] 13: /usr/bin/Xorg (0x400000+0x22dc5) [0x422dc5]
[ 86985.880] 14: /lib64/libc.so.6 (__libc_start_main+0xed) [0x30a542169d]
[ 86985.880] 15: /usr/bin/Xorg (0x400000+0x230b1) [0x4230b1]
[ 86985.880] Segmentation fault at address 0x7ff6bf09e010
[ 86985.880] 


Version-Release number of selected component (if applicable):

xorg-x11-server-Xorg-1.11.1-1.fc16.x86_64
xorg-x11-drv-intel-2.16.0-2.fc16.x86_64

Comment 1 Pekka Pietikäinen 2011-10-27 11:39:29 UTC
Created attachment 530463 [details]
Xorg.0.log including backtrace

Comment 2 Matěj Cepl 2011-10-29 23:13:42 UTC
Please, provide output of the command

rpm -q  xorg-x11-server-Xorg xorg-x11-drv-intel libdrm

Also, if you are able to reproduce the issue, output of the command

dmesg

AFTER the issue happens, but before rebooting, would be helpful.

Thank you

Comment 3 Pekka Pietikäinen 2011-10-30 00:26:53 UTC
xorg-x11-server-Xorg-1.11.1-1.fc16.x86_64
xorg-x11-drv-intel-2.16.0-2.fc16.x86_64
libdrm-2.4.26-2.fc16.x86_64
libdrm-2.4.26-2.fc16.i686

haven't rebooted yet so dmesg that I'm attaching is valid. Looking at my logs libdrm has recently gone from -1 to -2. dmesg is from a time covering the update, attached Xorg.0.log was after a X restart when drm was already updated. No updates in between, and this comment is written from the immediately following session. 

I've seen similar crashes a few times (but not that many) with libdrm -1 too, so probably not a regression there either.

Hope this helps, will try rebooting/reproducing in the meanwhile.

Comment 4 Pekka Pietikäinen 2011-10-30 00:30:05 UTC
Created attachment 530807 [details]
dmesg output

Comment 5 Matěj Cepl 2011-10-30 21:39:28 UTC
In function RecordAReply:
(from frame 3: /usr/lib64/xorg/modules/extensions/librecord.so (0x7ff6c225e000+0x26c3) [0x7ff6c22606c3])
603: RecordAReply(CallbackListPtr *pcbl, pointer nulldata, pointer calldata)
604: {
605:     RecordContextPtr pContext;
606:     RecordClientsAndProtocolPtr pRCAP;
607:     int eci;
608:     int majorop;
609:     ReplyInfoRec *pri = (ReplyInfoRec *)calldata;
610:     ClientPtr client = pri->client;
611:     REQUEST(xReq);
612: 
613: >>>>>>>     majorop = stuff->reqType;
614:     for (eci = 0; eci < numEnabledContexts; eci++)
615:     {
616:    pContext = ppAllContexts[eci];
617:    pRCAP = RecordFindClientOnContext(pContext, client->clientAsMask,
618:                                      NULL);
619:    if (pRCAP)
620:    {
621:        if (pContext->continuedReply)
622:        {
623:            RecordAProtocolElement(pContext, client, XRecordFromServer,


Frame 4: /usr/bin/Xorg (_CallCallbacks+0x3c) [0x43820c]
        /usr/src/debug/xorg-server-1.11.1/dix/dixutils.c:743
        _CallCallbacks
Frame 5: /usr/bin/Xorg (WriteToClient+0x1f5) [0x466315]
        /usr/src/debug/xorg-server-1.11.1/os/../include/callback.h:86
        CallCallbacks
Frame 8: /usr/lib64/xorg/modules/drivers/intel_drv.so (0x7ff6c1bfb000+0x25ae4) [0x7ff6c1c20ae4]
        /usr/src/debug/xf86-video-intel-2.16.0/src/intel_dri.c:965
        I830DRI2FrameEventHandler
Frame 10: /usr/bin/Xorg (WakeupHandler+0x6b) [0x4379db]
        /usr/src/debug/xorg-server-1.11.1/dix/dixutils.c:419
        WakeupHandler
Frame 11: /usr/bin/Xorg (WaitForSomething+0x1a9) [0x460289]
        /usr/src/debug/xorg-server-1.11.1/os/WaitFor.c:236
        WaitForSomething
Frame 12: /usr/bin/Xorg (0x400000+0x3379a) [0x43379a]
        /usr/src/debug/xorg-server-1.11.1/dix/dispatch.c:370
        Dispatch
Frame 13: /usr/bin/Xorg (0x400000+0x22dc5) [0x422dc5]
        /usr/src/debug/xorg-server-1.11.1/dix/main.c:296
        main

Comment 6 Pekka Pietikäinen 2011-11-03 06:55:17 UTC
"Right after login" may be a red herring, after a reboot to 3.1.0-1 it now crashed after 1.5 days or so of logging in, backtrace looks identical. Was typing an url into chrome when it happened.

Comment 7 Pekka Pietikäinen 2011-12-08 00:54:21 UTC
Hmpf, it might be gone, haven't seen it for some time:

xorg-x11-server-Xorg-1.11.2-3.fc16.x86_64
xorg-x11-drv-intel-2.17.0-1.fc16.x86_64
libdrm-2.4.27-2.fc16.x86_64

Then again, I've updated chrome too and "start typing an url into chrome" was the trigger several (if not every) times. The wonders of modern desktops ;)

I'll try to remember to close this in a few weeks if I don't see it anymore (or just close it and I'll reopen if necessary, it's probably such a heisenbug that visibility from being open shouldn't hurt tho...)

Comment 8 Kjartan Maraas 2011-12-12 21:40:31 UTC
I saw this early in the f16 betas, and I see it again now in rawhide (f17)

Filed it here https://bugzilla.redhat.com/show_bug.cgi?id=766354

[kmaraas@e4300 ~]$ rpm -q xorg-x11-server-Xorg xorg-x11-drv-intel libdrm
xorg-x11-server-Xorg-1.11.99.1-9.20111109.fc17.i686
xorg-x11-drv-intel-2.17.0-3.fc17.i686
libdrm-2.4.27-2.fc17.i686

Comment 9 Kjartan Maraas 2011-12-12 21:45:05 UTC
Possiby a duplicate of bug 739488

Comment 10 Kjartan Maraas 2012-10-20 22:33:46 UTC
There's a link to an upstream bug in the closed bug in comment #9. This was fixed upstream apparently.

Comment 11 Fedora End Of Life 2013-01-16 09:58:21 UTC
This message is a reminder that Fedora 16 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 16. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '16'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 16's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 16 is end of life. If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora, you are encouraged to click on 
"Clone This Bug" and open it against that version of Fedora.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 12 Fedora End Of Life 2013-02-13 08:02:15 UTC
Fedora 16 changed to end-of-life (EOL) status on 2013-02-12. Fedora 16 is 
no longer maintained, which means that it will not receive any further 
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.