[Bug 285734] graphics/epsonscan2: Illegal instruction core dump (14.2-RELEASE)

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 01 Apr 2025 04:00:59 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=285734

--- Comment #2 from David Horwitt <david@mhgeode.net> ---
Investigating further, the SIGILL was due to poorly handled NULL return values
from strtok() in Standalone/initdeviceselectcombobox.cpp and 
Standalone/deviceselectorcombobox.cpp. It looks like the scanner returns it's
serial number in an unexpected format.

Fixing that, the program failed to communicate with the scanner, a Perfection
V500
(04b8:0130).

I convinced myself that the scanner requires es2intif (since epsonscan2.rules
indicates
that PID 0130 requires the firmware file esfw7c.bin. I downloaded this firwware
file,
installed it in compat/linux/usr/share/epsonscan2/ and modified 
Scanner/Scanner.cpp to use es2intif as the interpreter. I could see that
es2intif was
being invoked, but epsonscan2 timed out trying to connect to the scanner (and
put the scanner in a state that required power cycling before repeating the
experiment).

es2intif is too opaque for me to pursue debugging; my conclusion is that this
scanner is
not supported by epsonscan2 (or, at least not without someone with more
knowledge and 
time than I working on it).

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