Package: dpkg Version: 1.18.9 Severity: serious dpkg fails to purge a package in our test suite, crashing with a segmentation fault. You can reproduce it by building apt and running test/integration/test-bug-712116-dpkg-pre-install-pkgs-hook-multiarch - I have also included the backtrace here.
#0 namenodetouse (namenode=0x0, pkg=pkg@entry=0x560c3548cfb0, pkgbin=pkgbin@entry=0x560c3548d000) at ../../src/help.c:58 r = <optimized out> #1 0x0000560c33884750 in removal_bulk_remove_configfiles (pkg=0x560c3548cfb0) at ../../src/remove.c:533 usenode = <optimized out> removevb_state = {used = 0} fnvb = {used = 65, size = 74, buf = 0x560c35491730 "/tmp/user/1000/tmp.g6iz3eF7hX/rootdir/etc/compiz.conf/compiz.conf"} removevb = {used = 0, size = 0, buf = 0x0} namenode = <optimized out> conffbasenamelen = <optimized out> conffbasename = <optimized out> lconffp = <optimized out> de = <optimized out> p = <optimized out> dsd = <optimized out> rc = <optimized out> conffnameused = <optimized out> conff = 0x560c3548d1b0 searchfile = <optimized out> ext = <optimized out> removeconffexts = {0x560c338a8def "~", 0x560c338a4d45 ".bak", 0x560c338a4d4a "%", 0x560c3389dc6b ".dpkg-tmp", 0x560c3389dc75 ".dpkg-new", 0x560c338a4d4c ".dpkg-old", 0x560c3389f0b1 ".dpkg-dist", 0x0} #2 removal_bulk (pkg=pkg@entry=0x560c3548cfb0) at ../../src/remove.c:637 foundpostrm = <optimized out> #3 0x0000560c33885553 in deferred_remove (pkg=0x560c3548cfb0) at ../../src/remove.c:192 raemsgs = {used = 0, size = 0, buf = 0x0} dep = <optimized out> rok = DEP_CHECK_OK #4 0x0000560c33883142 in process_queue () at ../../src/packages.c:288 rundown = <optimized out> pkg = 0x560c3548cfb0 action_todo = act_purge ejbuf = {{__jmpbuf = {0, 1008670450863515041, 1, 140722198930704, 0, 0, -1006724711060265567, -6780200583402150495}, __mask_was_saved = 0, __saved_mask = {__val = {140240791502169, 140722198930256, 94610404235612, 140722198930256, 94610404235761, 0, 16, 94610433560496, 94610404104128, 140722198930704, 0, 0, 140240791507784, 0, 94610404214745, 140722198930704}}}} istobe = <optimized out> __func__ = "process_queue" __PRETTY_FUNCTION__ = "process_queue" #5 0x0000560c33883488 in packages (argv=<optimized out>) at ../../src/packages.c:162 No locals. #6 0x0000560c338756a9 in main (argc=<optimized out>, argv=0x7ffc70ade568) at ../../src/main.c:901 ret = <optimized out> -- System Information: Debian Release: stretch/sid APT prefers unstable APT policy: (900, 'unstable'), (500, 'unstable-debug'), (500, 'testing'), (500, 'stable'), (100, 'experimental'), (1, 'experimental-debug') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.6.0-1-amd64 (SMP w/4 CPU cores) Locale: LANG=en_IE.UTF-8, LC_CTYPE=en_IE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) Versions of packages dpkg depends on: ii libbz2-1.0 1.0.6-8 ii libc6 2.22-13 ii liblzma5 5.1.1alpha+20120614-2.1 ii libselinux1 2.5-3 ii tar 1.29-1 ii zlib1g 1:1.2.8.dfsg-2+b1 dpkg recommends no packages. Versions of packages dpkg suggests: ii apt 1.3~exp3 -- no debconf information -- Debian Developer - deb.li/jak | jak-linux.org - free software dev When replying, only quote what is necessary, and write each reply directly below the part(s) it pertains to (`inline'). Thank you.