FS#65544 - [xorg-server-xvfb] Xvfb - core dump

Attached to Project: Arch Linux
Opened by Adam Jędrzejowski (ajedrzejowski) - Tuesday, 18 February 2020, 14:40 GMT
Last edited by Doug Newgard (Scimmia) - Tuesday, 18 February 2020, 14:46 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Short: xvfb-run is not working, does not create proper X server

Long:
xvfb-run makes core dump while creating X server, here is an output:

```
adam $ LC_ALL=C xvfb-run echo "I am PIRATE"
/usr/bin/xvfb-run: line 173: 95959 Aborted (core dumped) XAUTHORITY=$AUTHFILE Xvfb ":$SERVERNUM" $XVFBARGS $LISTENTCP >> "$ERRORFILE" 2>&1
I am PIRATE
/usr/bin/xvfb-run: line 186: kill: (95959) - No such process
```

As u can see `echo` command executed successfully, but X server crashed before execution.
Here is another example with chromium:

```
adam $ LC_ALL=C xvfb-run chromium
/usr/bin/xvfb-run: line 173: 96018 Aborted (core dumped) XAUTHORITY=$AUTHFILE Xvfb ":$SERVERNUM" $XVFBARGS $LISTENTCP >> "$ERRORFILE" 2>&1
[96028:96028:0218/153418.318348:ERROR:browser_main_loop.cc(1512)] Unable to open X display.
/usr/bin/xvfb-run: line 186: kill: (96018) - No such process
```

Again `chromium` indicates that can't connect to X.

It seems that command `Xvfb` causes this behaviour.
Running it in terminal makes output:

```
adam $ LC_ALL=C Xvfb
(EE)
(EE) Backtrace:
(EE) 0: Xvfb (0x55914f6ce000+0x6194d) [0x55914f72f94d]
(EE) 1: Xvfb (0x55914f6ce000+0x61a60) [0x55914f72fa60]
(EE) 2: /usr/lib/libc.so.6 (0x7f5efd2a0000+0x3bd70) [0x7f5efd2dbd70]
(EE) 3: /usr/lib/dri/swrast_dri.so (0x7f5efaaca000+0x521044) [0x7f5efafeb044]
(EE) 4: /usr/lib/dri/swrast_dri.so (0x7f5efaaca000+0x533b56) [0x7f5efaffdb56]
(EE) 5: /usr/lib/dri/swrast_dri.so (0x7f5efaaca000+0x51ea44) [0x7f5efafe8a44]
(EE) 6: /usr/lib/dri/swrast_dri.so (0x7f5efaaca000+0x51fbe3) [0x7f5efafe9be3]
(EE) 7: /usr/lib/dri/swrast_dri.so (0x7f5efaaca000+0xed29d) [0x7f5efabb729d]
(EE) 8: /lib64/ld-linux-x86-64.so.2 (0x7f5efd47e000+0x1109a) [0x7f5efd48f09a]
(EE) 9: /lib64/ld-linux-x86-64.so.2 (0x7f5efd47e000+0x111a1) [0x7f5efd48f1a1]
(EE) 10: /usr/lib/libc.so.6 (_dl_catch_exception+0xe5) [0x7f5efd3d9905]
(EE) 11: /lib64/ld-linux-x86-64.so.2 (0x7f5efd47e000+0x150e8) [0x7f5efd4930e8]
(EE) 12: /usr/lib/libc.so.6 (_dl_catch_exception+0x88) [0x7f5efd3d98a8]
(EE) 13: /lib64/ld-linux-x86-64.so.2 (0x7f5efd47e000+0x1496e) [0x7f5efd49296e]
(EE) 14: /usr/lib/libdl.so.2 (0x7f5efd068000+0x134c) [0x7f5efd06934c]
(EE) 15: /usr/lib/libc.so.6 (_dl_catch_exception+0x88) [0x7f5efd3d98a8]
(EE) 16: /usr/lib/libc.so.6 (_dl_catch_error+0x33) [0x7f5efd3d9973]
(EE) 17: /usr/lib/libdl.so.2 (0x7f5efd068000+0x1ab9) [0x7f5efd069ab9]
(EE) 18: /usr/lib/libdl.so.2 (dlopen+0x4a) [0x7f5efd0693da]
(EE) 19: Xvfb (0x55914f6ce000+0x34482) [0x55914f702482]
(EE) 20: Xvfb (0x55914f6ce000+0x5a292) [0x55914f728292]
(EE) 21: Xvfb (0x55914f6ce000+0x597dd) [0x55914f7277dd]
(EE) 22: Xvfb (0x55914f6ce000+0x112fbc) [0x55914f7e0fbc]
(EE) 23: Xvfb (0x55914f6ce000+0x3333b) [0x55914f70133b]
(EE) 24: Xvfb (0x55914f6ce000+0x2630b) [0x55914f6f430b]
(EE) 25: /usr/lib/libc.so.6 (__libc_start_main+0xf3) [0x7f5efd2c7023]
(EE) 26: Xvfb (0x55914f6ce000+0x283ee) [0x55914f6f63ee]
(EE)
(EE) Illegal instruction at address 0x7f5efafeb044
(EE)
Fatal server error:
(EE) Caught signal 4 (Illegal instruction). Server aborting
(EE)
Przerwane (zrzut pamięci)
```

