[sane-devel] saned issues for remote scanner access

Julien BLACHE jb@jblache.org
Sun, 22 Feb 2004 19:41:06 +0100

Henning Meier-Geinitz <henning@meier-geinitz.de> wrote:

>> [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",
> As handle[-1] is pointing somewhere starnge, that crashes. 

Nah, here we're _inside_ decode_handle(), where h = 0 according to the
previous backtrace sent on the list.

So, hrm, there's something fishy in there.

Jim, could you try with just

DBG (DBG_ERR, "decode_handle: w->status: %d, h: %d, num_handles: %d\n",
     w->status, h, num_handles);

This way we should get an idea of what's going on...


Julien BLACHE                                   <http://www.jblache.org> 
<jb@jblache.org>                                  GPG KeyID 0xF5D65169