Core dump when trying to use net backend

Scott Wells (swells@vignette.com)
Tue, 6 Apr 1999 16:43:33 -0500

I'm trying to use the net backend to access my scanner (actually, I'm
ULTIMATELY trying to use a TWAIN-SANE gateway, but baby steps first...).
First, some platform specifics:

RedHat 5.1 x86
Kernel 2.0.34 (I have good reasons for being so far back)
SANE pre1.01-4 w/Microtek2 patch
Adaptec AIC-7850 SCSI host adapter (narrow)
Microtek ScanMaker X6 EL

I'm able to scan directly from the microtek2 backend wonderfully! Now I'd
like to scan through the net backend. To do so, I've done the following:

1. Uncommented the 'net' line in dll.conf
2. Added entries for 'localhost' and '<hostname>' in net.conf
3. Set debug level to 128 for DLL, MICROTEK2, NET, and SANEI_SCSI

I execute:

$ scanimage -d net:(localhost|<hostname>):microtek2

and I get:

<leading info elided>
[dll] loading backend net
[dll] dlopen()ing '/usr/local/SANE/lib/sane/libsane-net.so.1
[dll] init: initializing backend 'net'
[sanei_init_debug]: Setting debug level of net to 128.
[net] adding backend localhost
[net] adding backend <hostname>
Segmentation fault (core dumped)

I've done a *little* debugging and the seg fault occurs at some point in the
net implementation of sane_get_devices(). Does anyone know what's going on?
Have I left out some all-important step in my configuration? It's worth
noting that:

$ telnet (localhost|<hostname>) sane

connects fine; it's not a saned configuration issue (that I know of).

Thanks in advance,
Scott Wells

--
Source code, list archive, and docs: http://www.mostang.com/sane/
To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com