Closed arrowd closed 1 year ago
There is clearly a memory corruption somewhere in the code.
Yes, looks like it - running valgrind on appstream-generator is a nightmare though due to its large memory pool, LMDB and threading.
So, to investigate this, try the following: Compile AppStream with address sanitizer (pass -Db_sanitize=address,undefined -Dgir=false
to Meson setup), extract stellarium into a directory and then run appstreamcli-compose
directly on that directory. That will be a much smaller testcase :-)
Thanks for your input. Both -Dgir=false
and "run appstreamcli-compose` are really valueable advices! I'll try them out and report back.
Ah, the pointer named locale
is altered while being marked g_autofree
. It is strange, though, that this bug has gone unnoticed.
I'll prepare a patch.
I'm using AppStreamCompose library via
appstream-generator
. I reproducibly get a crash whenasgen
processes thestellarium/1.2/freebsd:12:x86:64
package. Here's the backtrace:When I switch to the frame
#1
and then doprint ctx->data
in the debugger I get:Printing the value as ASCII results in:
There is clearly a memory corruption somewhere in the code. I'll keep on debugging, but if anyone have an idea on where the bug is, I'm all ears.