apt-get assert failure: *** buffer overflow detected ***: apt-get terminated

Bug #1307773 reported by Kai Kasurinen
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apt (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

...

ProblemType: Crash
DistroRelease: Ubuntu 14.04
Package: apt 1.0.1ubuntu2
ProcVersionSignature: Ubuntu 3.13.0-24.46-generic 3.13.9
Uname: Linux 3.13.0-24-generic x86_64
ApportVersion: 2.14.1-0ubuntu2
Architecture: amd64
AssertionMessage: *** buffer overflow detected ***: apt-get terminated
Date: Tue Apr 15 04:32:04 2014
EcryptfsInUse: Yes
ExecutablePath: /usr/bin/apt-get
InstallationDate: Installed on 2012-12-22 (478 days ago)
InstallationMedia: Ubuntu 12.04.1 LTS "Precise Pangolin" - Release amd64 (20120823.1)
ProcCmdline: apt-get build-dep apt
Signal: 6
SourcePackage: apt
StacktraceTop:
 __libc_message (do_abort=do_abort@entry=2, fmt=fmt@entry=0x7fa897529415 "*** %s ***: %s terminated\n") at ../sysdeps/posix/libc_fatal.c:175
 __GI___fortify_fail (msg=<optimized out>, msg@entry=0x7fa8975293ac "buffer overflow detected") at fortify_fail.c:37
 __GI___chk_fail () at chk_fail.c:28
 __fdelt_chk (d=<optimized out>) at fdelt_chk.c:25
 WaitFd(int, bool, unsigned long) () from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12
SystemImageInfo: Error: [Errno 2] No such file or directory: 'system-image-cli'
Title: apt-get assert failure: *** buffer overflow detected ***: apt-get terminated
UpgradeStatus: Upgraded to trusty on 2013-06-19 (299 days ago)
UserGroups:

Revision history for this message
Kai Kasurinen (kai-kasurinen) wrote :
Revision history for this message
Apport retracing service (apport) wrote :

StacktraceTop:
 __libc_message (do_abort=do_abort@entry=2, fmt=fmt@entry=0x7fa897529415 "*** %s ***: %s terminated\n") at ../sysdeps/posix/libc_fatal.c:175
 __GI___fortify_fail (msg=<optimized out>, msg@entry=0x7fa8975293ac "buffer overflow detected") at fortify_fail.c:37
 __GI___chk_fail () at chk_fail.c:28
 __fdelt_chk (d=<optimized out>) at fdelt_chk.c:25
 WaitFd (Fd=1365, write=<optimized out>, timeout=0) at contrib/fileutl.cc:697

Revision history for this message
Apport retracing service (apport) wrote : Stacktrace.txt
Revision history for this message
Apport retracing service (apport) wrote : StacktraceSource.txt
Revision history for this message
Apport retracing service (apport) wrote : ThreadStacktrace.txt
Changed in apt (Ubuntu):
importance: Undecided → Medium
tags: removed: need-amd64-retrace
Revision history for this message
Kai Kasurinen (kai-kasurinen) wrote :

related to bug #1089070

information type: Private → Public
Revision history for this message
Michael Vogt (mvo) wrote :

Hello Kai, is this problem reproducable? If so, could you please send me your /etc/apt/* directory so that I can try to debug the bug?

Changed in apt (Ubuntu):
status: New → Incomplete
Revision history for this message
Kai Kasurinen (kai-kasurinen) wrote :

big sources.list generated for demonstration purposes

Revision history for this message
Kai Kasurinen (kai-kasurinen) wrote :

with attached 1307773.list I get:
 - "Too many open files" & "E: Failed to process build dependencies" when max open files is 1024
- "buffer overflow" when max open files is 2048

Revision history for this message
Michael Vogt (mvo) wrote :

I can confirm that crash with this sources.list.

Changed in apt (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Michael Vogt (mvo) wrote :

Looks like its time to replace select() with poll() in apt to fix this issue.

Changed in apt (Ubuntu):
status: Confirmed → Triaged
Revision history for this message
Michael Vogt (mvo) wrote :

This branch https://github.com/mvo5/apt/tree/bugfix/use-poll should fix the segfault. It needs some more work for the non-linux pattforms, i.e. systems with no ppoll() implementation like freebsd or hurd.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.