From owner-freebsd-current@FreeBSD.ORG Wed Oct 2 12:04:18 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 8D982C2A for ; Wed, 2 Oct 2013 12:04:18 +0000 (UTC) (envelope-from john@potato.growveg.org) Received: from potato.growveg.org (growveg-1-pt.tunnel.tserv11.ams1.ipv6.he.net [IPv6:2001:470:1f14:3d2::2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 44F7B23F3 for ; Wed, 2 Oct 2013 12:04:17 +0000 (UTC) Received: from john by potato.growveg.org with local (Exim 4.80.1 (FreeBSD)) (envelope-from ) id 1VRLA4-0000bh-RI for freebsd-current@freebsd.org; Wed, 02 Oct 2013 13:04:12 +0100 Date: Wed, 2 Oct 2013 13:04:12 +0100 From: John To: freebsd-current@freebsd.org Subject: Re: gphoto2 bus error Message-ID: <20131002120412.GB74638@potato.growveg.org> References: <20131001135021.GA56944@potato.growveg.org> <524BBC5A.6060108@bitfrost.no> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <524BBC5A.6060108@bitfrost.no> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: John X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: john@potato.growveg.org X-SA-Exim-Scanned: No (on potato.growveg.org); SAEximRunCond expanded to false 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: Wed, 02 Oct 2013 12:04:18 -0000 On Wed, Oct 02, 2013 at 08:25:30AM +0200, Hans Petter Selasky wrote: > Hi, > > Can you try to apply the attached patch to: > > cd /usr/ports/graphics/sane-backends > > make clean extract patch > > cd /usr/ports/graphics/sane-backends/work/sane-backends-1.0.23 > > cat sane-backend-debug.diff | patch -p1 > > cd /usr/ports/graphics/sane-backends > > make all deinstall install Thanks for the patch! I have applied it now > Maybe you can figure out exactly what line is causing the crash by > adding more printf's like shown in the attached patch. I think you over-estimate my programming ability! I have soft linked genesys.so as per sane manpages as that's the scanner I have. I don't know why some of the errors are coming up with microtek. $ ls -la /usr/local/lib/sane/libsane.so lrwxr-xr-x 1 root wheel 22B 2 Oct 11:59 /usr/local/lib/sane/libsane.so@ -> ./libsane-genesys.so.1 sane-find-scanner finds it at found USB scanner (vendor=0x04a9 [Canon], product=0x1909 [CanoScan], chip=GL124) at libusb:/dev/usb:/dev/ugen4.4 OK here is the output from scanimage -L : $ scanimage -L A 0x802ce2808 /dev/pass0 B C A 0x802ce3208 /dev/pass1 B C A 0x802ce3c08 /dev/pass2 B C A 0x802ce4608 /dev/pass3 B C A 0x802ce5008 /dev/pass4 B C D E F G Bus error: 10 (core dumped) Here is the gdb output: (gdb) bt #0 0x00000008063c1915 in scsi_inquiry () from /usr/local/lib/sane/libsane-microtek2.so.1 #1 0x00000008063b38dc in attach () from /usr/local/lib/sane/libsane-microtek2.so.1 #2 0x00000008063b4af9 in attach_one () from /usr/local/lib/sane/libsane-microtek2.so.1 #3 0x000000080083205b in sanei_scsi_find_devices () from /usr/local/lib/libsane.so.1 #4 0x000000080082ef1e in sanei_config_attach_matching_devices () from /usr/local/lib/libsane.so.1 #5 0x00000008063b4a23 in sane_microtek2_init () from /usr/local/lib/sane/libsane-microtek2.so.1 #6 0x000000080083acb4 in init () from /usr/local/lib/libsane.so.1 #7 0x000000080083a944 in sane_dll_get_devices () from /usr/local/lib/libsane.so.1 #8 0x0000000000402089 in ?? () #9 0x0000000000401c41 in ?? () #10 0x0000000800628000 in ?? () #11 0x0000000000000000 in ?? () (gdb) Although scanimage -L gives the bus error, the following doesn't: $ scanimage -d genesys -x 100 -y 100 --format=jpg >image.jpg I have no idea why microtek2 is in that output. This is a new install and libscan.so is linked to libsane-genesys.so.1 thanks, --