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

Re: seemingly reproducable dpkg segfault



Since this has been placed in my bug file, and I now have the disc space
to actually try it..

Lets investigate a bit here.

Following Shaleh's method yeilds a fairly rapid dpkg segfault as
predicted. However the possibility of an APT bug, due to some weirdo
argument handling is easially disproved.. I copied /bin/echo over dpkg,
disabled debconf and ran the install.

Giving:

[..]
--unpack /var/cache/apt/archives/zlib1g_1%3a1.1.3-5_i386.deb
/var/cache/apt/archives/libpng2_1.0.5-1_i386.deb
/var/cache/apt/archives/xfree86-common_3.3.6-11potato32_all.deb
/var/cache/apt/archives/xlib6g_3.3.6-11potato32_i386.deb
/var/cache/apt/archives/libaudiofile0_0.1.9-0.1_i386.deb
/var/cache/apt/archives/esound-common_0.2.17-7_all.deb
/var/cache/apt/archives/libesd0_0.2.17-7_i386.deb
/var/cache/apt/archives/esound_0.2.17-7_i386.deb
/var/cache/apt/archives/imlib-base_1.9.8-4_all.deb
/var/cache/apt/archives/libglib1.2_1.2.7-2_i386.deb
/var/cache/apt/archives/libjpeg62_6b-1.2_i386.deb
/var/cache/apt/archives/libtiff3g_3.5.4-5_i386.deb
/var/cache/apt/archives/libungif3g_3.0-3_i386.deb
/var/cache/apt/archives/gdk-imlib1_1.9.8-4_i386.deb
/var/cache/apt/archives/libgtk1.2_1.2.7-1_i386.deb
/var/cache/apt/archives/imlib-progs_1.9.8-4_i386.deb
/var/cache/apt/archives/libglib1.2-dev_1.2.7-2_i386.deb
/var/cache/apt/archives/xlib6g-dev_3.3.6-11potato32_i386.deb
/var/cache/apt/archives/libgtk1.2-dev_1.2.7-1_i386.deb
/var/cache/apt/archives/libjpeg62-dev_6b-1.2_i386.deb
[..]

For output. The echo program did not segfault. This alone is quite
convincing that this has nothing to do with buggered argument
handling in APT..

Finally, I modified dpkg so that it included this at the top of main:

  for (c = 0; c != argc; c++)
      printf("arg %u '%s'\n",c,argv[c]);

Yeilding output like:

wakko{root}/usr/bin#dpkg --status apt
arg 0 'dpkg'
arg 1 '--status'
arg 2 'apt'
[..]

And ran the little test..

arg 0 '/usr/bin/dpkg'
arg 1 '--unpack'
arg 2 '/var/cache/apt/archives/zlib1g_1%3a1.1.3-5_i386.deb'
arg 3 '/var/cache/apt/archives/libpng2_1.0.5-1_i386.deb'
arg 4 '/var/cache/apt/archives/xfree86-common_3.3.6-11potato32_all.deb'
arg 5 '/var/cache/apt/archives/xlib6g_3.3.6-11potato32_i386.deb'
arg 6 '/var/cache/apt/archives/libaudiofile0_0.1.9-0.1_i386.deb'
arg 7 '/var/cache/apt/archives/esound-common_0.2.17-7_all.deb'
arg 8 '/var/cache/apt/archives/libesd0_0.2.17-7_i386.deb'
arg 9 '/var/cache/apt/archives/esound_0.2.17-7_i386.deb'
arg 10 '/var/cache/apt/archives/imlib-base_1.9.8-4_all.deb'
arg 11 '/var/cache/apt/archives/libglib1.2_1.2.7-2_i386.deb'
arg 12 '/var/cache/apt/archives/libjpeg62_6b-1.2_i386.deb'
arg 13 '/var/cache/apt/archives/libtiff3g_3.5.4-5_i386.deb'
arg 14 '/var/cache/apt/archives/libungif3g_3.0-3_i386.deb'
arg 15 '/var/cache/apt/archives/gdk-imlib1_1.9.8-4_i386.deb'
arg 16 '/var/cache/apt/archives/libgtk1.2_1.2.7-1_i386.deb'
arg 17 '/var/cache/apt/archives/imlib-progs_1.9.8-4_i386.deb'
arg 18 '/var/cache/apt/archives/libglib1.2-dev_1.2.7-2_i386.deb'
arg 19 '/var/cache/apt/archives/xlib6g-dev_3.3.6-11potato32_i386.deb'
arg 20 '/var/cache/apt/archives/libgtk1.2-dev_1.2.7-1_i386.deb'
arg 21 '/var/cache/apt/archives/libjpeg62-dev_6b-1.2_i386.deb'
Selecting previously deselected package zlib1g.
[..]
Selecting previously deselected package libjpeg62-dev.
E: Sub-process /usr/bin/dpkg recieved a segmentation fault.

Hence, the arguments are passed in flawlessly, and dpkg still segfaults.

Jason



Reply to: