I can always reproduce this bug on appstream 0.9.4-1. It happens either
during apt-get update, appstreamcli refresh or appstreamcli refresh --force.

I installed appstream-dbgsym and libappstream3-dbgsym and ran the program
under gdb. The following is the backtrace I got:

Program received signal SIGABRT, Aborted.
0x00007ffff601e478 in __GI_raise (sig=sig@entry=6) at
../sysdeps/unix/sysv/linux/raise.c:55
55      ../sysdeps/unix/sysv/linux/raise.c: No existe el fichero o el
directorio.
(gdb) bt
#0  0x00007ffff601e478 in __GI_raise (sig=sig@entry=6) at
../sysdeps/unix/sysv/linux/raise.c:55
#1  0x00007ffff601f8fa in __GI_abort () at abort.c:89
#2  0x00007ffff605cfea in __libc_message (do_abort=do_abort@entry=2,
fmt=fmt@entry=0x7ffff6154cd8 "*** Error in `%s': %s: 0x%s ***\n") at
../sysdeps/posix/libc_fatal.c:175
#3  0x00007ffff6062936 in malloc_printerr (action=3, str=0x7ffff6154e30
"double free or corruption (fasttop)", ptr=<optimized out>,
ar_ptr=<optimized out>) at malloc.c:5000
#4  0x00007ffff606311e in _int_free (av=0x7ffff6389b20 <main_arena>,
p=<optimized out>, have_lock=0) at malloc.c:3861
#5  0x00007ffff6fd5599 in as_component_refine_icons (icon_paths=0x623ab0,
cpt=0xeb3290) at /build/appstream-0.9.4/src/as-component.c:1814
#6  as_component_complete (cpt=0xeb3290, scr_base_url=<optimized out>,
icon_paths=0x623ab0) at /build/appstream-0.9.4/src/as-component.c:1882
#7  0x00007ffff6fd678a in as_data_pool_add_new_component (cpt=0xeb3290,
dpool=0x62b080) at /build/appstream-0.9.4/src/as-data-pool.c:201
#8  as_data_pool_load_metadata (dpool=<optimized out>) at
/build/appstream-0.9.4/src/as-data-pool.c:477
#9  as_data_pool_update (dpool=<optimized out>,
error=error@entry=0x7fffffffe260)
at /build/appstream-0.9.4/src/as-data-pool.c:512
#10 0x00007ffff6fcbaf2 in as_cache_builder_refresh
(builder=builder@entry=0x62b030,
force=force@entry=1, error=error@entry=0x7fffffffe350) at
/build/appstream-0.9.4/src/as-cache-builder.c:537
#11 0x0000000000404a1e in ascli_refresh_cache (dbpath=0x0, datapath=0x0,
forced=1) at /build/appstream-0.9.4/tools/ascli-actions-mdata.c:60
#12 0x0000000000403d2b in as_client_run (argv=0x7fffffffe6a8, argc=2) at
/build/appstream-0.9.4/tools/appstream-cli.c:160
#13 0x00007ffff600b610 in __libc_start_main (main=0x4034d0 <main>, argc=3,
argv=0x7fffffffe6a8, init=<optimized out>, fini=<optimized out>,
rtld_fini=<optimized out>, stack_end=0x7fffffffe698) at libc-start.c:291
#14 0x0000000000403559 in _start ()

Reply via email to