Bug 33380 - Xorg crashes frequently
Summary: Xorg crashes frequently
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/General (show other bugs)
Version: 7.5 (2009.10)
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-23 06:09 UTC by Stefano Pasquale
Modified: 2011-03-17 09:38 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
gdb with full backtrace (488.77 KB, application/x-gzip)
2011-01-23 06:09 UTC, Stefano Pasquale
no flags Details
nvidia-bug-report (68.24 KB, application/x-gzip)
2011-01-23 06:18 UTC, Stefano Pasquale
no flags Details

Description Stefano Pasquale 2011-01-23 06:09:20 UTC
Created attachment 42333 [details]
gdb with full backtrace

Xorg crashes with following reproducible steps:

- run acrobat reader (9.3.4 or 9.4.1)
- open any pdf file
- click on acrobat button to "Save as" --> Xorg crashes!

- also clicking on "Print" button causes the same crash

Recently on my machine Xorg started crashing in other situations, also while running screensaver.

I'm running Kubuntu 10.10

$ lsb_release 
LSB Version:    core-2.0-ia32:core-2.0-noarch:core-3.0-ia32:core-3.0-noarch:core-3.1-ia32:core-3.1-noarch:core-3.2-ia32:core-3.2-noarch:core-4.0-ia32:core-4.0-noarch:cxx-3.0-ia32:cxx-3.0-noarch:cxx-3.1-ia32:cxx-3.1-noarch:cxx-3.2-ia32:cxx-3.2-noarch:cxx-4.0-ia32:cxx-4.0-noarch:desktop-3.1-ia32:desktop-3.1-noarch:desktop-3.2-ia32:desktop-3.2-noarch:desktop-4.0-ia32:desktop-4.0-noarch:graphics-2.0-ia32:graphics-2.0-noarch:graphics-3.0-ia32:graphics-3.0-noarch:graphics-3.1-ia32:graphics-3.1-noarch:graphics-3.2-ia32:graphics-3.2-noarch:graphics-4.0-ia32:graphics-4.0-noarch:languages-3.2-ia32:languages-3.2-noarch:languages-4.0-ia32:languages-4.0-noarch:multimedia-3.2-ia32:multimedia-3.2-noarch:multimedia-4.0-ia32:multimedia-4.0-noarch:printing-3.2-ia32:printing-3.2-noarch:printing-4.0-ia32:printing-4.0-noarch:qt4-3.1-ia32:qt4-3.1-noarch


with:

$ dpkg -s nvidia-current
Package: nvidia-current
Status: install ok installed
Priority: optional
Section: restricted/misc
Installed-Size: 76364
Maintainer: Ubuntu Core Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: i386
Source: nvidia-graphics-drivers
Version: 260.19.06-0ubuntu1
Provides: xorg-driver-video, xserver-xorg-video-8
Depends: x11-common (>= 1:7.0.0), make, sed (>> 3.0), dkms, linux-libc-dev, libc6-dev, linux-headers-generic | linux-headers, patch, acpid, libc6 (>= 2.3.6-6~), libgcc1 (>= 1:4.1.1), libx11-6, libxext6, libxv1, libxvmc1, zlib1g (>= 1:1.1.4)
Comment 1 Stefano Pasquale 2011-01-23 06:17:02 UTC
Forgot to mention:
- also tried nvidia 260.19.29 with proprietary installation scripts (NVIDIA-Linux-x86-260.19.29.run), same results.

- running strace on Xorg sometimes avoids crash (strace -v -ttfix -o /tmp/Xorg.out -p <Xorg-PID>)

Sorry I could not make Xorg dump core.
Also attaching nvidia bug report.
Comment 2 Stefano Pasquale 2011-01-23 06:18:10 UTC
Created attachment 42334 [details]
nvidia-bug-report
Comment 3 Aaron Plattner 2011-03-17 09:38:55 UTC
This is not an NVIDIA driver bug.  It looks like it will be fixed in xserver 1.9.5:

commit 8369467c20746ee91ac8be78a43dc1990b01e056
Author: Erkki Seppälä <erkki.seppala@vincit.fi>
Date:   Thu Feb 10 15:35:14 2011 +0200

    record: avoid crash when calling RecordFlushReplyBuffer recursively
    
    RecordFlushReplyBuffer can call itself recursively through
    WriteClient->CallCallbacks->_CallCallbacks->RecordFlushAllContexts
    when the recording client's buffer cannot be completely emptied in one
    WriteClient. When a such a recursion occurs, it will not be broken out
    of which results in segmentation fault when the stack is exhausted.
    
    This patch adds a counter (a flag, really) that guards against this
    situation, to break out of the recursion.
    
    One alternative to this change would be to change _CallCallbacks to
    check the corresponding counter before the callback loop, but that
    might affect existing behavior, which may be relied upon.
    
    Reviewed-by: Rami Ylimäki <rami.ylimaki@vincit.fi>
    Signed-off-by: Erkki Seppälä <erkki.seppala@vincit.fi>
    Signed-off-by: Keith Packard <keithp@keithp.com>
    (cherry picked from commit 0801afbd7c2c644c672b37f8463f1a0cbadebd2e)

 record/record.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.