Hi Julien and all, > > Jim, is the error 100% reproducible ? If yes, could you add the > following lines in saned.c, decode_handle(), between lines 459 and 460? >
Yes the error is 100% reproducible when saned is access from a remote host (it works fine when saned is accessed locally). Did you see my note to Henning about the debug output from the gt68xx backend? It showed 'local_only = true' just before failing, when accessed remotely. Is this relevant? I put the following in as requested. > DBG (DBG_ERR, "decode_handle: w->status: %d, h: %d, num_handles: %d, > inuse: %d\n", > w->status, h, num_handles, handle[h].inuse); > Here's the output. [saned] check_host: config file line: `# SANE devices. IPv6 addresses must be enclosed in brackets, and should' [saned] check_host: config file line: `# always be specified in their compressed form.' [saned] check_host: config file line: `#' [saned] check_host: config file line: `# The hostname matching is not case-sensitive.' [saned] check_host: config file line: `#' [saned] check_host: config file line: `#scan-client.somedomain.firm' [saned] check_host: config file line: `#192.168.0.1' [saned] check_host: config file line: `192.168.0.1/29' [saned] check_host: subnet with base IP = 192.168.0.1, CIDR netmask = 29 [saned] check_host: config file line: `+' [saned] check_host: access granted from any host (`+') [saned] init: access granted [saned] init: access granted to jgeorge@::ffff:192.168.0.16 [saned] process_request: waiting for request [saned] process_request: got request 1 [saned] process_request: waiting for request [saned] process_request: got request 2 [saned] process_request: (open) strlen(resource) == 0 [saned] process_request: access to resource `gt68xx' granted [saned] process_request: waiting for request [saned] process_request: got request 8 Program received signal SIGSEGV, Segmentation fault. 0x08049d3e in decode_handle (w=0x8053460, op=0x804f370 "cancel") at saned.c:460 460 DBG (DBG_ERR, "decode_handle: w->status: %d, h: %d, num_handles: %d, inuse: %d\n", (gdb) bt #0 0x08049d3e in decode_handle (w=0x8053460, op=0x804f370 "cancel") at saned.c:460 #1 0x0804bb76 in process_request (w=0x8053460) at saned.c:2005 #2 0x0804bcf2 in main (argc=2, argv=0xbffff5d4) at saned.c:2278 #3 0x4009e4c2 in __libc_start_main () from /lib/i686/libc.so.6 Cheers, Jim
