--------------Boundary-00=_CG39UJWOU1X2LRFGFDR0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8bit
Hi, I use sane 1.0.7 for a while with a canscan 300. Unfortunatly, my old PC running this version of sane with saned died a few days ago. So I tried to make this scanner work with my new PC running Debian and sane 1.0.9 without success. I use an old aha152x (the same used on the old PC...) directly connected to the Canoscan 300. ~$ cat /proc/scsi/scsi Attached devices: Host: scsi1 Channel: 00 Id: 01 Lun: 00 Vendor: CANON Model: IX-03035B Rev: 2.01 Type: Scanner ANSI SCSI revision: 02 ~$ sane-find-scanner found SCSI scanner "CANON IX-03035B 2.01" at /dev/sg0 When I lauch xscanimage or scanimage, both segfault. I join the log as attachments given by the following command and SANE_DEBUG_CANON fixed to 128 : ~$ scanimage -d canon:/dev/sg0 2> scanimage.log Segmentation fault So, to confirm my problem, I've chrooted to the hard disk of my old computer, the one with sane 1.0.7. No, i can scan with the old version of sane !!! My conclusion : there are no problems with my kernel or device permissions, the problem is internal to sane. The problem only occurs with versions of sane > 1.0.7, maybe only with the 1.0.9. If I may help... Thanks. Regards. Pierre SOUCHAY --------------Boundary-00=_CG39UJWOU1X2LRFGFDR0 Content-Type: text/x-log; charset="us-ascii"; name="scanimage.log" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="scanimage.log" [sanei_debug] Setting debug level of canon to 128. [canon] >> sane_init [canon] sane_init: sane-backends 1.0.9 [canon] >> attach_one [canon] >> attach [canon] attach: opening /dev/sg2 [canon] attach: open failed: Invalid argument [canon] << attach_one [canon] << sane_init [canon] >> sane_open [canon] >> attach [canon] attach: opening /dev/sg0 [canon] attach: sending (standard) INQUIRY [canon] >> inquiry [canon] << inquiry [canon] attach: sending TEST_UNIT_READY [canon] >> test_unit_ready [canon] << test_unit_ready [canon] attach: sending RESERVE UNIT [canon] >> reserve_unit [canon] << reserve_unit [canon] attach: sending GET SCAN MODE for scan control conditions [canon] get scan mode: cmd[4]='0x14' [canon] << get scan mode [canon] scan mode byte[0] = 19 [canon] scan mode byte[1] = 0 [canon] scan mode byte[2] = 0 [canon] scan mode byte[3] = 0 [canon] scan mode byte[4] = 32 [canon] scan mode byte[5] = 14 [canon] scan mode byte[6] = 0 [canon] scan mode byte[7] = 0 [canon] scan mode byte[8] = 1 [canon] scan mode byte[9] = 244 [canon] scan mode byte[10] = 0 [canon] scan mode byte[11] = 1 [canon] scan mode byte[12] = 1 [canon] scan mode byte[13] = 1 [canon] scan mode byte[14] = 0 [canon] scan mode byte[15] = 0 [canon] scan mode byte[16] = 0 [canon] scan mode byte[17] = 0 [canon] scan mode byte[18] = 0 [canon] scan mode byte[19] = 0 [canon] scan mode byte[20] = 51 [canon] scan mode byte[21] = 48 [canon] scan mode byte[22] = 51 [canon] scan mode byte[23] = 53 [canon] scan mode byte[24] = 66 [canon] scan mode byte[25] = 32 [canon] scan mode byte[26] = 32 [canon] scan mode byte[27] = 32 [canon] scan mode byte[28] = 32 [canon] scan mode byte[29] = 32 [canon] scan mode byte[30] = 32 [canon] scan mode byte[31] = 32 [canon] scan mode byte[32] = 50 [canon] scan mode byte[33] = 46 [canon] scan mode byte[34] = 48 [canon] scan mode byte[35] = 49 [canon] scan mode byte[36] = 90 [canon] scan mode byte[37] = 23 [canon] scan mode byte[38] = 18 [canon] scan mode byte[39] = 64 [canon] scan mode byte[40] = 106 [canon] scan mode byte[41] = 23 [canon] scan mode byte[42] = 18 [canon] scan mode byte[43] = 64 [canon] scan mode byte[44] = 122 [canon] scan mode byte[45] = 23 [canon] scan mode byte[46] = 18 [canon] scan mode byte[47] = 64 [canon] scan mode byte[48] = 138 [canon] scan mode byte[49] = 23 [canon] scan mode byte[50] = 18 [canon] scan mode byte[51] = 64 [canon] scan mode byte[52] = 154 [canon] scan mode byte[53] = 23 [canon] scan mode byte[54] = 18 [canon] scan mode byte[55] = 64 [canon] scan mode byte[56] = 170 [canon] scan mode byte[57] = 23 [canon] scan mode byte[58] = 18 [canon] scan mode byte[59] = 64 [canon] scan mode byte[60] = 186 [canon] scan mode byte[61] = 23 [canon] scan mode byte[62] = 18 [canon] scan mode byte[63] = 64 [canon] scan mode byte[64] = 202 [canon] scan mode byte[65] = 23 [canon] scan mode byte[66] = 18 [canon] scan mode byte[67] = 64 [canon] scan mode byte[68] = 218 [canon] scan mode byte[69] = 23 [canon] scan mode byte[70] = 18 [canon] scan mode byte[71] = 64 [canon] scan mode byte[72] = 234 [canon] scan mode byte[73] = 23 [canon] attach: sending (extended) INQUIRY [canon] >> inquiry [canon] << inquiry [canon] attach: sending MODE SENSE [canon] >> mode_sense [canon] << mode_sense [canon] dev->sane.name = '/dev/sg0' [canon] dev->sane.vendor = 'CANON' [canon] dev->sane.model = 'IX-03035B ' [canon] dev->sane.type = 'flatbed scanner' [canon] >> get tpu stat [canon] >> get adf stat [canon] get scan mode: cmd[4]='0xC' [canon] << get scan mode [canon] scan mode control byte[0] = 11 [canon] scan mode control byte[1] = 0 [canon] scan mode control byte[2] = 0 [canon] scan mode control byte[3] = 0 [canon] scan mode control byte[4] = 1 [canon] scan mode control byte[5] = 6 [canon] scan mode control byte[6] = 1 [canon] scan mode control byte[7] = 0 [canon] scan mode control byte[8] = 0 [canon] scan mode control byte[9] = 0 [canon] scan mode control byte[10] = 0 [canon] scan mode control byte[11] = 0 [canon] ADF Status: 0 [canon] ADF Priority: 0 [canon] ADF Problem: 0 [canon] ADF Feeder: 0 [canon] << get adf stat [canon] bmu=0 [canon] mud=300 [canon] xres_default=300 [canon] xres_range.max=600 [canon] xres_range.min=12 [canon] xres_range.quant=1 [canon] yres_default=300 [canon] yres_range.max=600 [canon] yres_range.min=12 [canon] xres_range.quant=1 [canon] x_range.max=14154771 [canon] y_range.max=19392757 [canon] x_adf_range.max=2551 [canon] y_adf_range.max=4199 [canon] << attach [canon] >> init_options [canon] >> max_string_size [canon] << max_string_size [canon] >> max_string_size [canon] << max_string_size [canon] >> max_string_size [canon] << max_string_size [canon] >> max_string_size [canon] << max_string_size [canon] >> max_string_size [canon] << max_string_size [canon] >> max_string_size [canon] << max_string_size [canon] >> max_string_size [canon] << max_string_size [canon] << init_options [canon] << sane_open [canon] >> sane_control_option OPT_NUM_OPTS [canon] sane_control_option get value of OPT_NUM_OPTS [canon] value for option OPT_NUM_OPTS: 59 [canon] >> sane_control_option OPT_NUM_OPTS [canon] sane_control_option get value of OPT_NUM_OPTS [canon] value for option OPT_NUM_OPTS: 59 [canon] >> sane_get_option_descriptor option number 0 [canon] sane_get_option_descriptor option name OPT_NUM_OPTS [canon] << sane_get_option_descriptor option number 0 [canon] >> sane_get_option_descriptor option number 1 [canon] sane_get_option_descriptor option name OPT_PAGE [canon] << sane_get_option_descriptor option number 1 [canon] >> sane_get_option_descriptor option number 2 [canon] sane_get_option_descriptor option name OPT_MODE_GROUP [canon] << sane_get_option_descriptor option number 2 [canon] >> sane_get_option_descriptor option number 3 [canon] sane_get_option_descriptor option name OPT_MODE [canon] << sane_get_option_descriptor option number 3 [canon] >> sane_get_option_descriptor option number 4 [canon] sane_get_option_descriptor option name OPT_NEGATIVE [canon] << sane_get_option_descriptor option number 4 [canon] >> sane_get_option_descriptor option number 5 [canon] sane_get_option_descriptor option name OPT_NEGATIVE_TYPE [canon] << sane_get_option_descriptor option number 5 [canon] >> sane_get_option_descriptor option number 6 [canon] sane_get_option_descriptor option name OPT_SCANNING_SPEED [canon] << sane_get_option_descriptor option number 6 [canon] >> sane_get_option_descriptor option number 7 [canon] sane_get_option_descriptor option name OPT_RESOLUTION_GROUP [canon] << sane_get_option_descriptor option number 7 [canon] >> sane_get_option_descriptor option number 8 [canon] sane_get_option_descriptor option name OPT_RESOLUTION_BIND [canon] << sane_get_option_descriptor option number 8 [canon] >> sane_get_option_descriptor option number 9 [canon] sane_get_option_descriptor option name OPT_HW_RESOLUTION_ONLY [canon] << sane_get_option_descriptor option number 9 [canon] >> sane_get_option_descriptor option number 10 [canon] sane_get_option_descriptor option name OPT_X_RESOLUTION [canon] << sane_get_option_descriptor option number 10 [canon] >> sane_get_option_descriptor option number 11 [canon] sane_get_option_descriptor option name OPT_Y_RESOLUTION [canon] << sane_get_option_descriptor option number 11 [canon] >> sane_get_option_descriptor option number 12 [canon] sane_get_option_descriptor option name OPT_ENHANCEMENT_GROUP [canon] << sane_get_option_descriptor option number 12 [canon] >> sane_get_option_descriptor option number 13 [canon] sane_get_option_descriptor option name OPT_BRIGHTNESS [canon] << sane_get_option_descriptor option number 13 [canon] >> sane_get_option_descriptor option number 14 [canon] sane_get_option_descriptor option name OPT_CONTRAST [canon] << sane_get_option_descriptor option number 14 [canon] >> sane_get_option_descriptor option number 15 [canon] sane_get_option_descriptor option name OPT_THRESHOLD [canon] << sane_get_option_descriptor option number 15 [canon] >> sane_get_option_descriptor option number 16 [canon] sane_get_option_descriptor option name OPT_MIRROR [canon] << sane_get_option_descriptor option number 16 [canon] >> sane_get_option_descriptor option number 17 [canon] sane_get_option_descriptor option name OPT_CUSTOM_GAMMA [canon] << sane_get_option_descriptor option number 17 [canon] >> sane_get_option_descriptor option number 18 [canon] sane_get_option_descriptor option name OPT_CUSTOM_GAMMA_BIND [canon] << sane_get_option_descriptor option number 18 [canon] >> sane_get_option_descriptor option number 19 [canon] sane_get_option_descriptor option name OPT_GAMMA_VECTOR [canon] << sane_get_option_descriptor option number 19 [canon] >> sane_get_option_descriptor option number 20 [canon] sane_get_option_descriptor option name OPT_GAMMA_VECTOR_R [canon] << sane_get_option_descriptor option number 20 [canon] >> sane_get_option_descriptor option number 21 [canon] sane_get_option_descriptor option name OPT_GAMMA_VECTOR_G [canon] << sane_get_option_descriptor option number 21 [canon] >> sane_get_option_descriptor option number 22 [canon] sane_get_option_descriptor option name OPT_GAMMA_VECTOR_B [canon] << sane_get_option_descriptor option number 22 [canon] >> sane_get_option_descriptor option number 23 [canon] sane_get_option_descriptor option name OPT_AE [canon] << sane_get_option_descriptor option number 23 [canon] >> sane_get_option_descriptor option number 24 [canon] sane_get_option_descriptor option name OPT_CALIBRATION_GROUP [canon] << sane_get_option_descriptor option number 24 [canon] >> sane_get_option_descriptor option number 25 [canon] sane_get_option_descriptor option name OPT_CALIBRATION_NOW [canon] << sane_get_option_descriptor option number 25 [canon] >> sane_get_option_descriptor option number 26 [canon] sane_get_option_descriptor option name OPT_SCANNER_SELF_DIAGNOSTIC [canon] << sane_get_option_descriptor option number 26 [canon] >> sane_get_option_descriptor option number 27 [canon] sane_get_option_descriptor option name OPT_RESET_SCANNER [canon] << sane_get_option_descriptor option number 27 [canon] >> sane_get_option_descriptor option number 28 [canon] sane_get_option_descriptor option name OPT_EJECT_GROUP [canon] << sane_get_option_descriptor option number 28 [canon] >> sane_get_option_descriptor option number 29 [canon] sane_get_option_descriptor option name OPT_EJECT_AFTERSCAN [canon] << sane_get_option_descriptor option number 29 [canon] >> sane_get_option_descriptor option number 30 [canon] sane_get_option_descriptor option name OPT_EJECT_BEFOREEXIT [canon] << sane_get_option_descriptor option number 30 [canon] >> sane_get_option_descriptor option number 31 [canon] sane_get_option_descriptor option name OPT_EJECT_NOW [canon] << sane_get_option_descriptor option number 31 [canon] >> sane_get_option_descriptor option number 32 [canon] sane_get_option_descriptor option name OPT_FOCUS_GROUP [canon] << sane_get_option_descriptor option number 32 [canon] >> sane_get_option_descriptor option number 33 [canon] sane_get_option_descriptor option name OPT_AF [canon] << sane_get_option_descriptor option number 33 [canon] >> sane_get_option_descriptor option number 34 [canon] sane_get_option_descriptor option name OPT_AF_ONCE [canon] << sane_get_option_descriptor option number 34 [canon] >> sane_get_option_descriptor option number 35 [canon] sane_get_option_descriptor option name OPT_FOCUS [canon] << sane_get_option_descriptor option number 35 [canon] >> sane_get_option_descriptor option number 36 [canon] sane_get_option_descriptor option name OPT_MARGINS_GROUP [canon] << sane_get_option_descriptor option number 36 [canon] >> sane_get_option_descriptor option number 37 [canon] sane_get_option_descriptor option name OPT_TL_X [canon] << sane_get_option_descriptor option number 37 [canon] >> sane_get_option_descriptor option number 38 [canon] sane_get_option_descriptor option name OPT_TL_Y [canon] << sane_get_option_descriptor option number 38 [canon] >> sane_get_option_descriptor option number 39 [canon] sane_get_option_descriptor option name OPT_BR_X [canon] << sane_get_option_descriptor option number 39 [canon] >> sane_control_option OPT_BR_X [canon] sane_control_option get value of OPT_BR_X [canon] GET_VALUE for OPT_BR_X: s->val[OPT_BR_X].w = 14154771 [canon] value for option OPT_BR_X: 14154771 [canon] >> sane_get_option_descriptor option number 40 [canon] sane_get_option_descriptor option name OPT_BR_Y [canon] << sane_get_option_descriptor option number 40 [canon] >> sane_control_option OPT_BR_Y [canon] sane_control_option get value of OPT_BR_Y [canon] GET_VALUE for OPT_BR_Y: s->val[OPT_BR_Y].w = 19392757 [canon] value for option OPT_BR_Y: 19392757 [canon] >> sane_get_option_descriptor option number 41 [canon] sane_get_option_descriptor option name OPT_COLORS_GROUP [canon] << sane_get_option_descriptor option number 41 [canon] >> sane_get_option_descriptor option number 42 [canon] sane_get_option_descriptor option name OPT_HNEGATIVE [canon] << sane_get_option_descriptor option number 42 [canon] >> sane_get_option_descriptor option number 43 [canon] sane_get_option_descriptor option name OPT_BIND_HILO [canon] << sane_get_option_descriptor option number 43 [canon] >> sane_get_option_descriptor option number 44 [canon] sane_get_option_descriptor option name OPT_HILITE_R [canon] << sane_get_option_descriptor option number 44 [canon] >> sane_get_option_descriptor option number 45 [canon] sane_get_option_descriptor option name OPT_SHADOW_R [canon] << sane_get_option_descriptor option number 45 [canon] >> sane_get_option_descriptor option number 46 [canon] sane_get_option_descriptor option name OPT_HILITE_G [canon] << sane_get_option_descriptor option number 46 [canon] >> sane_get_option_descriptor option number 47 [canon] sane_get_option_descriptor option name OPT_SHADOW_G [canon] << sane_get_option_descriptor option number 47 [canon] >> sane_get_option_descriptor option number 48 [canon] sane_get_option_descriptor option name OPT_HILITE_B [canon] << sane_get_option_descriptor option number 48 [canon] >> sane_get_option_descriptor option number 49 [canon] sane_get_option_descriptor option name OPT_SHADOW_B [canon] << sane_get_option_descriptor option number 49 [canon] >> sane_get_option_descriptor option number 50 [canon] sane_get_option_descriptor option name OPT_ADF_GROUP [canon] << sane_get_option_descriptor option number 50 [canon] >> sane_get_option_descriptor option number 51 [canon] sane_get_option_descriptor option name OPT_FLATBED_ONLY [canon] << sane_get_option_descriptor option number 51 [canon] >> sane_get_option_descriptor option number 52 [canon] sane_get_option_descriptor option name OPT_TPU_GROUP [canon] << sane_get_option_descriptor option number 52 [canon] >> sane_get_option_descriptor option number 53 [canon] sane_get_option_descriptor option name OPT_TPU_ON [canon] << sane_get_option_descriptor option number 53 [canon] >> sane_get_option_descriptor option number 54 [canon] sane_get_option_descriptor option name OPT_TPU_PN [canon] << sane_get_option_descriptor option number 54 [canon] >> sane_get_option_descriptor option number 55 [canon] sane_get_option_descriptor option name OPT_TPU_DCM [canon] << sane_get_option_descriptor option number 55 [canon] >> sane_get_option_descriptor option number 56 [canon] sane_get_option_descriptor option name OPT_TPU_TRANSPARENCY [canon] << sane_get_option_descriptor option number 56 [canon] >> sane_get_option_descriptor option number 57 [canon] sane_get_option_descriptor option name OPT_TPU_FILMTYPE [canon] << sane_get_option_descriptor option number 57 [canon] >> sane_get_option_descriptor option number 58 [canon] sane_get_option_descriptor option name OPT_PREVIEW [canon] << sane_get_option_descriptor option number 58 [canon] >> sane_control_option OPT_TL_X [canon] sane_control_option get value of OPT_TL_X [canon] GET_VALUE for OPT_TL_X: s->val[OPT_TL_X].w = 0 [canon] value for option OPT_TL_X: 0 [canon] >> sane_control_option OPT_TL_Y [canon] sane_control_option get value of OPT_TL_Y [canon] GET_VALUE for OPT_TL_Y: s->val[OPT_TL_Y].w = 0 [canon] value for option OPT_TL_Y: 0 [canon] >> sane_control_option OPT_TL_X [canon] sane_control_option get value of OPT_TL_X [canon] GET_VALUE for OPT_TL_X: s->val[OPT_TL_X].w = 0 [canon] value for option OPT_TL_X: 0 [canon] >> sane_get_option_descriptor option number 39 [canon] sane_get_option_descriptor option name OPT_BR_X [canon] << sane_get_option_descriptor option number 39 [canon] >> sane_control_option OPT_BR_X [canon] sane_control_option set value for OPT_BR_X [canon] SET_VALUE for OPT_BR_X: s->val[OPT_BR_X].w = 14154771 [canon] >> sane_control_option OPT_TL_Y [canon] sane_control_option get value of OPT_TL_Y [canon] GET_VALUE for OPT_TL_Y: s->val[OPT_TL_Y].w = 0 [canon] value for option OPT_TL_Y: 0 [canon] >> sane_get_option_descriptor option number 40 [canon] sane_get_option_descriptor option name OPT_BR_Y [canon] << sane_get_option_descriptor option number 40 [canon] >> sane_control_option OPT_BR_Y [canon] sane_control_option set value for OPT_BR_Y [canon] SET_VALUE for OPT_BR_Y: s->val[OPT_BR_Y].w = 19392757 [canon] >> sane_start [canon] >> sane_get_parameters [canon] sane_get_parameters: width='2550', xres='300', mud='300' [canon] sane_get_parameters: length='3494', yres='300', mud='300' [canon] sane_get_parameters: pixels_per_line='2550', lines='3494' [canon] sane_get_parameters: xres='0', yres='0', pixels_per_line='2550', bytes_per_line='7650', lines='3494' [canon] << sane_get_parameters [canon] do_focus: sending GET FILM STATUS [canon] >> get film status [canon] >> sense_handler [canon] canon_sense_handler(3, 0x4023e060, 0x8050b10) [canon] sense buffer: f0 00 45 00 00 00 00 06 00 00 00 00 20 00 00 00 [canon] sense buffer: Invalid Command Operation Code [canon] << sense_handler [canon] << get film status [canon] do_focus: GET FILM STATUS failed [canon] attach: sending GET SCAN MODE for scan control conditions [canon] get scan mode: cmd[4]='0x14' --------------Boundary-00=_CG39UJWOU1X2LRFGFDR0--
