FS#76576 - [timidity++] segfault in ALSA interface mode (-iA)

Attached to Project: Community Packages
Opened by Birk Birkner (Flammkuchen) - Tuesday, 15 November 2022, 00:06 GMT
Last edited by Toolybird (Toolybird) - Friday, 16 December 2022, 01:26 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To David Runge (dvzrv)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

Description:
When running the command timidity -iA I get a segmentation fault within seconds. I tried building the package myself with makechrootpkg -c -r $CHROOT installed it and it worked as expected. When building it with extra-x86_64-build -r $CHROOT I got the same problem as with the package in the repo. The package in the repo and the one build with extra tool also 0.05 MiB larger than the one build with makechrootpkg.


Additional info:
* Tested with 2.15.0-6 and 2.15.0-7
This task depends upon

Closed by  Toolybird (Toolybird)
Friday, 16 December 2022, 01:26 GMT
Reason for closing:  Fixed
Additional comments about closing:  timidity++ 2.15.0-9
Comment by Toolybird (Toolybird) - Tuesday, 15 November 2022, 04:06 GMT
Just did a quick test with pulseaudio and pulseaudio-alsa. Can repro. Recompiled with debug symbols to try and get a proper backtrace (attached). Crash seems to be in alsa-lib. This should be probably be reported upstream.
   gdb.txt (4.5 KiB)
Comment by Jerry Xiao (JerryXiao) - Tuesday, 22 November 2022, 13:54 GMT
The problem (on the surface) seems to be the usage of lto. Disable lto in makepkg.conf and the result binary does not segfault on playback. Though finding the code which causes the problem is a better way of fixing this bug.
Comment by Toolybird (Toolybird) - Tuesday, 22 November 2022, 20:06 GMT
Dupe  FS#76642   FS#76823   FS#76838 
Comment by MrSwedish (MrSwedish) - Wednesday, 14 December 2022, 12:55 GMT
Dupe  FS#76642   FS#76823 
I searched for this before multiple times, just to be safe, didnt find it
Comment by Jim Hill (jthill) - Thursday, 15 December 2022, 21:33 GMT
Searching for bugs reported against the package `timidity++`, that's this package, returns no hits.

Running `coredumpctl gdb` to get the failing routine name and searching for bugs mentioning `snd1_pcm_hw_param_set_near` returns no hits.

`asp checkout timidity++; cd $_/trunk; makepkg -si` installs a working timidity++ package.

So I think this is not an upstream bug.
Comment by David Runge (dvzrv) - Thursday, 15 December 2022, 21:40 GMT
@JerryXiao: Thanks for the hint. Will rebuild with LTO disabled.
Comment by David Runge (dvzrv) - Thursday, 15 December 2022, 21:44 GMT
2.15.0-9 should fix this. Please test (there's also debug symbols now).
Comment by Birk Birkner (Flammkuchen) - Thursday, 15 December 2022, 21:52 GMT
Seems to work for me now on 2.15.0-9.
Comment by Jim Hill (jthill) - Thursday, 15 December 2022, 21:57 GMT
Yup. I got 2.15.0-8 not 9 but it works.

Loading...