From owner-freebsd-hackers@freebsd.org Tue Feb 20 18:15:33 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 9ADA0F1BDAE for ; Tue, 20 Feb 2018 18:15:33 +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 2D96C8447C for ; Tue, 20 Feb 2018 18:15:32 +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 w1KIFUAK072641 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Tue, 20 Feb 2018 10:15:31 -0800 (PST) (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 To: Freebsd hackers list From: Yuri Subject: 'scanimage -L' from 'graphics/sane-backends' causes system crashes after a while Message-ID: <5fe20134-4b4f-4789-fa54-8ce746453130@rawbw.com> Date: Tue, 20 Feb 2018 10:15:28 -0800 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 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.25 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Feb 2018 18:15:33 -0000 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 Yuri