[sane-devel] Segmentation fault: 11

Fred Leason fleason at mac.com
Wed Jul 4 22:13:26 UTC 2012


I am on Mac OS X Lion 7.4
I am using the macports version of the software

> 05:00 PM ~ $ port installed *sane*
> The following ports are currently installed:
>   sane-backends @1.0.22_2+universal (active)
>   sane-frontends @1.0.15git_0 (active)
>   twain-sane @3.0_0 (active)
>   xsane @0.998_0 (active)
> 
> 5:09 PM ~ $ port installed libusb
> The following ports are currently installed:
>   libusb @1.0.9_0+universal (active)
> 
> 05:04 PM ~ $ scanimage --version
> scanimage (sane-backends) 1.0.22; backend version 1.0.22


I have a Canon Pixma MP970

This used to work via gimp.  When I invoke the scanner, xsane starts up and I could easily scan and edit images in gimp.
No longer.  Now I get the xsane screen that says scanning for scanner.  It disappears after several seconds.

So I followed the instructions on the FAQ.  Here is the output:

> 4:44 PM ~ $ SANE_DEBUG_PIXMA=255 scanimage > test.pnm
> [sanei_debug] Setting debug level of pixma to 255.
> [pixma] pixma is compiled with pthread support.
> [pixma] pixma version 0.16.2
> [pixma] pixma_collect_devices() found Canon Pixma MP970 at libusb:250:006
> [pixma] sanei_bjnp_find_devices:
> [pixma] Added all configured scanners, now do auto detection...
> [pixma] lo0 is not a valid IPv4 interface, skipping...
> [pixma] lo0 is not a valid IPv4 interface, skipping...
> [pixma] lo0 is not a valid IPv4 interface, skipping...
> [pixma] lo0 is not a valid IPv4 interface, skipping...
> [pixma] gif0 is not a valid IPv4 interface, skipping...
> [pixma] stf0 is not a valid IPv4 interface, skipping...
> [pixma] en0 is not a valid IPv4 interface, skipping...
> [pixma] en1 is not a valid IPv4 interface, skipping...
> [pixma] p2p0 is not a valid IPv4 interface, skipping...
> [pixma] fw0 is not a valid IPv4 interface, skipping...
> [pixma] en3 is not a valid IPv4 interface, skipping...
> [pixma] en3 is not a valid IPv4 interface, skipping...
> [pixma] en3 is IPv4 capable, sending broadcast..
> [pixma] lo0 is not a valid IPv4 interface, skipping...
> [pixma] lo0 is not a valid IPv4 interface, skipping...
> [pixma] lo0 is not a valid IPv4 interface, skipping...
> [pixma] lo0 is not a valid IPv4 interface, skipping...
> [pixma] gif0 is not a valid IPv4 interface, skipping...
> [pixma] stf0 is not a valid IPv4 interface, skipping...
> [pixma] en0 is not a valid IPv4 interface, skipping...
> [pixma] en1 is not a valid IPv4 interface, skipping...
> [pixma] p2p0 is not a valid IPv4 interface, skipping...
> [pixma] fw0 is not a valid IPv4 interface, skipping...
> [pixma] en3 is not a valid IPv4 interface, skipping...
> [pixma] en3 is not a valid IPv4 interface, skipping...
> [pixma] en3 is IPv4 capable, sending broadcast..
> [pixma] lo0 is not a valid IPv4 interface, skipping...
> [pixma] lo0 is not a valid IPv4 interface, skipping...
> [pixma] lo0 is not a valid IPv4 interface, skipping...
> [pixma] lo0 is not a valid IPv4 interface, skipping...
> [pixma] gif0 is not a valid IPv4 interface, skipping...
> [pixma] stf0 is not a valid IPv4 interface, skipping...
> [pixma] en0 is not a valid IPv4 interface, skipping...
> [pixma] en1 is not a valid IPv4 interface, skipping...
> [pixma] p2p0 is not a valid IPv4 interface, skipping...
> [pixma] fw0 is not a valid IPv4 interface, skipping...
> [pixma] en3 is not a valid IPv4 interface, skipping...
> [pixma] en3 is not a valid IPv4 interface, skipping...
> [pixma] en3 is IPv4 capable, sending broadcast..
> [pixma] lo0 is not a valid IPv4 interface, skipping...
> [pixma] lo0 is not a valid IPv4 interface, skipping...
> [pixma] lo0 is not a valid IPv4 interface, skipping...
> [pixma] lo0 is not a valid IPv4 interface, skipping...
> [pixma] gif0 is not a valid IPv4 interface, skipping...
> [pixma] stf0 is not a valid IPv4 interface, skipping...
> [pixma] en0 is not a valid IPv4 interface, skipping...
> [pixma] en1 is not a valid IPv4 interface, skipping...
> [pixma] p2p0 is not a valid IPv4 interface, skipping...
> [pixma] fw0 is not a valid IPv4 interface, skipping...
> [pixma] en3 is not a valid IPv4 interface, skipping...
> [pixma] en3 is not a valid IPv4 interface, skipping...
> [pixma] en3 is IPv4 capable, sending broadcast..
> [pixma] lo0 is not a valid IPv4 interface, skipping...
> [pixma] lo0 is not a valid IPv4 interface, skipping...
> [pixma] lo0 is not a valid IPv4 interface, skipping...
> [pixma] lo0 is not a valid IPv4 interface, skipping...
> [pixma] gif0 is not a valid IPv4 interface, skipping...
> [pixma] stf0 is not a valid IPv4 interface, skipping...
> [pixma] en0 is not a valid IPv4 interface, skipping...
> [pixma] en1 is not a valid IPv4 interface, skipping...
> [pixma] p2p0 is not a valid IPv4 interface, skipping...
> [pixma] fw0 is not a valid IPv4 interface, skipping...
> [pixma] en3 is not a valid IPv4 interface, skipping...
> [pixma] en3 is not a valid IPv4 interface, skipping...
> [pixma] en3 is IPv4 capable, sending broadcast..
> [pixma] scanner discovery finished...
> [pixma] pixma_find_scanners() found 1 devices
> [pixma] pixma_collect_devices() found Canon Pixma MP970 at libusb:250:006
> [pixma] sanei_bjnp_find_devices:
> [pixma] Added all configured scanners, now do auto detection...
> [pixma] lo0 is not a valid IPv4 interface, skipping...
> [pixma] lo0 is not a valid IPv4 interface, skipping...
> [pixma] lo0 is not a valid IPv4 interface, skipping...
> [pixma] lo0 is not a valid IPv4 interface, skipping...
> [pixma] gif0 is not a valid IPv4 interface, skipping...
> [pixma] stf0 is not a valid IPv4 interface, skipping...
> [pixma] en0 is not a valid IPv4 interface, skipping...
> [pixma] en1 is not a valid IPv4 interface, skipping...
> [pixma] p2p0 is not a valid IPv4 interface, skipping...
> [pixma] fw0 is not a valid IPv4 interface, skipping...
> [pixma] en3 is not a valid IPv4 interface, skipping...
> [pixma] en3 is not a valid IPv4 interface, skipping...
> [pixma] en3 is IPv4 capable, sending broadcast..
> [pixma] lo0 is not a valid IPv4 interface, skipping...
> [pixma] lo0 is not a valid IPv4 interface, skipping...
> [pixma] lo0 is not a valid IPv4 interface, skipping...
> [pixma] lo0 is not a valid IPv4 interface, skipping...
> [pixma] gif0 is not a valid IPv4 interface, skipping...
> [pixma] stf0 is not a valid IPv4 interface, skipping...
> [pixma] en0 is not a valid IPv4 interface, skipping...
> [pixma] en1 is not a valid IPv4 interface, skipping...
> [pixma] p2p0 is not a valid IPv4 interface, skipping...
> [pixma] fw0 is not a valid IPv4 interface, skipping...
> [pixma] en3 is not a valid IPv4 interface, skipping...
> [pixma] en3 is not a valid IPv4 interface, skipping...
> [pixma] en3 is IPv4 capable, sending broadcast..
> [pixma] lo0 is not a valid IPv4 interface, skipping...
> [pixma] lo0 is not a valid IPv4 interface, skipping...
> [pixma] lo0 is not a valid IPv4 interface, skipping...
> [pixma] lo0 is not a valid IPv4 interface, skipping...
> [pixma] gif0 is not a valid IPv4 interface, skipping...
> [pixma] stf0 is not a valid IPv4 interface, skipping...
> [pixma] en0 is not a valid IPv4 interface, skipping...
> [pixma] en1 is not a valid IPv4 interface, skipping...
> [pixma] p2p0 is not a valid IPv4 interface, skipping...
> [pixma] fw0 is not a valid IPv4 interface, skipping...
> [pixma] en3 is not a valid IPv4 interface, skipping...
> [pixma] en3 is not a valid IPv4 interface, skipping...
> [pixma] en3 is IPv4 capable, sending broadcast..
> [pixma] lo0 is not a valid IPv4 interface, skipping...
> [pixma] lo0 is not a valid IPv4 interface, skipping...
> [pixma] lo0 is not a valid IPv4 interface, skipping...
> [pixma] lo0 is not a valid IPv4 interface, skipping...
> [pixma] gif0 is not a valid IPv4 interface, skipping...
> [pixma] stf0 is not a valid IPv4 interface, skipping...
> [pixma] en0 is not a valid IPv4 interface, skipping...
> [pixma] en1 is not a valid IPv4 interface, skipping...
> [pixma] p2p0 is not a valid IPv4 interface, skipping...
> [pixma] fw0 is not a valid IPv4 interface, skipping...
> [pixma] en3 is not a valid IPv4 interface, skipping...
> [pixma] en3 is not a valid IPv4 interface, skipping...
> [pixma] en3 is IPv4 capable, sending broadcast..
> [pixma] lo0 is not a valid IPv4 interface, skipping...
> [pixma] lo0 is not a valid IPv4 interface, skipping...
> [pixma] lo0 is not a valid IPv4 interface, skipping...
> [pixma] lo0 is not a valid IPv4 interface, skipping...
> [pixma] gif0 is not a valid IPv4 interface, skipping...
> [pixma] stf0 is not a valid IPv4 interface, skipping...
> [pixma] en0 is not a valid IPv4 interface, skipping...
> [pixma] en1 is not a valid IPv4 interface, skipping...
> [pixma] p2p0 is not a valid IPv4 interface, skipping...
> [pixma] fw0 is not a valid IPv4 interface, skipping...
> [pixma] en3 is not a valid IPv4 interface, skipping...
> [pixma] en3 is not a valid IPv4 interface, skipping...
> [pixma] en3 is IPv4 capable, sending broadcast..
> [pixma] scanner discovery finished...
> Segmentation fault: 11


