From owner-freebsd-hackers@freebsd.org Tue Feb 20 18:19:23 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 5A987F1C240 for ; Tue, 20 Feb 2018 18:19:23 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [IPv6:2a01:4f8:c17:6c4b::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id F0617846A5 for ; Tue, 20 Feb 2018 18:19:22 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2016.home.selasky.org (unknown [62.141.128.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id B91E92603D1; Tue, 20 Feb 2018 19:19:21 +0100 (CET) Subject: Re: 'scanimage -L' from 'graphics/sane-backends' causes system crashes after a while To: Yuri , Freebsd hackers list References: <5fe20134-4b4f-4789-fa54-8ce746453130@rawbw.com> From: Hans Petter Selasky Message-ID: <4dc31781-c6df-04bf-0158-fc09d14b3fb8@selasky.org> Date: Tue, 20 Feb 2018 19:19:21 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.6.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-Language: en-US Content-Transfer-Encoding: 7bit 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:19:23 -0000 On 02/20/18 19:15, 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 > Try ktrac'ing the program first, or run from inside of gdb801 from ports: gdb801 > file scanimage > run -L --HPS