From owner-freebsd-hackers@freebsd.org Thu Jul 26 18:55:56 2018 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 062D8105739F for ; Thu, 26 Jul 2018 18:55:56 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from shell1.rawbw.com (shell1.rawbw.com [198.144.192.42]) by mx1.freebsd.org (Postfix) with ESMTP id 7E4A474417 for ; Thu, 26 Jul 2018 18:55:55 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from yv.noip.me (c-24-4-131-132.hsd1.ca.comcast.net [24.4.131.132]) (authenticated bits=0) by shell1.rawbw.com (8.15.1/8.15.1) with ESMTPSA id w6QItrRe036609 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Thu, 26 Jul 2018 11:55:54 -0700 (PDT) (envelope-from yuri@rawbw.com) X-Authentication-Warning: shell1.rawbw.com: Host c-24-4-131-132.hsd1.ca.comcast.net [24.4.131.132] claimed to be yv.noip.me Subject: Re: 'scanimage -L' from 'graphics/sane-backends' causes system crashes after a while To: Freebsd hackers list References: <5fe20134-4b4f-4789-fa54-8ce746453130@rawbw.com> From: Yuri Message-ID: <4d7eff74-b657-ab35-c025-4aabbe53cc2f@rawbw.com> Date: Thu, 26 Jul 2018 11:55:52 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: <5fe20134-4b4f-4789-fa54-8ce746453130@rawbw.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Jul 2018 18:55:56 -0000 On 2/20/18 10:15 AM, Yuri wrote: > For my system this works with a 100% reliability: run 'scanimage -L' > (or just scan something), and system will crash after a few hours or so. > > '-L' option calls the function 'sane_get_devices', which has about 90 > implementations there. It calls all of them trying to find a scanner. > Some of them cause system to crash later. > > My real scanner is on the wifi network. I'm not sure if the real > scanner is what causes the problem, or maybe it's some other test > among these 90 'sane_get_devices' functions that causes this problem. > > What is the easiest way to troubleshoot this? The problem is that the > crash doesn't come right away. > > 11.1-STABLE For the record: I never found the reason why this command crashes the system. But there is a workaround: in the file /usr/local/etc/sane.d/dll.conf comment out all scanners except the one that you have. This prevents sane from scanning all possible scanners, and avoids system crashes. Yuri