[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#2603: dpkg-1.1.3 seg fault when installing xterm-color



Package: dpkg
Version: 1.1.3

  when I installed xterm-color release 3.1.2-4 using dpkg-1.1.3, dpkg produced
a segmentation fault.
Apparently, the bug is in the diversion database analysis, when there is more
than one entry in /var/lib/dpkg/diversions.
I built a little package which provides two diversions, and, when I tried to
remove it from my installation, dpkg seg fault identically.
I have included the last lines of strace on dpkg below.

stat("/var/lib/dpkg/tmp.ci/preinst", {st_mode=S_IFREG|0755, st_size=156, ...}) = 0
fork()                                  = 1287
sigaction(SIGQUIT, {SIG_IGN}, {SIG_DFL}) = 0
sigaction(SIGINT, {SIG_IGN}, {SIG_DFL}) = 0
wait4(1287, [WIFEXITED(s) && WEXITSTATUS(s) == 0], 0, NULL) = 1287
sigaction(SIGQUIT, {SIG_DFL}, NULL)     = 0
sigaction(SIGINT, {SIG_DFL}, NULL)      = 0
open("/var/lib/dpkg/diversions", O_RDONLY) = 6
fstat(5, {st_mode=S_IFREG|0644, st_size=84, ...}) = 0
fstat(6, {st_mode=S_IFREG|0644, st_size=143, ...}) = 0
close(5)                                = 0
fstat(6, {st_mode=S_IFREG|0644, st_size=143, ...}) = 0
read(6, "/tmp/foo\n/tmp/bar\nlocal\n/tmp/"..., 4096) = 50
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++

--
 Eric Delaunay                 | Vends corbillard d'occasion : levier de
 delaunay@lix.polytechnique.fr | vitesse bloque' au point mort -- Pierre Dac



Reply to: