Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Jan 2019 16:54:02 +0100
From:      Jan Beich <jbeich@FreeBSD.org>
To:        Chung-Yeol Lee <chungyeol.lee@gmail.com>
Cc:        freebsd-x11@freebsd.org
Subject:   Re: Xorg server segmentation fault when monitor is not connected.
Message-ID:  <y37g-prs5-wny@FreeBSD.org>
In-Reply-To: <CA%2Ba-Gi%2BmbjA8d_ZEtnrHQspzOATi%2BPoY1VCCpifKxYJDa04Y-g@mail.gmail.com> (Chung-Yeol Lee's message of "Fri, 18 Jan 2019 22:28:13 -0800")
References:  <CA%2Ba-Gi%2BmbjA8d_ZEtnrHQspzOATi%2BPoY1VCCpifKxYJDa04Y-g@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Chung-Yeol Lee <chungyeol.lee@gmail.com> writes:

> Hi!
>
> Since I updated Xorg server from 1.18.4_10,1 -> 1.18.4_11,1,
> the server does not start up when the monitor is not connected.
> (I actually updated bunch of other ports at that time, including mesa-dri
> etc, so it might be something else).

Can you track down the exact cause? Try downgrading mesa-dri to 18.2.8 first
then to 18.1.9.

> I'm on 12-STABLE / AMD Radeon 7450 with radeonkms.ko.
> The server works fine as soon as I connect the monitor.

radeonkms from drm-fbsd12.0-kmod with xf86-video-ati? Can you try
drm-fbsd11.2-kmod first then xf86-video-ati-legacy? Can you try
"DRI" "2" or "AccelMethod" "EXA" in xorg.conf per radeon(4x) manpage?

Can you show pciconf output to avoid ambiguity?
$ pciconf -lvcb | sed -n '/vgapci/,/@pci/p'

> Is this a known issue?

Not enough details. The crash fingerprint is obscured by lack of symbols,
so it's not possible to search if anyone reported a similar issue upstream.

>
> Thanks,
> Chung-yeol
>
> * Here's backtrace from Xorg.0.log:
> [  3601.265] (EE) Backtrace:
> [  3601.268] (EE) 0: /usr/local/lib/libunwind.so.8 (?+0x423a13)
> [0x800824413]
> [  3601.271] (EE) 1: /lib/libthr.so.3 (pthread_sigmask+0x544) [0x800adc7b4]
> [  3601.273] (EE) 2: /lib/libthr.so.3 (pthread_getspecific+0xe0f)
> [0x800adc62f]
> [  3601.276] (EE) 3: ? (?+0xe0f) [0x7fffffffff82]

To get a clue what 3rd frame contains you may need to rebuild more ports
WITH_DEBUG=1 starting with xorg-server and xf86-video-ati.

> [  3601.278] (EE) 4: /lib/libc.so.7 (memcpy+0x2b) [0x800ca32a6]
> [  3601.281] (EE) 5: /usr/local/lib/dri/r600_dri.so (?+0x2b) [0x802361b1b]
> [  3601.284] (EE) 6: /usr/local/lib/dri/r600_dri.so (?+0x2b) [0x8024be15b]
> [  3601.286] (EE) 7: /usr/local/lib/dri/r600_dri.so (?+0x2b) [0x8024bdecb]
> [  3601.289] (EE) 8: /usr/local/lib/dri/r600_dri.so (?+0x2b) [0x80263b6bb]
> [  3601.291] (EE) 9: /usr/local/lib/dri/r600_dri.so (?+0x2b) [0x801ebc21b]
> [  3601.294] (EE) 10: /usr/local/lib/dri/r600_dri.so (?+0x2b) [0x802464d4b]
> [  3601.297] (EE) 11: /usr/local/lib/dri/r600_dri.so (?+0x2b) [0x8022d4afb]
> [  3601.299] (EE) 12: /usr/local/lib/dri/r600_dri.so (?+0x2b) [0x8022d0f7b]

Can you build graphics/mesa-dri WITH_DEBUG=1 to get symbols in the stacktrace,
not just their addresses?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?y37g-prs5-wny>