[Bug 283901] graphics/epsonscan2

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 07 Jan 2025 04:39:52 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283901

            Bug ID: 283901
           Summary: graphics/epsonscan2
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: alex@dawnmail.net
                CC: fbsd@opal.com
             Flags: maintainer-feedback?(fbsd@opal.com)
                CC: fbsd@opal.com

Created attachment 256495
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=256495&action=edit
dmesg.boot

$ freebsd-version
14.2-RELEASE
$

I have used the Epson printer/scanner WP-4540.
It worked fine in FreeBSD 13.x. But, not in FreeBSD 14.x.

Scanning fails with 'simple-scan' or 'epsonscan2' or 'xsane' or 'scanimage'.


$ scanimage -L
Illegal instruction (core dumped)
$ ls -l grep core
-rw-------   1 swift swift   27447296 Dec 28 12:08 scanimage.core
$

The core is generated by line 1098 of the file
   sane-backends-1.3.1/backend/dll.c:


      if (!be->inited)   <--- line 1094
        if (init (be) != SANE_STATUS_GOOD)
          continue;

/* FIRST WORKAROUND start */
char *es2 = "epsonscan2";
if (strcmp (be->name, es2) == 0)
     continue;
/* FIRST WORKAROUND end */

      status = (*(op_get_devs_t)be->op[OP_GET_DEVS]) (&be_list, local_only);
<--- line 1098

A simpler workaround, without changing any code, is to delete the following
file:
   /usr/local/etc/sane.d/dll.d/epsonscan2

$ cat /usr/local/etc/sane.d/dll.d/epsonscan2
epsonscan2
$

Scanning works fine now with simple-scan or any other FreeBSD software.

-- 
You are receiving this mail because:
You are the assignee for the bug.