After some private mails with Ian, it seems this is a bug in sane-avision: during sane_cancel(), the backend calls: sanei_thread_kill (s->reader_pid), but s->reader_pid is 0, which signals the entire group. There is a test to try and avoid this, but it relies on prior code to have set s->reader_pid = -1, which has not happened in the case of no paper.
I just expanded the test to require a positive value, since the pid should never be negative anyway? My fix has just been commited to CVS (backend version 289 nice round number for Ford and Studebaker fans). Ian and Rene- please test. allan On Thu, Dec 4, 2008 at 12:21 PM, Ian Harding <harding.ian at gmail.com> wrote: > I don't know... I did build it from source, I just specified that I > wanted usb support, nothing else. I'll see if I can figure out the > proper build options and try that. > > Thanks, > > - Ian > > On Thu, Dec 4, 2008 at 6:58 AM, m. allan noah <kitno455 at gmail.com> wrote: >> sane-avision uses the sanei_thread library, which might send signals >> if built without pthreads. Does that affect AOLserver? >> >> allan >> >> On Thu, Dec 4, 2008 at 9:48 AM, Ian Harding <harding.ian at gmail.com> wrote: >>> Avision AV220 with sane-avision. It works great, except for this... >>> >>> On Thu, Dec 4, 2008 at 6:37 AM, m. allan noah <kitno455 at gmail.com> wrote: >>>> what scanner and backend are you using? >>>> >>>> allan >>>> >>>> On Wed, Dec 3, 2008 at 7:23 PM, Ian Harding <harding.ian at gmail.com> >>>> wrote: >>>>> This is kind of odd >>>>> >>>>> % catch [exec scanimage] foo >>>>> Terminated >>>>> >>>>> When I exec scanimage from inside AOLServer, it goes ahead and shuts >>>>> down the server. I figured out that it happens when the scanner is >>>>> on, and ready, but does not have a document in the ADF. >>>>> >>>>> From the command line it looks like this >>>>> >>>>> $ scanimage >>>>> scanimage: sane_start: Document feeder out of documents >>>>> scanimage: Received signal 15 >>>>> scanimage: Trying to stop scanner >>>>> scanimage: Received signal 15 >>>>> scanimage: Aborting >>>>> >>>>> There may be a "status" of some kind I can check from SANE without >>>>> crashing before I try scanning but I haven't found it yet. >>>>> >>>>> Is there any way to prevent this from killing my server in the >>>>> meantime or is "catch" the biggest gun I have for that? >>>>> >>>>> Thanks, >>>>> >>>>> - Ian >>>>> >>>>> -- >>>>> sane-devel mailing list: sane-devel at lists.alioth.debian.org >>>>> http://lists.alioth.debian.org/mailman/listinfo/sane-devel >>>>> Unsubscribe: Send mail with subject "unsubscribe your_password" >>>>> to sane-devel-request at lists.alioth.debian.org >>>>> >>>> >>>> >>>> >>>> -- >>>> "The truth is an offense, but not a sin" >>>> >>> >> >> >> >> -- >> "The truth is an offense, but not a sin" >> > -- "The truth is an offense, but not a sin"