NetBSD Problem Report #51749

From martin@duskware.de  Wed Dec 28 15:38:31 2016
Return-Path: <martin@duskware.de>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id EFADB7A354
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 28 Dec 2016 15:38:30 +0000 (UTC)
From: martin@NetBSD.org
Reply-To: martin@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: Xorg server crashes when run from xdm
X-Send-Pr-Version: 3.95

>Number:         51749
>Category:       xsrc
>Synopsis:       Xorg server crashes when run from xdm
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    macallan
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 28 15:40:00 +0000 2016
>Closed-Date:    Wed Dec 28 16:51:35 +0000 2016
>Last-Modified:  Wed Dec 28 17:05:01 +0000 2016
>Originator:     Martin Husemann
>Release:        NetBSD 7.99.53
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD night-owl.duskware.de 7.99.53 NetBSD 7.99.53 (NIGHT-OWL) #450: Wed Dec 28 12:18:50 CET 2016 martin@night-owl.duskware.de:/usr/src/sys/arch/amd64/compile/NIGHT-OWL amd64
Architecture: x86_64
Machine: amd64
>Description:

With a very current -current Xorg crashes when started via xdm. A simple
startx works though. I see this on two different machines, one amd64, one
sparc64.

The issue is not in the kernel (i.e.: booting with an old kernel does not
fix it).

Xorg dumps core, but the core is pretty unusable (could it be that gdb's
core target has a silent limit on the number of program headers, so not
all memory mapped in the process and dumped gets loaded in gdb?):

[New process 1]
[New process 2]
Core was generated by `Xorg'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007f7feda2a7d9 in ?? ()
[Current thread is 1 (process 1)]
(gdb) bt
#0  0x00007f7feda2a7d9 in ?? ()
#1  0x00007f7ff7b3d800 in ?? ()
#2  0x00007f7fffffa488 in ?? ()
#3  0x00000000006ac2f8 in ?? ()
#4  0x00007f7fffffa488 in ?? ()
#5  0x00000000006ac2f8 in ?? ()
#6  0x0000000000000025 in ?? ()
#7  0x0000000000000097 in ?? ()
#8  0x00007f7fec60a441 in ?? ()
#9  0x00007f7fffffa488 in ?? ()
#10 0x0000000000000000 in ?? ()


A -current as of ~1 week ago worked.

The "lib" category of this PR is just a wild guess, as there seem to have been
no changes anywhere in xsrc that could cause this.

>How-To-Repeat:
Add xdm=YES to /etc/rc.conf, watch your X server die

>Fix:
n/a

>Release-Note:

>Audit-Trail:
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc: lib-bug-people@netbsd.org, gnats-admin@netbsd.org,
	netbsd-bugs@netbsd.org
Subject: Re: lib/51749: Xorg server crashes when run from xdm
Date: Wed, 28 Dec 2016 17:42:42 +0100

 Actually it turns out the crash is not related to xdm at all, it is just
 some special (not yet diagnosed) X operation that kills it.

 When doing startx and manually invoking startxfce4 the server also dies
 (but a lot earlier with xdm).

 Easy to attach gdb now...

 Martin

Responsible-Changed-From-To: lib-bug-people->macallan
Responsible-Changed-By: martin@NetBSD.org
Responsible-Changed-When: Wed, 28 Dec 2016 16:51:35 +0000
Responsible-Changed-Why:
Michael broke and fixed it


State-Changed-From-To: open->closed
State-Changed-By: martin@NetBSD.org
State-Changed-When: Wed, 28 Dec 2016 16:51:35 +0000
State-Changed-Why:
Works now


From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: lib/51749: Xorg server crashes when run from xdm
Date: Wed, 28 Dec 2016 17:48:34 +0100

 And Michael fixed it:

 Module Name:    xsrc
 Committed By:   macallan
 Date:           Wed Dec 28 15:37:59 UTC 2016

 Modified Files:
         xsrc/external/mit/xorg-server/dist/exa: exa_glyphs.c

 Log Message:
 back out previous - can be worked around elsewhere


 To generate a diff of this commit:
 cvs rdiff -u -r1.2 -r1.3 xsrc/external/mit/xorg-server/dist/exa/exa_glyphs.c

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.