So it sees the scanner and then dies.  

Here is output from 

> 04:46 PM ~ $ sane-find-scanner
> 
>   # sane-find-scanner will now attempt to detect your scanner. If the
>   # result is different from what you expected, first make sure your
>   # scanner is powered up and properly connected to your computer.
> 
>   # No SCSI scanners found. If you expected something different, make sure that
>   # you have loaded a kernel SCSI driver for your SCSI adapter.
> 
> found USB scanner (vendor=0x0fcf [Suunto], product=0x1008 [Movestick mini]) at libusb:250:005
> found USB scanner (vendor=0x04a9 [Canon], product=0x1726 [MP970 series]) at libusb:250:006
> found USB scanner (vendor=0x05ac, product=0x8215) at libusb:250:007
>   # Your USB scanner was (probably) detected. It may or may not be supported by
>   # SANE. Try scanimage -L and read the backend's manpage.
> 
>   # Not checking for parallel port scanners.
> 
>   # Most Scanners connected to the parallel port or other proprietary ports
>   # can't be detected by this program.
> 
>   # You may want to run this program as root to find all devices. Once you
>   # found the scanner devices, be sure to adjust access permissions as
>   # necessary.


which recognizes the scanner among other things.

and

> 05:09 PM ~ $ scanimage -L
> device `pixma:04A91726_23464B' is a CANON Canon Pixma MP970 multi-function peripheral
> Segmentation fault: 11

and the "scanimage -d test:0" worked fine.

This has not worked for months.  Any ideas?




Fred Leason





More information about the sane-devel mailing list