Subject: bug#47675: quiterss segfaults

From: Maxime Devos <[email-masked]>
Date: Fri, 09 Apr 2021 19:21:10 +0200

Hi Guix,

$ guix --version
> guix (GNU Guix) 29a6c361492b18bcb0f6d2517d010a1b48441521
> [...]

$ guix environment --ad-hoc --pure coreutils which gdb quiterss -E "XAUTHORITY" -E "DISPLAY" -- quiterss
> # (No output)

$ guix environment --ad-hoc --pure coreutils which gdb quiterss -E "XAUTHORITY" -E "DISPLAY" --
[env]$ quiterss
> Segmentation fault
$ cat `which quiterss`
> [export things, and an exec line]
$ [the export
lines]
$ gdb .quiterss-real
(gdb) start
(gdb) continue

(visual output)  Loading: 30%  0.19.4  QuiteRSS, free news reader (progress bar)
> Continuing.
> [New Thread 0x7fffeefc2700 (LWP 25287)]
> [New Thread 0x7fffe4d6c700 (LWP 25288)]
> [New Thread 0x7fffdffff700 (LWP 25289)]
> [New Thread 0x7fffdf7fe700 (LWP 25290)]
> [New Thread 0x7fffdeffd700 (LWP 25291)]
>
> Thread 1 ".quiterss-real" received signal SIGSEGV, Segmentation fault.
> 0x00007ffff7b4cdab in QHeaderViewPrivate::createSectionItems(int, int, int, QHeaderView::ResizeMode) ()
>   from /gnu/store/gdg69dfp58q5lbfd9armvazh8bmyf4j0-qtbase-5.15.2/lib/libQt5Widgets.so.5

(gdb) bt
> #0  0x00007ffff7b4cdab in QHeaderViewPrivate::createSectionItems(int, int, int, QHeaderView::ResizeMode) () from /gnu/store/gdg69dfp58q5lbfd9armvazh8bmyf4j0-qtbase-5.15.2/lib/libQt5Widgets.so.5
> #1  0x00007ffff7b4d9f2 in QHeaderView::setSectionResizeMode(int, QHeaderView::ResizeMode) ()
>    from /gnu/store/gdg69dfp58q5lbfd9armvazh8bmyf4j0-qtbase-5.15.2/lib/libQt5Widgets.so.5
> #2  0x00000000005437bd in ?? ()
> #3  0x0000000000544ac3 in ?? ()
> #4  0x00000000004f9ee6 in ?? ()
> #5  0x0000000000449a70 in main ()

Again, this time with --with-debug-info=quiterss:

(gdb) bt
> [grrr! no improvement]

Greetings,
Maxime