Bug 28882

Summary: xorg-server crashes when launching lxterminal (part of lxde)
Product: xorg Reporter: Tim <tim>
Component: Server/GeneralAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED MOVED QA Contact: Xorg Project Team <xorg-team>
Severity: major    
Priority: medium    
Version: unspecified   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
gdb trace of xorg-server seg fault
none
gdb trace with debug symbols for libpixman
none
gdb stack trace with code context for the calls none

Description Tim 2010-07-01 21:56:30 UTC
Created attachment 36674 [details]
gdb trace of xorg-server seg fault

I'm running LXDE on an Arch Linux system and after a recent upgrade, now xorg-server exits with a segmentation fault whenever I try to run lxterminal (the terminal application in the LXDE suite). It happens every time and immediately after invoking the program (before a window even appears). I haven't been able to reproduce it with any other application.


I'm attaching a gdb backtrace collected according to these instructions:

http://wiki.x.org/wiki/Development/Documentation/ServerDebugging?highlight=(segmentation)|(fault)

Since it looks like I only get one attachment, see below for an excerpt from Xorg.0.log with a backtrace. There's also a gdb trace from lxterminal showing that it exits without a seg fault.


Here's some version info for my system:

lxterminal 0.1.7-1
lxde-common 0.5.0-1

kernel 2.6.34-ARCH


$ X -version

X.Org X Server 1.8.0
Release Date: 2010-04-02
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.34-ARCH i686 
Current Operating System: Linux deimos 2.6.34-ARCH #1 SMP PREEMPT Sat Jun 19 13:06:16 CEST 2010 i686
Kernel command line: root=/dev/disk/by-uuid/97258355-411c-456d-9ff4-d686b0a3408d ro
Build Date: 01 July 2010  10:29:43PM
 
Current version of pixman: 0.18.2


### excerpt from Xorg.0.log:

[  4480.061] 
Backtrace:
[  4480.061] 0: /usr/bin/X (xorg_backtrace+0x3b) [0x80df05b]
[  4480.062] 1: /usr/bin/X (0x8048000+0x63da5) [0x80abda5]
[  4480.062] 2: (vdso) (__kernel_rt_sigreturn+0x0) [0xb788340c]
[  4480.062] 3: /usr/lib/xorg/modules/libfb.so (image_from_pict+0x3b8) [0xb72e6a58]
[  4480.062] 4: /usr/lib/xorg/modules/libfb.so (fbComposite+0x121) [0xb72e6c51]
[  4480.062] 5: /usr/bin/X (0x8048000+0xc7053) [0x810f053]
[  4480.062] 6: /usr/bin/X (CompositePicture+0x290) [0x8103710]
[  4480.062] 7: /usr/bin/X (0x8048000+0x12f0a2) [0x81770a2]
[  4480.062] 8: /usr/bin/X (0x8048000+0x12eea8) [0x8176ea8]
[  4480.063] 9: /usr/bin/X (0x8048000+0x12eea8) [0x8176ea8]
[  4480.063] 10: /usr/bin/X (0x8048000+0x9885f) [0x80e085f]
[  4480.063] 11: /usr/bin/X (BlockHandler+0x58) [0x80921f8]
[  4480.063] 12: /usr/bin/X (WaitForSomething+0x10c) [0x80a7fec]
[  4480.063] 13: /usr/bin/X (0x8048000+0x214d0) [0x80694d0]
[  4480.063] 14: /usr/bin/X (0x8048000+0x1a4b5) [0x80624b5]
[  4480.063] 15: /lib/libc.so.6 (__libc_start_main+0xe6) [0xb75c5c76]
[  4480.064] 16: /usr/bin/X (0x8048000+0x1a0a1) [0x80620a1]
[  4480.064] Segmentation fault at address 0x20
[  4480.064] 
Fatal server error:
[  4480.064] Caught signal 11 (Segmentation fault). Server aborting
[  4480.064] 


### gdb launch of lxterminal:

Reading symbols from /usr/bin/lxterminal...done.
(gdb) run
Starting program: /usr/bin/lxterminal 
[Thread debugging using libthread_db enabled]
[New Thread 0xb58c0b70 (LWP 23639)]
[Thread 0xb58c0b70 (LWP 23639) exited]

Program exited with code 01.
(gdb)
Comment 1 Tim 2010-07-04 11:06:21 UTC
Created attachment 36745 [details]
gdb trace with debug symbols for libpixman
Comment 2 Tim 2010-07-04 11:09:17 UTC
Created attachment 36746 [details]
gdb stack trace with code context for the calls

gdb short stack trace with the full function source code (w/line numbers) for each routine in the trace
Comment 3 Søren Sandmann Pedersen 2010-07-06 08:54:51 UTC
Apparently, the server calls set_has_client_clip() with a NULL image:

   #0  0xb75cb7bc in pixman_image_set_has_client_clip (image=0x0, client_clip=1) at pixman-image.c:530
   No locals.
Comment 4 GitLab Migration User 2018-12-13 22:23:55 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xorg/xserver/issues/402.

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.