[Bug 535509] Re: apt-get always crash with Segmentation fault (core dumped) if /var/log/apt doesn't exist.
Philip Muškovac
yofel at gmx.net
Thu Jul 15 13:52:30 BST 2010
** Description changed:
Binary package hint: apt
Description: Ubuntu lucid (development branch)
Release: 10.04
apt:
- Installed: 0.7.25.3ubuntu1
- Candidate: 0.7.25.3ubuntu1
- Version table:
- *** 0.7.25.3ubuntu1 0
- 500 http://archive.ubuntu.com lucid/main Packages
- 100 /var/lib/dpkg/status
+ Installed: 0.7.25.3ubuntu1
+ Candidate: 0.7.25.3ubuntu1
+ Version table:
+ *** 0.7.25.3ubuntu1 0
+ 500 http://archive.ubuntu.com lucid/main Packages
+ 100 /var/lib/dpkg/status
- Doing: sudo apt-get dist-upgrade
+ If you try to run apt and /var/log/apt doesn't exist (because you
+ mounted /var/log as a tmpfs for example) apt will segfault at the end
+ when trying to save the logs.
- I get:
+ TEST CASE:
+ get rid of the log directory
+ $ sudo mv /var/log/apt /var/log/apt.bak
+
+ try to install/remove a package (I'll use htop here)
+ $ sudo apt-get install htop
Reading package lists... Done
- Building dependency tree
+ Building dependency tree
Reading state information... Done
- Calculating upgrade... Done
- The following packages have been kept back:
- gparted libgdal1-dev parted udisks
- The following packages will be upgraded:
- chromium-codecs-ffmpeg
- 1 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
- Need to get 293kB of archives.
- After this operation, 0B of additional disk space will be used.
- Do you want to continue [Y/n]?
- Get:1 http://ppa.launchpad.net lucid/main chromium-codecs-ffmpeg 0.5+svn20100310r41119+40991+41118-0ubuntu1~ucd1 [293kB]
- Fetched 293kB in 2s (131kB/s)
- (Reading database ... 353746 files and directories currently installed.)
- Preparing to replace chromium-codecs-ffmpeg 0.5+svn20100305r40718+40991+40985+0-0ubuntu1~ucd1 (using .../chromium-codecs-ffmpeg_0.5+svn20100310r41119+40991+41118-0ubuntu1~ucd1_i386.deb) ...
- Unpacking replacement chromium-codecs-ffmpeg ...
- Setting up chromium-codecs-ffmpeg (0.5+svn20100310r41119+40991+41118-0ubuntu1~ucd1) ...
- Segmentation fault (core dumped)
+ Suggested packages:
+ strace ltrace
+ The following NEW packages will be installed:
+ htop
+ 0 upgraded, 1 newly installed, 0 to remove and 35 not upgraded.
+ Need to get 66.1kB of archives.
+ After this operation, 217kB of additional disk space will be used.
+ Get:1 https://ftp-stud.hs-esslingen.de/ubuntu/ lucid/universe htop 0.8.3-1ubuntu1 [66.1kB]
+ Fetched 66.1kB in 1s (57.1kB/s)
+ Selecting previously deselected package htop.
+ (Reading database ... 65298 files and directories currently installed.)
+ Unpacking htop (from ../htop_0.8.3-1ubuntu1_amd64.deb) ...
+ Setting up htop (0.8.3-1ubuntu1)
- ***** Reinstalling i get the same error
-
- sudo apt-get --reinstall install chromium-codecs-ffmpeg Reading package lists... Done
- ...
- Do you want to continue [Y/n]?
- (Reading database ... 353746 files and directories currently installed.)
- Preparing to replace chromium-codecs-ffmpeg 0.5+svn20100310r41119+40991+41118-0ubuntu1~ucd1 (using .../chromium-codecs-ffmpeg_0.5+svn20100310r41119+40991+41118-0ubuntu1~ucd1_i386.deb) ...
- Unpacking replacement chromium-codecs-ffmpeg ...
- Setting up chromium-codecs-ffmpeg (0.5+svn20100310r41119+40991+41118-0ubuntu1~ucd1) ...
- Segmentation fault (core dumped)
-
- ****************************************************************
-
- sudo apt-get --reinstall install nautilus
- Reading package lists... Done
- Building dependency tree
- Reading state information... Done
- 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 4 not upgraded.
- Need to get 1,155kB of archives.
- After this operation, 0B of additional disk space will be used.
- Do you want to continue [Y/n]?
- Get:1 http://archive.ubuntu.com lucid/main nautilus 1:2.29.92-0ubuntu1 [1,155kB]
- Fetched 1,155kB in 0s (5,768kB/s)
- (Reading database ... 353746 files and directories currently installed.)
- Preparing to replace nautilus 1:2.29.92-0ubuntu1 (using .../nautilus_1%3a2.29.92-0ubuntu1_i386.deb) ...
- Unpacking replacement nautilus ...
- Processing triggers for menu ...
- Processing triggers for desktop-file-utils ...
- Processing triggers for python-gmenu ...
- Rebuilding /usr/share/applications/desktop.en_US.utf8.cache...
- Processing triggers for man-db ...
- Processing triggers for python-support ...
- Setting up nautilus (1:2.29.92-0ubuntu1) ...
-
- Processing triggers for menu ...
- Segmentation fault (core dumped)
-
-
-
-
- Hth
+ Segmentation fault
** Description changed:
Binary package hint: apt
Description: Ubuntu lucid (development branch)
Release: 10.04
apt:
Installed: 0.7.25.3ubuntu1
Candidate: 0.7.25.3ubuntu1
Version table:
*** 0.7.25.3ubuntu1 0
500 http://archive.ubuntu.com lucid/main Packages
100 /var/lib/dpkg/status
- If you try to run apt and /var/log/apt doesn't exist (because you
- mounted /var/log as a tmpfs for example) apt will segfault at the end
- when trying to save the logs.
-
+ If you try to run apt and /var/log/apt doesn't exist (because you mounted /var/log as a tmpfs for example) apt will segfault at the end when trying to save the logs.
+ The fixed package doesn't segfault anymore and tells you "E: Directory '/var/log/apt/' missing" instead.
TEST CASE:
- get rid of the log directory
+ get rid of the log directory
$ sudo mv /var/log/apt /var/log/apt.bak
try to install/remove a package (I'll use htop here)
$ sudo apt-get install htop
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
- strace ltrace
+ strace ltrace
The following NEW packages will be installed:
- htop
+ htop
0 upgraded, 1 newly installed, 0 to remove and 35 not upgraded.
Need to get 66.1kB of archives.
After this operation, 217kB of additional disk space will be used.
Get:1 https://ftp-stud.hs-esslingen.de/ubuntu/ lucid/universe htop 0.8.3-1ubuntu1 [66.1kB]
Fetched 66.1kB in 1s (57.1kB/s)
Selecting previously deselected package htop.
(Reading database ... 65298 files and directories currently installed.)
Unpacking htop (from ../htop_0.8.3-1ubuntu1_amd64.deb) ...
Setting up htop (0.8.3-1ubuntu1)
Segmentation fault
** Description changed:
Binary package hint: apt
Description: Ubuntu lucid (development branch)
Release: 10.04
apt:
Installed: 0.7.25.3ubuntu1
Candidate: 0.7.25.3ubuntu1
Version table:
*** 0.7.25.3ubuntu1 0
500 http://archive.ubuntu.com lucid/main Packages
100 /var/lib/dpkg/status
If you try to run apt and /var/log/apt doesn't exist (because you mounted /var/log as a tmpfs for example) apt will segfault at the end when trying to save the logs.
The fixed package doesn't segfault anymore and tells you "E: Directory '/var/log/apt/' missing" instead.
+
TEST CASE:
get rid of the log directory
$ sudo mv /var/log/apt /var/log/apt.bak
try to install/remove a package (I'll use htop here)
$ sudo apt-get install htop
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
strace ltrace
The following NEW packages will be installed:
htop
0 upgraded, 1 newly installed, 0 to remove and 35 not upgraded.
Need to get 66.1kB of archives.
After this operation, 217kB of additional disk space will be used.
Get:1 https://ftp-stud.hs-esslingen.de/ubuntu/ lucid/universe htop 0.8.3-1ubuntu1 [66.1kB]
Fetched 66.1kB in 1s (57.1kB/s)
Selecting previously deselected package htop.
(Reading database ... 65298 files and directories currently installed.)
Unpacking htop (from ../htop_0.8.3-1ubuntu1_amd64.deb) ...
Setting up htop (0.8.3-1ubuntu1)
Segmentation fault
** Description changed:
Binary package hint: apt
Description: Ubuntu lucid (development branch)
Release: 10.04
apt:
Installed: 0.7.25.3ubuntu1
Candidate: 0.7.25.3ubuntu1
Version table:
*** 0.7.25.3ubuntu1 0
500 http://archive.ubuntu.com lucid/main Packages
100 /var/lib/dpkg/status
- If you try to run apt and /var/log/apt doesn't exist (because you mounted /var/log as a tmpfs for example) apt will segfault at the end when trying to save the logs.
- The fixed package doesn't segfault anymore and tells you "E: Directory '/var/log/apt/' missing" instead.
+ If you try to run apt and /var/log/apt doesn't exist (because you
+ mounted /var/log as a tmpfs for example) apt will segfault at the end
+ when trying to save the logs.
+
+ The fixed package doesn't segfault anymore and tells you "E: Directory
+ '/var/log/apt/' missing" instead.
TEST CASE:
get rid of the log directory
$ sudo mv /var/log/apt /var/log/apt.bak
try to install/remove a package (I'll use htop here)
$ sudo apt-get install htop
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
strace ltrace
The following NEW packages will be installed:
htop
0 upgraded, 1 newly installed, 0 to remove and 35 not upgraded.
Need to get 66.1kB of archives.
After this operation, 217kB of additional disk space will be used.
Get:1 https://ftp-stud.hs-esslingen.de/ubuntu/ lucid/universe htop 0.8.3-1ubuntu1 [66.1kB]
Fetched 66.1kB in 1s (57.1kB/s)
Selecting previously deselected package htop.
(Reading database ... 65298 files and directories currently installed.)
Unpacking htop (from ../htop_0.8.3-1ubuntu1_amd64.deb) ...
Setting up htop (0.8.3-1ubuntu1)
Segmentation fault
--
apt-get always crash with Segmentation fault (core dumped) if /var/log/apt doesn't exist.
https://bugs.launchpad.net/bugs/535509
You received this bug notification because you are a member of Ubuntu
Review Team, which is a subscriber of a duplicate bug (506342).
More information about the Ubuntu-patch-reviews
mailing list