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

Bug#829651: libapt-pkg5.0: segfault at 30 ip … sp … error 4 in libapt-pkg.so.5.0.0



Package: libapt-pkg5.0
Version: 1.2.14

Hi,

by accident I found these two lines in dmesg just now:

[3880700.754578] apt-get[29062]: segfault at 30 ip 00007fd1a0b76181 sp 00007fff604076c0 error 4 in libapt-pkg.so.5.0.0[7fd1a0aac000+16e000]
[3880731.329977] apt-get[29438]: segfault at 30 ip 00007fbc3d48e181 sp 00007ffe360517a0 error 4 in libapt-pkg.so.5.0.0[7fbc3d3c4000+16e000]

Luckily I have corekeeper installed, so I can provide you with
backtraces:

Core was generated by `apt-get indextargets --format $(CREATED_BY) $(ARCHITECTURE) $(SUITE) $(FILENAME'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  pkgCache::RlsFileBegin (this=0x0) at ../build/include/apt-pkg/pkgcache.h:799
799     ../build/include/apt-pkg/pkgcache.h: No such file or directory.
(gdb) bt
#0  pkgCache::RlsFileBegin (this=0x0) at ../build/include/apt-pkg/pkgcache.h:799
#1  debReleaseIndex::FindInCache (this=<optimized out>, Cache=..., ModifyCheck=<optimized out>)
    at /build/apt-wHz6zS/apt-1.2.14/apt-pkg/deb/debmetaindex.cc:778
#2  0x000055dc500b6738 in DoIndexTargets (CmdL=...) at /build/apt-wHz6zS/apt-1.2.14/cmdline/apt-get.cc:266
#3  0x00007fd1a0b46be6 in CommandLine::DispatchArg (this=0x7fff60407da0, Map=<optimized out>, NoMatch=NoMatch@entry=true)
    at /build/apt-wHz6zS/apt-1.2.14/apt-pkg/contrib/cmndline.cc:369
#4  0x00007fd1a086f263 in DispatchCommandLine (CmdL=..., Cmds=...) at /build/apt-wHz6zS/apt-1.2.14/apt-private/private-cmndline.cc:511
#5  0x000055dc500b3b19 in main (argc=<optimized out>, argv=0x7fff60407ee8) at /build/apt-wHz6zS/apt-1.2.14/cmdline/apt-get.cc:446

Core was generated by `apt-get indextargets --format $(CREATED_BY) $(ARCHITECTURE) $(SUITE) $(FILENAME'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  pkgCache::RlsFileBegin (this=0x0) at ../build/include/apt-pkg/pkgcache.h:799
799     ../build/include/apt-pkg/pkgcache.h: No such file or directory.
(gdb) bt
#0  pkgCache::RlsFileBegin (this=0x0) at ../build/include/apt-pkg/pkgcache.h:799
#1  debReleaseIndex::FindInCache (this=<optimized out>, Cache=..., ModifyCheck=<optimized out>)
    at /build/apt-wHz6zS/apt-1.2.14/apt-pkg/deb/debmetaindex.cc:778
#2  0x0000558abcfa1738 in DoIndexTargets (CmdL=...) at /build/apt-wHz6zS/apt-1.2.14/cmdline/apt-get.cc:266
#3  0x00007fbc3d45ebe6 in CommandLine::DispatchArg (this=0x7ffe36051e80, Map=<optimized out>, NoMatch=NoMatch@entry=true)
    at /build/apt-wHz6zS/apt-1.2.14/apt-pkg/contrib/cmndline.cc:369
#4  0x00007fbc3d187263 in DispatchCommandLine (CmdL=..., Cmds=...) at /build/apt-wHz6zS/apt-1.2.14/apt-private/private-cmndline.cc:511
#5  0x0000558abcf9eb19 in main (argc=<optimized out>, argv=0x7ffe36051fc8) at /build/apt-wHz6zS/apt-1.2.14/cmdline/apt-get.cc:446

Looks like twice the same issue.

Not sure what called these commands (maybe it was apprec from the
package apprecommender) as they were run under my personal user id
(1000), but I've not run them on purpose. (And if I do so, they do not
crash. And if I run apprec again, I get no new segfault or core dump. So
maybe it was something else.)

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (600, 'testing'), (500, 'unstable-debug'), (500, 'buildd-unstable'), (110, 'experimental'), (1, 'experimental-debug'), (1, 'buildd-experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.6.0-trunk-amd64 (SMP w/8 CPU cores)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages libapt-pkg5.0 depends on:
ii  libbz2-1.0  1.0.6-8
ii  libc6       2.23-1
ii  libgcc1     1:6.1.1-8
ii  liblz4-1    0.0~r131-2
ii  liblzma5    5.1.1alpha+20120614-2.1
ii  libstdc++6  6.1.1-8
ii  zlib1g      1:1.2.8.dfsg-2+b1

Versions of packages libapt-pkg5.0 recommends:
ii  apt  1.2.14

libapt-pkg5.0 suggests no packages.

-- no debconf information


Reply to: