Has anyone installed owntone recently? I am getting a segmentation fault upon running it. I am a linux novice and any help on how to debug would be appreciated.
[90434.529303] do_page_fault(): sending SIGSEGV to owntone for invalid write access to 77e2da94
[90434.537936] epc = 00456d74 in owntone[400000+104000]
[90434.542999] ra = 00456d7c in owntone[400000+104000]
[90440.697799] do_page_fault(): sending SIGSEGV to owntone for invalid write access to 77da5a94
[90440.706432] epc = 00456d74 in owntone[400000+104000]
[90440.711491] ra = 00456d7c in owntone[400000+104000]
[91487.765360] do_page_fault(): sending SIGSEGV to owntone for invalid read access from 00000000
[91487.774121] epc = 77e2e170 in libc.so[77da8000+a9000]
[91487.779389] ra = 76a3ddf7 in libmxml.so.1.6[76a3c000+17000]
[91488.146504] do_page_fault(): sending SIGSEGV to owntone for invalid write access to 77da3a94
[91488.155143] epc = 00456d74 in owntone[400000+104000]
[91488.160200] ra = 00456d7c in owntone[400000+104000]
[102407.399847] do_page_fault(): sending SIGSEGV to owntone for invalid read access from 00000000
[102407.408730] epc = 77e6c170 in libc.so[77de6000+a9000]
[102407.413967] ra = 76a7bdf7 in libmxml.so.1.6[76a7a000+17000]
[102407.753269] do_page_fault(): sending SIGSEGV to owntone for invalid write access to 77de1a94
[102407.761990] epc = 00456d74 in owntone[400000+104000]
[102407.767163] ra = 00456d7c in owntone[400000+104000]
I'm the maintainer of Owntone so I looked into it and was able to reproduce. The segfault seems to come from the libmxml library, which I also maintain. It's a bug in version 3.3, which the author fixed in version 3.3.1. The fixed version has been in OpenWrt for 5 months and I suppose will be in the next major release. Until then, maybe you can fix the problem by getting a snapshot ipk of libmxml. Not sure if that will work.
I cherry-picked the mxml bump to 3.3.1 into OpenWrt 22.03.
Buildbot should build the new package version in 1-2 days (for all targets)
You can then use opkg to install the 3.3.1 version.
This means libmxml will work, but unfortunately I found that there is also another issue causing OwnTone to segfault, this one caused by a change in ffmpeg 5 where a property that OwnTone 28.2 tries to change (AVOutputFormat.flags) became read-only. The invalid write causes SIGSEGV. The problem is fixed in 28.5, which is in OpenWrt packages master branch. Not sure what the best course of action (if any) would be here for 22.03, since it's less cherry-pickable?
The easiest course would be to backport also the necessary version bump commits for owntone. Preferably direct cherrypicks, but also manual backports are ok if necessary.
Yes, I can confirm it's there. However, to make it work, I had to install it with opkg install libwebsockets-full owntone. The reason is that owntone just specifies libwebsockets as dependency, and that defaults to libwebsocket-mbedtls. That package seems to be broken, possibly because it is missing a dependency to libev. I would submit a pr, but I haven't gotten to the bottom of the issue.