Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Jan 2019 05:12:28 +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:  <pnss-55n7-wny@FreeBSD.org>
References:  <CA%2Ba-Gi%2BmbjA8d_ZEtnrHQspzOATi%2BPoY1VCCpifKxYJDa04Y-g@mail.gmail.com> <y37g-prs5-wny@FreeBSD.org> <CA%2Ba-GiLauqD2vQC1%2BT3S7k53=FFjgq0rDuU935-zKBKj_g6WZw@mail.gmail.com>

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

>> > 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.
>>
>
> Sorry for the lack of context. I hoped this is known issue or something
> obvious from its symptom.
> here's better stack trace with debug symbol:
> #0  memcpy () at /usr/src/lib/libc/amd64/string/memmove.S:306
> #1  0x0000000802834af8 in r600_create_vertex_fetch_shader (ctx=0x8010fa340,
> count=2, elements=0x7fffffffd8c0) at r600_asm.c:2783
> #2  0x0000000802690636 in util_blitter_create (pipe=0x8010fa340) at
> util/u_blitter.c:302
> #3  0x000000080283cd5f in r600_create_context (screen=0x806674100,
> priv=0x0, flags=0) at r600_pipe.c:231
[...]

Looks similar to https://lists.freedesktop.org/archives/amd-gfx/2018-May/022218.html
fixed by https://github.com/FreeBSDDesktop/kms-drm/commit/1d67729d7c5f
which is part of drm-fbsd12.0-kmod >= 4.16.g20181210.

xf86-video-ati better works on radeonkms under /boot/modules/ from drm-fbsd12.0-kmod.
xf86-video-ati-legacy is for radeonkms under /boot/kernel/ from base system.

Check which kernel driver is loaded via
$ kldstat -v | fgrep radeon

As AMD Radeon 7450 (aka ARUBA 0x9993) is supported by both base and
ports I wonder if you've accidentally loaded the wrong one.

> #13 0x0000000801b2b1be in gbm_create_device () from
> /usr/local/lib/libgbm.so.1
> #14 0x0000000801b0299d in radeon_glamor_pre_init (scrn=0x801ba5000) at
> radeon_glamor.c:135
> #15 0x0000000801aee262 in RADEONPreInitAccel_KMS (pScrn=0x801ba5000) at
> radeon_kms.c:1358
> #16 0x0000000801aecffe in RADEONPreInit_KMS (pScrn=0x801ba5000, flags=0) at
> radeon_kms.c:1773

Looks like a crash from glamor. If switching drivers didn't help try
forcing DRI2 and/or using EXA instead. See radeon(4x) manpage.

--
Disclaimer: I don't use AMD hardware (yet), so you may want to wait for
            feedback from others.



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