Comment 2 for bug 762082

Revision history for this message
Steve Langasek (vorlon) wrote :

this segfault occurs because dump calls update-alternatives with --verbose - which no other maintainer script appears to do (I'm not sure why dump should call it either). Backtrace:

(gdb) bt
#0 strlen () at ../ports/sysdeps/arm/strlen.S:29
#1 0x401ca050 in _IO_vfprintf_internal (s=<value optimized out>,
    format=<value optimized out>, ap=<value optimized out>) at vfprintf.c:1620
#2 0x401ca79e in buffered_vfprintf (s=0x402765d8,
    format=<value optimized out>, args=<value optimized out>)
    at vfprintf.c:2260
#3 0x401c6f1e in _IO_vfprintf_internal (s=0x402765d8,
    format=0xe2e8 "using %s to provide %s (%s) in %s.", ap=...)
    at vfprintf.c:1306
#4 0x40235190 in ___vfprintf_chk (fp=0x402765d8, flag=1,
    format=0xe2e8 "using %s to provide %s (%s) in %s.", ap=...)
    at vfprintf_chk.c:35
#5 0x000096aa in vprintf (fmt=0xe2e8 "using %s to provide %s (%s) in %s.")
    at /usr/include/bits/stdio2.h:118
#6 info (fmt=0xe2e8 "using %s to provide %s (%s) in %s.")
    at ../../utils/update-alternatives.c:226
#7 0x0000ab9e in main (argc=11, argv=<value optimized out>)
    at ../../utils/update-alternatives.c:2448