Bug#537541: aptitude: segmentation fault

2009-07-22 Thread Daniel Burrows
On Mon, Jul 20, 2009 at 01:49:36PM -0700, Bill Wohler woh...@newt.com was 
heard to say:
 Daniel Burrows dburr...@debian.org wrote:
 
I have no idea what's causing these symptoms.  A backtrace from an
  affected system (or maybe a state snapshot generated by
  aptitude-create-state-bundle) would be helpful.
 
 Thanks, Daniel. I happened to run aptitude-create-state-bundle before I
 fixed the problem by running apt-get -f install twice. No backtraces
 at this time, sorry.
 
   http://www.newt.com/tmp/aptitude-537541.bz2
 
 Let me know if you'd like to see another snapshot made now for comparison.

  It sounds from your comments on debian-user like your problem was
just bad RAM, and just to confirm that, I can't reproduce it with this
snapshot.

  Daniel



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#537541: aptitude: segmentation fault

2009-07-22 Thread Bill Wohler
Daniel Burrows dburr...@debian.org wrote:

 On Mon, Jul 20, 2009 at 01:49:36PM -0700, Bill Wohler woh...@newt.com was 
 heard to say:
  Daniel Burrows dburr...@debian.org wrote:
  
 I have no idea what's causing these symptoms.  A backtrace from an
   affected system (or maybe a state snapshot generated by
   aptitude-create-state-bundle) would be helpful.
  
  Thanks, Daniel. I happened to run aptitude-create-state-bundle before I
  fixed the problem by running apt-get -f install twice. No backtraces
  at this time, sorry.
  
http://www.newt.com/tmp/aptitude-537541.bz2
  
  Let me know if you'd like to see another snapshot made now for comparison.
 
   It sounds from your comments on debian-user like your problem was
 just bad RAM, and just to confirm that, I can't reproduce it with this
 snapshot.

Thanks. Given that the problem doesn't appear for David when he uses
strace, maybe he's got bad memory too!

David, maybe you confirm this by installing and running memtest86+. I
found I had to run update-grub after installing it. Then just reboot and
select it from the grub menu. Easy.

-- 
Bill Wohler woh...@newt.com  http://www.newt.com/wohler/  GnuPG ID:610BD9AD



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#537541: aptitude: segmentation fault

2009-07-20 Thread Daniel Burrows
On Sun, Jul 19, 2009 at 02:51:06PM -0700, Bill Wohler woh...@newt.com was 
heard to say:
 Any ideas on how I got into this situation? The only unusual thing I did
 was uninstall some packages that were recommended after selecting
 blueman for installation in aptitude. This was mostly just
 python-all-dev, I think, which just wanted to install python 2.4 which
 seems unnecessary since python 2.5 is installed.

  I have no idea what's causing these symptoms.  A backtrace from an
affected system (or maybe a state snapshot generated by
aptitude-create-state-bundle) would be helpful.

  Daniel



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#537541: aptitude: segmentation fault

2009-07-20 Thread Bill Wohler
Daniel Burrows dburr...@debian.org wrote:

   I have no idea what's causing these symptoms.  A backtrace from an
 affected system (or maybe a state snapshot generated by
 aptitude-create-state-bundle) would be helpful.

Thanks, Daniel. I happened to run aptitude-create-state-bundle before I
fixed the problem by running apt-get -f install twice. No backtraces
at this time, sorry.

  http://www.newt.com/tmp/aptitude-537541.bz2

Let me know if you'd like to see another snapshot made now for comparison.

-- 
Bill Wohler woh...@newt.com  http://www.newt.com/wohler/  GnuPG ID:610BD9AD



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#537541: aptitude: segmentation fault on start up (on armel)

2009-07-19 Thread David K Jackson
Package: aptitude
Version: 0.4.11.11-1~lenny1
Severity: grave
Justification: renders package unusable


aptitude segmentation faults on start up, as root or normal user, on my armel 
machine.
apt-get and other apt utilities seem fine.
Weirdly when I use strace I no longer get the segmentation fault and aptitude 
will run.

da...@thaney:~$ strace -o /tmp/strace_aptitude_user.out aptitude update
E: Could not open lock file /var/lib/apt/lists/lock - open (13 Permission 
denied)
E: Couldn't lock list directory..are you root?
da...@thaney:~$ aptitude update
Segmentation fault
da...@thaney:~$ su -
Password:
thaney:~# apt-get -q -q update ; apt-get -q -q upgrade
thaney:~# aptitude -q -q update ;
Segmentation fault
thaney:~# strace -o /tmp/strace_aptitude_root.out aptitude -q -q update ;
Reading package lists...
thaney:~# strace -o /tmp/strace_aptitude_root.out  aptitude -q -q safe-upgrade
Reading package lists...
Building dependency tree...
Reading state information...
Reading extended state information...
Initializing package states...
Reading task descriptions...
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Reading package lists...
Building dependency tree...
Reading state information...
Reading extended state information...
Initializing package states...
Reading task descriptions...
thaney:~# aptitude -q -q safe-upgrade
Segmentation fault

Not sure what else I can provide to be useful
Good (bug) hunting!
David

