From owner-freebsd-ports@FreeBSD.ORG Sun Nov 7 00:21:19 2010 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AFA5D1065696 for ; Sun, 7 Nov 2010 00:21:19 +0000 (UTC) (envelope-from jason@naughton.ca) Received: from trooper.naughton.ca (naughton.ca [206.248.137.184]) by mx1.freebsd.org (Postfix) with ESMTP id 66AAF8FC0C for ; Sun, 7 Nov 2010 00:21:18 +0000 (UTC) Received: from webmail.jnaughton.com (localhost [127.0.0.1]) by trooper.naughton.ca (8.14.4/8.14.4) with ESMTP id oA70LRXP036894; Sat, 6 Nov 2010 20:21:27 -0400 (EDT) (envelope-from jason@naughton.ca) Received: from 192.168.1.2 (SquirrelMail authenticated user jnaughto) by webmail.jnaughton.com with HTTP; Sat, 6 Nov 2010 20:21:27 -0400 Message-ID: In-Reply-To: References: Date: Sat, 6 Nov 2010 20:21:27 -0400 From: "Jason Naughton" To: "Warren Block" User-Agent: SquirrelMail/1.4.21 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: ports@freebsd.org Subject: Re: sane-backend 1.0.21 broke on 8.0? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Nov 2010 00:21:19 -0000 Hi Warren, > Okay, the other thing to check is permissions to the USB devices. From > devfs.rules: > > add path 'ugen*' mode 0660 group operator > add path 'usb/*' mode 0660 group operator > I have already added the above lines. # cat /etc/devfs.rules [usb_devices=10] add path 'ugen*' mode 0660 group operator add path 'usb/*' mode 0660 group operator # grep devfs /etc/rc.conf devfs_system_ruleset="usb_devices" It's not a permission issue as root also has problems getting anything back from: # scanimage -L I noticed another thing which could cause some issues. I did the following (as root) prior to the above commands: # cd /usr/local/etc/sane.d # mkdir orig # mv * orig # cp orig/epson.conf . With only epson.conf inside of /usr/local/etc/sane.d, I can as user and as root perform the following task: # scanimage -d epson --format=tiff > foo.tiff Yet both user and root cannot find anything while issuing the command: # scanimage -L After your last email I thought I would put everything back into /usr/local/etc/sane.d. # pkg_delete -f sane-backends-1.0.21_2 # cd /usr/ports/graphics/sane-backends # make install I modified my epson.conf so it had both the product id and vendor id. Now if I run: # scanimage -L zsh: segmentation fault scanimage -L but # scanimage -d epson --format=tiff > /tmp/foo.tiff still works. If I truss the program I noticed: # truss scanimage -L 2>&1 |grep open |grep epson returns nothing. What I'm doing in the above line is redirecting stderr to stdout then greping for the open system call then greping to see if there's an open epson.conf call. It seems that it's not even bothering to look at the epson.conf file. If I issue the following command you can see all the conf files that it's trying to access: # truss scanimage -L 2>&1 |grep open |grep conf open("/etc/libmap.conf",O_RDONLY,0666) ERR#2 'No such file or directory' open("./dll.conf",O_RDONLY,0666) = 2 (0x2) open("./xerox_mfp.conf",O_RDONLY,0666) = 2 (0x2) open("./umax1220u.conf",O_RDONLY,0666) = 2 (0x2) open("./umax.conf",O_RDONLY,0666) = 2 (0x2) open("./u12.conf",O_RDONLY,0666) = 2 (0x2) open("./teco3.conf",O_RDONLY,0666) = 2 (0x2) open("./teco2.conf",O_RDONLY,0666) = 2 (0x2) open("./teco1.conf",O_RDONLY,0666) = 2 (0x2) open("./tamarack.conf",O_RDONLY,0666) = 2 (0x2) open("./sp15c.conf",O_RDONLY,0666) = 2 (0x2) open("./snapscan.conf",O_RDONLY,0666) = 2 (0x2) open("./sharp.conf",O_RDONLY,0666) = 2 (0x2) open("./sceptre.conf",O_RDONLY,0666) = 2 (0x2) open("./s9036.conf",O_RDONLY,0666) = 2 (0x2) open("./rts8891.conf",O_RDONLY,0666) = 2 (0x2) open("./rts8891.conf",O_RDONLY,0666) = 2 (0x2) open("./ricoh.conf",O_RDONLY,0666) = 2 (0x2) open("./plustek.conf",O_RDONLY,0666) = 2 (0x2) open("./pixma.conf",O_RDONLY,0666) = 2 (0x2) open("./pie.conf",O_RDONLY,0666) = 2 (0x2) open("./nec.conf",O_RDONLY,0666) = 2 (0x2) open("./mustek_usb.conf",O_RDONLY,0666) = 2 (0x2) open("./mustek.conf",O_RDONLY,0666) = 2 (0x2) open("./microtek2.conf",O_RDONLY,0666) = 2 (0x2) Looks like one of these is causing a seg fault. I can move all of them out of the sane.d folder and add one at a time back to isolate the one that's causing the seg fault, as with only epson.conf in the folder there is no seg fault just the standard not found response. Jason Naughton, P.Eng, M.E.Sc, Professional Contractor, JMN Planning, Pickering, Ontario, Office: (416)-509-4886 Fax: (905)-831-3810