`Przerwane (zrzut pamięci)` means core dump, no idea why it isn't translated.

And also output of `journalctl -b`

```
Process 95891 (Xvfb) of user 1000 dumped core.

Stack trace of thread 95891:
#0 0x00007f1adb926ce5 raise (libc.so.6 + 0x3bce5)
#1 0x00007f1adb910857 abort (libc.so.6 + 0x25857)
#2 0x000056056943f7fa n/a (Xvfb + 0x547fa)
#3 0x000056056943f991 n/a (Xvfb + 0x54991)
#4 0x000056056944cacb n/a (Xvfb + 0x61acb)
#5 0x00007f1adb926d70 __restore_rt (libc.so.6 + 0x3bd70)
#6 0x00007f1ad9a0a044 n/a (swrast_dri.so + 0x521044)
#7 0x00007f1ad9a1cb56 n/a (swrast_dri.so + 0x533b56)
#8 0x00007f1ad9a07a44 n/a (swrast_dri.so + 0x51ea44)
#9 0x00007f1ad9a08be3 n/a (swrast_dri.so + 0x51fbe3)
#10 0x00007f1ad95d629d n/a (swrast_dri.so + 0xed29d)
#11 0x00007f1adbada09a call_init.part.0 (ld-linux-x86-64.so.2 + 0x1109a)
#12 0x00007f1adbada1a1 _dl_init (ld-linux-x86-64.so.2 + 0x111a1)
#13 0x00007f1adba24905 _dl_catch_exception (libc.so.6 + 0x139905)
#14 0x00007f1adbade0e8 dl_open_worker (ld-linux-x86-64.so.2 + 0x150e8)
#15 0x00007f1adba248a8 _dl_catch_exception (libc.so.6 + 0x1398a8)
#16 0x00007f1adbadd96e _dl_open (ld-linux-x86-64.so.2 + 0x1496e)
#17 0x00007f1adb6b434c n/a (libdl.so.2 + 0x134c)
#18 0x00007f1adba248a8 _dl_catch_exception (libc.so.6 + 0x1398a8)
#19 0x00007f1adba24973 _dl_catch_error (libc.so.6 + 0x139973)
#20 0x00007f1adb6b4ab9 n/a (libdl.so.2 + 0x1ab9)
#21 0x00007f1adb6b43da dlopen (libdl.so.2 + 0x13da)
#22 0x000056056941f482 n/a (Xvfb + 0x34482)
#23 0x0000560569445292 n/a (Xvfb + 0x5a292)
#24 0x00005605694447dd n/a (Xvfb + 0x597dd)
#25 0x00005605694fdfbc n/a (Xvfb + 0x112fbc)
#26 0x000056056941e33b n/a (Xvfb + 0x3333b)
#27 0x000056056941130b n/a (Xvfb + 0x2630b)
#28 0x00007f1adb912023 __libc_start_main (libc.so.6 + 0x27023)
#29 0x00005605694133ee n/a (Xvfb + 0x283ee)
```

I found quite new bug related to xvfb  FS#65076  and tried to "undo" patch, but it didn't make a difference.

Version: xorg-server-xvfb 1.20.7-1
This task depends upon

Closed by  Doug Newgard (Scimmia)
Tuesday, 18 February 2020, 14:46 GMT
Reason for closing:  Duplicate
Additional comments about closing:   FS#65498   FS#65497   FS#65499   FS#65511   FS#65514   FS#65520   FS#65522 

A fully updated system is REQUIRED before opening a ticket

Loading...