From owner-freebsd-current@FreeBSD.ORG Tue Oct 1 11:10:28 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 06D50A81 for ; Tue, 1 Oct 2013 11:10:28 +0000 (UTC) (envelope-from artyom.mirgorodsky@gmail.com) Received: from mail-ee0-x22f.google.com (mail-ee0-x22f.google.com [IPv6:2a00:1450:4013:c00::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 93B7920DE for ; Tue, 1 Oct 2013 11:10:27 +0000 (UTC) Received: by mail-ee0-f47.google.com with SMTP id d49so3298288eek.6 for ; Tue, 01 Oct 2013 04:10:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:user-agent:in-reply-to :references:mime-version:content-transfer-encoding:content-type; bh=+ZRtvOy7XYDrw4EcF5mcfUh56v348CwVc3ufIo4JMHg=; b=iM3Um6FWRWpviyaLNutOvo8/VOkCa+nzgV0LURKWD3Opy3rJVb1psqSwVm5VtHOncC YYfaSRDzWPyNtCxgK4fUXqaDC1hjsLEi9ZVFnKZ/CFhx08GlDlpVFqVopf+jFqbCpCpC zGkh0JA4N7HyQ2t/nrsLJ+BSY7p81ODJYqR0FpsnzHj2xQpZaWqt/oLPOIf01A9B6Z8H d/EOQ4B/qsY8eaxnKXvoUyE3l6tGppm2pG73c0gQfCvmMomGigY0w2C8pNuJfREqUnpz goG6fMHhq7ysUTrzHb6xFiGwYRyliC2QPSGAOUvP4p3Lwsv35ZZZFnFeZqVilRtOgVys 42Bw== X-Received: by 10.14.45.70 with SMTP id o46mr45363398eeb.19.1380625826019; Tue, 01 Oct 2013 04:10:26 -0700 (PDT) Received: from notebook.alkar.net (H241.onetel72.onetelecom.od.ua. [91.194.72.241]) by mx.google.com with ESMTPSA id d8sm12000027eeh.8.1969.12.31.16.00.00 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 01 Oct 2013 04:10:25 -0700 (PDT) From: Artyom Mirgorodskiy To: Hans Petter Selasky Subject: Re: gphoto2 bus error Date: Tue, 01 Oct 2013 14:11:20 +0300 Message-ID: <2203393.ZaYDNWG94H@notebook.alkar.net> User-Agent: KMail/4.11 (FreeBSD/10.0-ALPHA3; KDE/4.11.0; amd64; ; ) In-Reply-To: <524AA6A3.6050203@bitfrost.no> References: <1430354.OSvlCO8lK8@notebook.alkar.net> <60028529.ObLm6B0bQB@notebook.alkar.net> <524AA6A3.6050203@bitfrost.no> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Cc: "freebsd-current@freebsd.org" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Oct 2013 11:10:28 -0000 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=) 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