-- Package-specific info:
libapt-pkg-libc6.7-6.so.4.6 = /usr/lib/libapt-pkg-libc6.7-6.so.4.6 
(0x40026000)
libncursesw.so.5 = /lib/libncursesw.so.5 (0x400d8000)
libsigc-2.0.so.0 = /usr/lib/libsigc-2.0.so.0 (0x4011a000)
libcwidget.so.3 = /usr/lib/libcwidget.so.3 (0x40126000)
libept.so.0 = /usr/lib/libept.so.0 (0x401de000)
libxapian.so.15 = /usr/lib/libxapian.so.15 (0x4024f000)
libz.so.1 = /usr/lib/libz.so.1 (0x40391000)
libpthread.so.0 = /lib/libpthread.so.0 (0x403ad000)
libstdc++.so.6 = /usr/lib/libstdc++.so.6 (0x403cb000)
libm.so.6 = /lib/libm.so.6 (0x404a6000)
libgcc_s.so.1 = /lib/libgcc_s.so.1 (0x40553000)
libc.so.6 = /lib/libc.so.6 (0x40567000)
libutil.so.1 = /lib/libutil.so.1 (0x4068f000)
libdl.so.2 = /lib/libdl.so.2 (0x4069a000)
/lib/ld-linux.so.3 (0x4000)
Terminal: xterm
$DISPLAY not set.
`which aptitude`: /usr/bin/aptitude
aptitude version information:

aptitude linkage:

-- System Information:
Debian Release: 5.0.2
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: armel (armv5tel)

