[sane-devel] avision segfault

Jeremy jeremy at acjlaw.net
Wed Dec 9 18:04:02 UTC 2009


I updated my batch scanimage script
(http://www.acjlaw.net:8080/~jeremy/Ricoh/scripts/bscan)

and encountered a segfault when running:
bscan --mode=8-bit --shades=2 -bw --page=Letter --comp=lzw -duplex test

resulting  from the code which tests for DUPLEX support
scanimage -h --device="${i}"


The other backends don't segfault:

for f in $(scanimage -L | cut -d  ' ' -f2); do 
  f="${f#\`}"; f="${f%\'}"; 
  echo $f; 
  scanimage -h -d "${f}" >/dev/null; 
done
net:piii.acjlaw.net:sp15c:/dev/sg6
scanimage: rounded value of br-x from 215.47 to 215.47
scanimage: rounded value of br-y from 279.364 to 279.364
net:piii.acjlaw.net:hs2p:/dev/sg5
net:piii.acjlaw.net:epson2:libusb:001:002
net:piii.acjlaw.net:avision:/dev/sg6
Segmentation fault


I'm running Gentoo with 
media-gfx/sane-backends-1.0.20-r2
installed on both client and server.




More information about the sane-devel mailing list