Comment 12 for bug 352271

Revision history for this message
fuxter (fuxter) wrote : Re: print-camera-list crashed with SIGSEGV in try_dlopen()

Hi Martin,

here are outputs:

(gdb) run
Starting program: /usr/lib/libgphoto2/print-camera-list hal-fdi

Program received signal SIGSEGV, Segmentation fault.
0x6c2f6c61 in ?? ()
(gdb) bt full
#0 0x6c2f6c61 in ?? ()
No symbol table info available.
#1 0xb7e7514b in try_dlopen (phandle=0xbff3a808, filename=0x94da090 "dlopen.a", ext=0x94da0a6 ".a", advise=0x0) at libltdl/ltdl.c:1430
 saved_error = 0x0
 canonical = 0x0
 base_name = 0x94da0a0 "dlopen.a"
 dir = 0x0
 name = 0x94da0e8 "dlopen"
 attempt = 0x94da090 "dlopen.a"
 errors = -1074550704
 newhandle = (lt_dlhandle) 0x94da0b0
 __PRETTY_FUNCTION__ = "try_dlopen"
#2 0xb7e75730 in lt_dlopenadvise (filename=0xb7e76f82 "dlopen.a", advise=0x0) at libltdl/ltdl.c:1607
 handle = (lt_dlhandle) 0x94da0b0
 errors = <value optimized out>
#3 0xb7e758f5 in lt_dlopen (filename=0xb7e76f82 "dlopen.a") at libltdl/ltdl.c:1563
No locals.
#4 0xb7e71e92 in lt_dlpreload_open (originator=0xb7e76c58 "libltdl", func=0xb7e75ce0 <loader_init_callback>) at libltdl/loaders/preopen.c:353
 handle = <value optimized out>
 symbol = <value optimized out>
 list = (symlist_chain *) 0x94da070
 errors = 0
 found = 0
#5 0xb7e75cd1 in lt_dlinit () at libltdl/ltdl.c:237
 errors = <value optimized out>
#6 0xb7e87aa7 in gp_abilities_list_load_dir (list=0x94da028, dir=0xb7ea002e "/usr/lib/libgphoto2/2.4.2", context=0x0) at gphoto2-abilities-list.c:212
 id = (CameraLibraryIdFunc) 0
 ab = (CameraLibraryAbilitiesFunc) 0
 text = {
  text = '\0' <repeats 32208 times>, "0\030̷\020ii\r0'������\036�̷\036�̷\000\000\000\000\000\000\000\000�\202˷\002", '\0' <repeats 15 times>, "�/�� ̷\020ii\rh'������\036�̷�c��x'��h\232��0\237��\002\000��hM���c��t\232���/��\224\236��\a\000\000\000�'������\224\236��\a\000\000\000\000\000\000\000����\001\000\000\000H����'���/���`\207��\232��\005;�\a\t\000\000\000\020�˷\020�˷�\025l\000\t", '\0' <repeats 11 times>...}
 ret = 0
 x = 0
 old_count = 0
 new_count = 0
 i = 0
 p = 0
 filename = 0x0
 flist = (CameraList *) 0xb7ab6008
---Type <return> to continue, or q <return> to quit---
 count = 58
 lh = (lt_dlhandle) 0x0
#7 0xb7e87f13 in gp_abilities_list_load (list=0x94da028, context=0x0) at gphoto2-abilities-list.c:319
 r = 0
 camlib_env = 0x0
 camlibs = 0xb7ea002e "/usr/lib/libgphoto2/2.4.2"