Kernel: Linux 2.6.26-2-orion5x
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages aptitude depends on:
ii  apt [libapt-pkg-libc6. 0.7.20.2+lenny1   Advanced front-end for dpkg
ii  libc6  2.7-18GNU C Library: Shared libraries
ii  libcwidget30.5.12-4  high-level terminal interface libr
ii  libept00.5.22High-level library for managing De
ii  libgcc11:4.3.2-1.1   GCC support library
ii  libncursesw5   5.7+20081213-1shared libraries for terminal hand
ii  libsigc++-2.0-0c2a 2.0.18-2  type-safe Signal Framework for C++
ii  libstdc++6 4.3.2-1.1 The GNU Standard C++ Library v3
ii  libxapian151.0.7-4   Search engine library
ii  zlib1g 1:1.2.3.3.dfsg-12 compression library - runtime

Versions of packages aptitude recommends:
pn  aptitude-doc-en | aptitude-do none (no description available)
pn  libparse-debianchangelog-perl none (no description available)

Versions of packages aptitude suggests:
pn  debtags   none (no description available)
ii  tasksel   2.78   Tool for selecting tasks for insta

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#537541: aptitude: segmentation fault

2009-07-19 Thread Bill Wohler
Package: aptitude
Version: 0.4.11.11-1~lenny1
Severity: normal

I'm seeing the same problem too after installing some software from sid.
Would love some advice on how to recover!

Here's a message I just sent to debian-user:

After making the following changes to pull in sid's bluez 4.0 package in
a lenny system, I'm now getting segmentation faults when I run dpkg and
aptitude. Any thoughts on how to recover from this?

For example:

$ sudo aptitude update
Segmentation fault

Here are some messages from /var/log/syslog:

Jul 19 13:47:38 olgas kernel: [ 1791.378162] apt-listchanges[11214]: 
segfault at 800 ip 00446702 sp 7fff1eb16f90 error 4 in 
python2.5[40+125000]
Jul 19 13:47:38 olgas kernel: [ 1791.523514] apt-listchanges[11216]: 
segfault at 1731670 ip 004d5f08 sp 7fff8060fe80 error 4 in 
python2.5[40+125000]
Jul 19 13:47:41 olgas kernel: [ 1794.964660] dpkg[11230]: segfault at 
2008 ip 0040b0c4 sp 7fff02c49040 error 4 in 
dpkg[40+61000]
Jul 19 13:48:22 olgas kernel: [ 1835.600343] aptitude[11320]: segfault at 
118 ip 00538150 sp 7fff40c13fa0 error 4 in 
aptitude[40+22a000]
Jul 19 13:53:06 olgas kernel: [ 2119.972216] aptitude[11630]: segfault at 
7f4e555e428c ip 7f38c73a3517 sp 7fffcf840c10 error 4 in 
libapt-pkg-libc6.7-6.so.4.6.0[7f38c7365000+bd000]

Here's a trimmed excerpt from /var/log/aptitude:

Aptitude 0.4.11.11: log report
Sun, Jul 19 2009 12:33:18 -0700

[INSTALL, DEPENDENCIES] libbluetooth3
[INSTALL, DEPENDENCIES] libnl1
[INSTALL] bluez
[UPGRADE] bluez-utils 3.36-3 - 4.42-2

Aptitude 0.4.11.11: log report
Sun, Jul 19 2009 12:51:29 -0700

[INSTALL, DEPENDENCIES] consolekit
[INSTALL, DEPENDENCIES] libck-connector0
[INSTALL, DEPENDENCIES] libpam-ck-connector
[INSTALL, DEPENDENCIES] libpolkit-dbus2
[INSTALL, DEPENDENCIES] libpolkit-gnome0
[INSTALL, DEPENDENCIES] libpolkit-grant2
[INSTALL, DEPENDENCIES] libpolkit2
[INSTALL, DEPENDENCIES] libxcb-atom1
[INSTALL, DEPENDENCIES] libxcb-aux0
[INSTALL, DEPENDENCIES] libxcb-event1
[INSTALL, DEPENDENCIES] obex-data-server
[INSTALL, DEPENDENCIES] policykit
[INSTALL, DEPENDENCIES] policykit-gnome
[INSTALL, DEPENDENCIES] python-pyrex
[REMOVE, DEPENDENCIES] bluez-gnome
[REMOVE, DEPENDENCIES] libxcb-xlib0
[REMOVE, DEPENDENCIES] libxcb-xlib0-dev
[INSTALL] blueman
[UPGRADE] libstartup-notification0 0.9-1 - 0.10-1
[UPGRADE] libx11-6 2:1.1.5-2 - 2:1.2.1-1
[UPGRADE] libx11-dev 2:1.1.5-2 - 2:1.2.1-1
[UPGRADE] libxcb1 1.1-1.2 - 1.3-2
[UPGRADE] libxcb1-dev 1.1-1.2 - 1.3-2


-- Package-specific info:
aptitude 0.4.11.11 compiled at Dec  5 2008 09:06:14
Compiler: g++ 4.3.2
Compiled against:
  apt version 4.6.0
  NCurses version 5.6
  libsigc++ version: 2.0.18
  Ept support enabled.

Current library versions:
  NCurses version: ncurses 5.7.20081213
  cwidget version: 0.5.12
  Apt version: 4.6.0
linux-vdso.so.1 =  (0x7fff89bff000)
libapt-pkg-libc6.7-6.so.4.6 = /usr/lib/libapt-pkg-libc6.7-6.so.4.6 
(0x7f96815a3000)
libncursesw.so.5 = /lib/libncursesw.so.5 (0x7f9681358000)
libsigc-2.0.so.0 = /usr/lib/libsigc-2.0.so.0 (0x7f9681153000)
libcwidget.so.3 = /usr/lib/libcwidget.so.3 (0x7f9680e8)
libept.so.0 = /usr/lib/libept.so.0 (0x7f9680c07000)
libxapian.so.15 = /usr/lib/libxapian.so.15 (0x7f968089d000)
libz.so.1 = /usr/lib/libz.so.1 (0x7f9680686000)
libpthread.so.0 = /lib/libpthread.so.0 (0x7f968046a000)
libstdc++.so.6 = /usr/lib/libstdc++.so.6 (0x7f968015e000)
libm.so.6 = /lib/libm.so.6 (0x7f967fedb000)
libgcc_s.so.1 = /lib/libgcc_s.so.1 (0x7f967fcc4000)
libc.so.6 = /lib/libc.so.6 (0x7f967f971000)
libutil.so.1 = /lib/libutil.so.1 (0x7f967f76e000)
libdl.so.2 = /lib/libdl.so.2 (0x7f967f56a000)
/lib64/ld-linux-x86-64.so.2 (0x7f9681864000)
$TERM not set.
$DISPLAY is set.
`which aptitude`: /usr/bin/aptitude
aptitude version information:

aptitude linkage:

-- System Information:
Debian Release: 5.0.2
  APT prefers stable
  APT policy: (600, 'stable'), (80, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.28-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages aptitude depends on:
ii  apt [libapt-pkg-libc6. 0.7.20.2+lenny1   Advanced front-end for dpkg
ii  libc6  2.7-18GNU C Library: Shared libraries
ii  libcwidget30.5.12-4  high-level terminal interface libr
ii  libept00.5.22High-level library for managing De
ii  libgcc11:4.3.2-1.1   GCC support library
ii  libncursesw5   5.7+20081213-1shared libraries for terminal hand
ii  libsigc++-2.0-0c2a 2.0.18-2  type-safe Signal Framework for 

Bug#537541: aptitude: segmentation fault

2009-07-19 Thread Bill Wohler
Most excellent! I found a workaround. First run apt-get -f install and
get the segmentation fault again:

$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree   
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Segmentation fault

However, run it again, and smile when you don't see the segmentation fault!

$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree   
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Indeed, I can now continue on with what I was doing with aptitude:

$ sudo aptitude install
Reading package lists... Done
Building dependency tree   
Reading state information... Done
Reading extended state information  
Initializing package states... Done
Reading task descriptions... Done  
The following NEW packages will be installed:
  bluez-compat [4.42-2]  
0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/80.3kB of archives. After unpacking 242kB will be used.
Do you want to continue? [Y/n/?] 

Phew!

Any ideas on how I got into this situation? The only unusual thing I did
was uninstall some packages that were recommended after selecting
blueman for installation in aptitude. This was mostly just
python-all-dev, I think, which just wanted to install python 2.4 which
seems unnecessary since python 2.5 is installed.

-- 
Bill Wohler woh...@newt.com  http://www.newt.com/wohler/  GnuPG ID:610BD9AD



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org