Hi,

On Fri, May 05, 2017 at 08:04:26PM +0200, John Paul Adrian Glaubitz wrote:
> On 05/05/2017 07:16 PM, Aaro Koskinen wrote:
> > I think Jörg Frings-Fürst has analyzed and fixed this bug already - he
> > provided me test packages (libsane_1.0.25-4~test1_amd64.deb etc.) offline
> > for testing and they seemed to fix the issue.
> 
> No, he didn't "fix" the issue. He completely removed a feature from 
> sane-backends
> and called it a fix, assuming that no one in Debian or Ubuntu or any of the 
> derived
> distributions wants to use Avahi with SANE.

Okay...

> > I'm currently away from my machines, but next week I'll recheck the
> > situation again with up-to-date Debian testing, If the problem is still
> > present I will provide the full backtrace etc.
> 
> Yes, please. I am not going to accept such a rather big cut in functionality
> without proper testing and error analysis first.

I found something when enabling debug outputs:

$ SANE_DEBUG_NET=3 scanimage -L
[sanei_debug] Setting debug level of net to 3.
[net] sane_init: authorize != null, version_code != null
[net] net_avahi_init: could not create Avahi client: Daemon not running
[net] net_avahi_init: Avahi init failed, support disabled
[net] sane_init: SANE net backend version 1.0.14 (AF-indep+IPv6) from 
sane-backends 1.0.25
[net] sane_init: Client has little endian byte order
[net] sane_init: searching for config file
scanimage: thread-watch.c:171: avahi_threaded_poll_lock: Assertion `p' failed.
Aborted

It's disabling Avahi support (I don't have such daemon) but still later
calling avahi_threaded_poll_lock() with NULL avahi_thread.

Here's the backtrace:

$ gdb scanimage
GNU gdb (Debian 7.12-6) 7.12.0.20161007-git
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from scanimage...Reading symbols from 
/usr/lib/debug/.build-id/2a/f2218a71fe370679d900eca9ab1b1e4f575859.debug...done.
done.
(gdb) run -L
Starting program: /usr/bin/scanimage -L
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff6420700 (LWP 6782)]
scanimage: thread-watch.c:171: avahi_threaded_poll_lock: Assertion `p' failed.

Thread 1 "scanimage" received signal SIGABRT, Aborted.
x00007ffff73c7fcf in raise () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) bt
#0  0x00007ffff73c7fcf in raise () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007ffff73c93fa in abort () from /lib/x86_64-linux-gnu/libc.so.6
#2  0x00007ffff73c0e37 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#3  0x00007ffff73c0ee2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
#4  0x00007ffff0ce9404 in avahi_threaded_poll_lock ()
   from /usr/lib/x86_64-linux-gnu/libavahi-common.so.3
#5  0x00007fffeadcac7c in sane_net_init (version_code=<optimized out>, 
    authorize=<optimized out>) at net.c:1048
#6  0x00007ffff7bd4dd0 in init (be=be@entry=0x555555762290) at dll.c:614
#7  0x00007ffff7bd5681 in sane_dll_get_devices (device_list=0x7fffffffbc18, 
    local_only=0) at dll.c:1055
#8  0x00005555555562ab in main (argc=2, argv=0x7fffffffe068)
    at scanimage.c:2038

A.

Reply via email to