[sane-devel] Bus Error on pnm backend in FreeBSD 8

Alejandro Imass ait at p2ee.org
Mon Mar 22 16:15:27 UTC 2010

(sorry if this is a double post, I hit send before conforming my
subscription to the list)

I am trying to get the pnm backend to work on FreeBSD. I originally
thought it was related to an old bug in pnm.c and had filed this bug
which is now closed:


I built the FreeBSD port using the patch method and patching the pnm.c
file with the diff I got from the oriniogal pnm.c file and the pnm.c
file I got from the latest master via git. I verified that the patch
worked by examining the port's work directory and it patched perfectly
before build.

The FreeBSD port is built from a 1.0.20 freeze, here are the first few
lines of the ChangeLog:

******  Release of sane-backends 1.0.20. End of code freeze ******

2009-05-03  m. allan noah <kitno455 a t gmail d o t com>
       * config.guess, config.sub: updated to latest versions
       * NEWS, configure.in, configure: updated for 1.0.20
       * sane-backends.lsm, doc/releases.txt: minor tweaks
       * doc/descriptions/coolscan3.desc, doc/descriptions/rts8891.desc:
         add :new marker, correct manpage link

2009-05-01  m. allan noah <kitno455 a t gmail d o t com>
       * backend/fujitsu.c: copy_buffer() needs to count lines, or M309[12]
         cannot scan in duplex

I am attaching the debug output with SANE_DEBUG_DLL=255, the FBSD
Kernel trace in plain text (bzipped) and the patch file. I am
available to help debug this on FBSD, but I don't know how to proceed.

Thanks in advance,
Alejandro Imass
-------------- next part --------------
[root at lucifer ~]# ktrace scanimage -L
[sanei_debug] Setting debug level of dll to 255.
[dll] sane_init: SANE dll backend version 1.0.12 from sane-backends 1.0.20
[dll] sane_init/read_dlld: processing /usr/local/etc/sane.d/dll.d ...
[dll] sane_init/read_dlld: done.
[dll] sane_init/read_config: reading dll.conf
[dll] add_backend: adding backend `pnm'
[dll] sane_get_devices
[dll] load: searching backend `pnm' in `/usr/local/lib/sane'
[dll] load: trying to load `/usr/local/lib/sane/libsane-pnm.so.1'
[dll] load: dlopen()ing `/usr/local/lib/sane/libsane-pnm.so.1'
[dll] init: initializing backend `pnm'
[dll] init: backend `pnm' is version 1.0.9
Bus error: 10 (core dumped)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ktrace.txt.bz2
Type: application/x-bzip2
Size: 26863 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20100322/fce96ab1/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-backend-pnm.c
Type: application/octet-stream
Size: 504 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20100322/fce96ab1/attachment-0001.obj>

More information about the sane-devel mailing list