libgphoto2-2 segmentation fault on intrepid

Bug #301209 reported by Tom
4
Affects Status Importance Assigned to Milestone
libgphoto2 (Ubuntu)
Incomplete
Undecided
Unassigned

Bug Description

Everytime I install a package it gives libgphoto2-2 error like this. The other package will install properly so this is more like an annoying factor but I fear that something else may be bad....

Setting up libgphoto2-2 (2.4.2-0ubuntu3) ...
Segmentation fault
dpkg: error processing libgphoto2-2 (--configure):
 subprocess post-installation script returned error exit status 139
...
...
ldconfig deferred processing now taking place
Processing triggers for menu ...
Errors were encountered while processing:
 libgphoto2-2
 libsane
 hplip
 f-spot
 hpijs
 foomatic-db-hpijs
 gthumb
 gvfs-backends
 nautilus
 nautilus-cd-burner
 nautilus-share
 ubuntu-desktop
 xsane
E: Sub-process /usr/bin/dpkg returned an error code (1)

$ lsb_release -rd
Description: Ubuntu 8.10
Release: 8.10

ProblemType: Package
Architecture: i386
DistroRelease: Ubuntu 8.10
ErrorMessage: subprocess post-installation script returned error exit status 139
Package: libgphoto2-2 2.4.2-0ubuntu3
SourcePackage: libgphoto2
Title: package libgphoto2-2 2.4.2-0ubuntu3 failed to install/upgrade: subprocess post-installation script returned error exit status 139
Uname: Linux 2.6.27-7-generic i686

Revision history for this message
Tom (tom15375) wrote :
Revision history for this message
Martin Pitt (pitti) wrote :

Can you still reproduce this? If you open a terminal and run

  /usr/lib/libgphoto2/print-camera-list

does that crash? If so, please enable apport with

  sudo gedit /etc/default/apport

and set enabled=1, then

  sudo /etc/init.d/apport start

then run /usr/lib/libgphoto2/print-camera-list again, and report the crash through apport. This will file a new bug. Thanks!

Changed in libgphoto2:
status: New → Incomplete
Revision history for this message
Tom (tom15375) wrote :

I can reproduce this but not with the command above. The print-camera-list runs successfully.

1) "dpkg --audit" tells me that libgphoto2-2 isn't configured
2) "dpkg --configure libgphoto20-2" gives seg fault

tom@laptop:~$ dpkg --audit
The following packages have been unpacked but not yet configured.
They must be configured using dpkg --configure or the configure
menu option in dselect for them to work:
 libsane API library for scanners
 nautilus-share Nautilus extension to share folder using Samba
 hpijs HP Linux Printing and Imaging - gs IJS driver (hpijs)
 nautilus-cd-burner CD Burning front-end for Nautilus
 gvfs-backends userspace virtual filesystem - backends
 nautilus file manager and graphical shell for GNOME
 ubuntu-desktop The Ubuntu desktop system
 gthumb an image viewer and browser
 f-spot personal photo management application
 hplip HP Linux Printing and Imaging System (HPLIP)
 xsane featureful graphical frontend for SANE (Scanner Access No
 foomatic-db-hpijs OpenPrinting printer support - database for HPIJS driver

The following packages are only half configured, probably due to problems
configuring them the first time. The configuration should be retried using
dpkg --configure <package> or the configure menu option in dselect:
 libgphoto2-2 gphoto2 digital camera library

tom@laptop:~$ sudo dpkg --configure libgphoto2-2
Setting up libgphoto2-2 (2.4.2-0ubuntu3) ...
Segmentation fault
dpkg: error processing libgphoto2-2 (--configure):
 subprocess post-installation script returned error exit status 139
Processing triggers for libc6 ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
 libgphoto2-2

Revision history for this message
Martin Pitt (pitti) wrote :

Can you try with

   /usr/lib/libgphoto2/print-camera-list hal-fdi

instead? If that still doesn't crash, does

  sudo /usr/lib/libgphoto2/print-camera-list hal-fdi

crash? If still not (that would be very weird), please do

  sudo sh -ex /var/lib/dpkg/info/libgphoto2-2.postinst configure

and copy&paste the output here.

Revision history for this message
Tom (tom15375) wrote :

Replicated seg fault with
    /usr/lib/libgphoto2/print-camera-list hal-fdi

Attached core dump.

Revision history for this message
Martin Pitt (pitti) wrote :
Download full text (4.1 KiB)

#0 0x696c2f72 in ?? ()
No symbol table info available.
#1 0xb8002f46 in ?? ()
No symbol table info available.
#2 0xb8003505 in ?? ()
No symbol table info available.
#3 0xb80036a5 in ?? ()
No symbol table info available.
#4 0xb7fffe3c in ?? ()
No symbol table info available.
#5 0xb80039d1 in ?? ()
No symbol table info available.
#6 0xb80150ab in gp_abilities_list_load_dir (list=0x967a028,
    dir=0x967a0b0 "", context=0x0) at gphoto2-abilities-list.c:212
 text = {
  text = '\0' <repeats 32200 times>, "�G��\020ii\rp�뿨�\n�x���x���\000\000\000\000\000\000\000\000\220���\002", '\0' <repeats 15 times>, "��\v�\\n\000�\a\000\000\000����\235�\n��O��\020ii\r��뿨�\n�x���S4\001�����Hj\000�\bo\000�\002\000��H$\v�(4\001�Tj\000���\v�\\n\000�\a\000\000\0004���\235�\n�\001\000\000\000�\004\000\000\220�����\v�Dn\000���\v�\000���\235�\n��`\207��j\000�\005;�\a\t\000\000\000���"...}
 ret = 0
 x = <value optimized out>
 old_count = <value optimized out>
 new_count = <value optimized out>
 i = <value optimized out>
 p = <value optimized out>
 filename = <value optimized out>
 flist = (CameraList *) 0xb7c49008
 count = 58
 lh = <value optimized out>