#8 0x0804a282 in iterate_camera_list (add_comments=0, format=0x804be98, argv=0x804e0e0) at print-camera-list.c:1047
 number_of_cameras = 0
 al = (CameraAbilitiesList *) 0x94da028
 a = {
  model = "\000\000\000\000 0��", '\0' <repeats 12 times>, "\020\230��", '\0' <repeats 12 times>, "����\000\000\000\000\030\235���>��\f*��hM���>��$\235���/���\232��w\a\000\000\234,��6����>䷧���", '\0' <repeats 20 times>, "�>��\000\000\000\000\000\000\000", status = GP_DRIVER_STATUS_PRODUCTION,
  port = GP_PORT_NONE, speed = {-1208733664, 0, 0, 0, -1209559712, 0, -1208784690, 0, -1209930073, 0, 0, 0, 0, -1209558336, -1074517288, -1208732232,
    -1209612795, -1074517340, -1208791704, -1209612795, -1208851062, -1208733708, -1208733024, -1074515456, -1074516684, -1208822474, -1209612805,
    -1209930073, -1209559024, -1074516752, -1208825934, 0, 1425408, -1209612795, 1421812, 0, 5, 1429504, -1208733664, 1440124, 1451632, 0, -1209560392, 0,
    0, 0, -1209930073, -1208766527, -1208733708, 622, -1209557736, -1209592998, -1074517200, -1208791704, -1209592998, -1209557724, -1208733708,
    -1209558336, 1911, -1074516544, -1208822474, -1209592998, -1209930073, -1208810897}, operations = 3085409584, file_operations = 3085408928,
  folder_operations = 29, usb_vendor = 1, usb_product = -1209592998, usb_class = 134514366, usb_subclass = -1209558368, usb_protocol = -1208816804,
  library = "\030\235�� 0��\035\000\000\0000\235��\000\000\000\000\000\220��\000\000\000\000�\232���/���\232��\0002���+���6��\001", '\0' <repeats 31 times>, "�6��\234,��6@��\0002��\000\000\000\000\n\000\000\000����#2��\0342��\0302���5�� 0���*��\000\000\000\000\000\000\000\000�/��\0002���6��\234,���+��\031@���/��\020\230��\0002��D,���6��\001", '\0' <repeats 31 times>, "�6��$-��6@��\0002��\000\000\000\000\002\000"...,
  id = "H���\220/��\000\000\000\000\207�\226|�\232��\204��\003\t\000\000\000\020�˷��˷\000\000\000\000����", '\0' <repeats 12 times>, "�\b\000\000`\204˷�\232��\205e�� \\̷�b��\001\000\000\000�/��\207�\226|(8���0�������0���b��\2240���7��\000\000\000\000`\204˷\000\000\000\000\000\000\000\000\001\000\000\000\020\230���\232��\000\000\000\000#2���/��\0002���0��\2240���/��\031@��#2�� 2���2��\205e���0��\000\000"..., device_type = 3085008884, reserved2 = 134523120,
  reserved3 = 134515488, reserved4 = -1074515000, reserved5 = -1208772176, reserved6 = -1074514976, reserved7 = -1210908560, reserved8 = -1074514258}
 params = {number_of_cameras = -1209930083, add_comments = -1209930073, argc = 0, argv = 0x0}
 data = (void *) 0x0
 ret = -1209930083
#9 0x0804a8c9 in main (argc=2, argv=0xbff43464) at print-camera-list.c:1260
 add_comments = 0
 debug_mode = 0
 format_name = 0xbff436ae "hal-fdi"
 format_index = 2
 i = 2
 j = 2
 ui = 16
 fmt_argv = {0x0 <repeats 16 times>}
(gdb)

$ LANG=C dpkg -l libltdl\*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-=================================-=================================-==================================================================================
un libltdl3 <none> (no description available)
un libltdl3-dev <none> (no description available)
ii libltdl7 2.2.6a-1ubuntu1 A system independent dlopen wrapper for GNU libtool
ii libltdl7-dev 2.2.6a-1ubuntu1 A system independent dlopen wrapper for GNU libtool

$ ldd /usr/lib/libgphoto2.so.2
 linux-gate.so.1 => (0xb7f22000)
 libgphoto2_port.so.0 => /usr/lib/libgphoto2_port.so.0 (0xb7e77000)
 libltdl.so.7 => /usr/local/lib/libltdl.so.7 (0xb7e6e000)
 libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7e69000)
 libexif.so.12 => /usr/lib/libexif.so.12 (0xb7e3f000)
 libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7e19000)
 libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7cb6000)
 /lib/ld-linux.so.2 (0xb7f23000)

hope, it'll help. )