Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 01 Oct 2013 14:11:20 +0300
From:      Artyom Mirgorodskiy <artyom.mirgorodsky@gmail.com>
To:        Hans Petter Selasky <hans.petter.selasky@bitfrost.no>
Cc:        "freebsd-current@freebsd.org" <freebsd-current@freebsd.org>
Subject:   Re: gphoto2 bus error
Message-ID:  <2203393.ZaYDNWG94H@notebook.alkar.net>
In-Reply-To: <524AA6A3.6050203@bitfrost.no>
References:  <1430354.OSvlCO8lK8@notebook.alkar.net> <60028529.ObLm6B0bQB@notebook.alkar.net> <524AA6A3.6050203@bitfrost.no>

next in thread | previous in thread | raw e-mail | index | archive | help
I removed old libraries:

ls /usr/lib/libusb*
/usr/lib/libusb.a        /usr/lib/libusb_p.a      /usr/lib/libusbhid.so.4
/usr/lib/libusb.so@      /usr/lib/libusbhid.a     /usr/lib/libusbhid_p.a
/usr/lib/libusb.so.3     /usr/lib/libusbhid.so@

and reinstall gphoto2 and libgphoto2
and have the same result :(

gdb /usr/local/bin/gphoto2
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "amd64-marcel-freebsd"...(no debugging symbols found)...
(gdb) run --shell
Starting program: /usr/local/bin/gphoto2 --shell
(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...[New LWP 100223]
[New Thread 802806400 (LWP 100223/gphoto2)]
                                                                                
Program received signal SIGBUS, Bus error.
[Switching to Thread 802806400 (LWP 100223/gphoto2)]
0x0000000801553597 in pthread_mutex_destroy () from /lib/libthr.so.3
(gdb) bt
#0  0x0000000801553597 in pthread_mutex_destroy () from /lib/libthr.so.3
#1  0x00000008040083cd in libusb_free_device_list () from /usr/lib/libusb.so.3
#2  0x0000000803801a2a in gp_port_usb_exit (port=<value optimized out>)
    at libusb1.c:275
#3  0x0000000801136763 in gp_port_free (port=0x80286d280) at gphoto2-port.c:124
#4  0x0000000800ebd6a9 in gp_abilities_list_detect (list=0x802869080, 
    info_list=0x802869050, l=0x8028ec000, context=0x45)
    at gphoto2-abilities-list.c:488
#5  0x000000000040673a in ?? ()
#6  0x000000000040772f in ?? ()
#7  0x0000000800636000 in ?? ()
#8  0x0000000000000000 in ?? ()


On Tuesday 01 October 2013 12:40:35 Hans Petter Selasky wrote:
> On 10/01/13 12:24, Artyom Mirgorodskiy wrote:
> > ls /usr/lib/libusb*
> > /usr/lib/libusb.a        /usr/lib/libusb.so.3     /usr/lib/libusbhid.so@
> > /usr/lib/libusb.so@      /usr/lib/libusb_p.a      /usr/lib/libusbhid.so.4
> > /usr/lib/libusb.so.2     /usr/lib/libusbhid.a     /usr/lib/libusbhid_p.a
> 
> Hi,
> 
> I see you have two versions of libusb installed.
> 
> You probably need to delete some of the older libraries using the "make 
> delete-old-libs" and beware you maybe need to rebuild all ports after 
> that! I think gphoto uses libusb.so.2 while you have installed the 
> header file for libusb.so.3. Check that first.
> 
> gphoto2 --auto-detect
> 
> and
> 
> gphoto2 --shell
> 
> does not crash over here. Let me know if this is still an issue after 
> cleaning out old libraries and files from your system.
> 
> Thank you!
> 
> --HPS
-- 
Artyom Mirgorodskiy



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2203393.ZaYDNWG94H>