#7 0xb80154f6 in gp_abilities_list_load (list=0x967a028, context=0x0)
    at gphoto2-abilities-list.c:319
 r = <value optimized out>
 camlib_env = <value optimized out>
 camlibs = 0x0
#8 0x0804a03d in iterate_camera_list (add_comments=0, format=0x804bc78,
    argv=0x804d0e0) at print-camera-list.c:1047
 number_of_cameras = <value optimized out>
 al = (CameraAbilitiesList *) 0x967a028
 a = {
  model = "\235���", '\0' <repeats 20 times>, " \000\f�\000\000\000\000\000\000\000\000�g\000�\000\000\000\000\000\000\000\000����\000\000\000\000\000\000\000\000�l\000��\036��@���H$\v��\036���l\000���\v��j\000�w\a\000\000��뿶�\n��\036����---Type <return> to continue, or q <return> to quit---
��", '\0' <repeats 15 times>, status = GP_DRIVER_STATUS_PRODUCTION,
  port = 3086819013, speed = {0, 0, 0, 0, 0, -1207173088, 0, 0, -1207933616,
    0, 0, -1208299865, 0, 0, 0, -1207932256, -1075062008, -1207173132,
    -1075061504, -1207171660, -1207982587, -1075062056, -1207229368,
    -1207982587, -1207286390, -1207173132, -1207172448, 0, -1075061400,
    -1207256650, -1207982597, -1208299865, -1207261358, -1208160200, 0,
    1409024, 1406664, -1207982587, 0, 5, 1409024, 1421312, 1419644,
    -1207173088, 1409024, 0, -1207934288, 147456, 145796, -1208299865,
    -1207204175, -1207173132, 614, 0, -1207931664, -1207962828, -1075061916,
    -1207229368, -1207962828, -1207931652, -1207173132, -1207932256, 1911,
    -1075061260}, operations = 3087710646, file_operations = 3087004468,
  folder_operations = 3086667431, usb_vendor = -1207931640,
  usb_product = -1207932288, usb_class = 29, usb_subclass = 1,
  usb_protocol = 1,
  library = "4���L�\n�\n\000\000\000\000\000\000\000\035\000\000\000\bm\000� \000\f���\v�\000\000\000\000\000`\000�\000�����\n���\v��j\000�,��������\r\v�\001", '\0' <repeats 31 times>, "�\r\v�����\026\027\v�,���\000\000\000\000\000\000\000\000u\202\000�O���H���D����\005\f�\003\000\000\000 \000\f�\000\000\000\000\000\000\000\000��\v�,�뿠\r\v����������\026\v���\v��g\000�,���x����\r\v�\001", '\0' <repeats 31 t...

Read more...

Revision history for this message
Martin Pitt (pitti) wrote :

It seems to crash in lt_dlinit(). I installed all debug symbols, but can't unfortunately get a symbolic stack trace for the topmost frames.

Can you please do

  /usr/lib/libgphoto2/print-camera-list --debug hal-fdi > /dev/null 2>/tmp/debug-output.txt

and attach /tmp/debug-output.txt here? Also, please give the output of

  ldd /usr/lib/libgphoto2/print-camera-list

Thanks!

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.