Re: always Segmentation Fault

From: Christoph H. (ch@basis.dhs.org)
Date: Sat Feb 24 2001 - 09:32:49 PST

  • Next message: Oliver Neukum: "Re: usb-scsi driver problem with SET_WINDOW?"

    Hi!

    > Try to set "option buffersize" to something reasonable in mustek.conf
    > (32 in your case). However, there shouldn't be a segfault anyway.

    I set the buffer now to 32k in mustek.conf, but nothing changed :(
    You can see that below...

    > As far as I see something goes wrong when "talking" to /dev/sg2,
    > probably in sanei_scsi.c. Could you send a debug log with the
    > nvironment variables SANE_DEBUG_MUSTEK=255 and
    > SANE_DEBUG_SANEI_SCSI=255 set?

    [sanei_debug] Setting debug level of mustek to 255.
    [mustek] SANE Mustek backend version 1.0 build 102 (SANE 1.0.4)
    [mustek] sane_init: authorize != null
    [mustek] sane_init: using sanei_scsi_open_extended
    [mustek] sane_init: reading config file `mustek.conf'
    [mustek] sane_init: config file line 1: ignoring comment line
    [mustek] sane_init: config file line 2: ignoring empty line
    [mustek] sane_init: config file line 3: ignoring comment line
    [mustek] sane_init: config file line 4: strip-height set to 1 inches
    [mustek] sane_init: freed
    [mustek] sane_init: config file line 5: ignoring comment line
    [mustek] sane_init: config file line 6: ignoring comment line
    [mustek] sane_init: config file line 7: ignoring comment line
    [mustek] sane_init: config file line 8: ignoring empty line
    [mustek] sane_init: config file line 9: ignoring comment line
    [mustek] sane_init: config file line 10: ignoring comment line
    [mustek] sane_init: config file line 11: ignoring comment line
    [mustek] sane_init: config file line 12: ignoring comment line
    [mustek] sane_init: config file line 13: ignoring comment line
    [mustek] sane_init: config file line 14: ignoring comment line
    [mustek] sane_init: config file line 15: ignoring empty line
    [mustek] sane_init: config file line 16: trying to attach `scsi SCANNER'
    [sanei_debug] Setting debug level of sanei_scsi to 255.
    [sanei_scsi] searched device is /dev/sg2
    [mustek] attach: trying device /dev/sg2
    [mustek] dev_open /dev/sg2
    [sanei_debug] Setting debug level of sanei_scsi to 255.
    [sanei_scsi] sanei_scsi_open: sanei_scsi_max_request_size=32768 bytes
    [sanei_scsi] sanei_scsi_open: using old SG driver logic
    [mustek] dev_open: /dev/sg2 is a SCSI device
    [mustek] dev_open: wanted 8 kbytes, got 8 kbytes buffer
    [mustek] attach: sending INQUIRY
    [sanei_scsi] scsi_req_enter: entered 0x80506d8
    [sanei_scsi] sanei_scsi.issue: 0x80506d8
    [sanei_scsi] scsi_req_enter: queue_used: 1, queue_max: 1
    [sanei_scsi] sanei_scsi_req_wait: waiting for 0x80506d8
    [sanei_scsi] sanei_scsi.issue: 0x80506d8
    [sanei_scsi] sanei_scsi_req_wait: read 0 bytes
    Segmentation fault

    Thanks!
    Regards, Christoph.

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



    This archive was generated by hypermail 2b29 : Sat Feb 24 2001 - 09:23:39 PST