LINUX.ORG.RU

scanimage segmentation fault


0

1

Пробую запустить sane на роутере в итоге segmentation fault. В чем может быть причина? куда копать?

 [admin@DLINK-C4CE87 root]$ export SANE_DEBUG_DLL=255
[admin@DLINK-C4CE87 root]$ scanimage
[sanei_debug] Setting debug level of dll to 255.
[dll] sane_init: SANE dll backend version 1.0.13 from sane-backends 1.0.22
[dll] sane_init/read_dlld: attempting to open directory `./dll.d'
[dll] sane_init/read_dlld: attempting to open directory `/opt/etc/sane.d/dll.d'
[dll] sane_init/read_dlld: using config directory `/opt/etc/sane.d/dll.d'
[dll] sane_init/read_dlld: done.
[dll] sane_init/read_config: reading dll.conf
[dll] add_backend: adding backend `net'
[dll] add_backend: adding backend `abaton'
[dll] add_backend: adding backend `agfafocus'
[dll] add_backend: adding backend `apple'
[dll] add_backend: adding backend `avision'
[dll] add_backend: adding backend `artec'
[dll] add_backend: adding backend `artec_eplus48u'
[dll] add_backend: adding backend `as6e'
[dll] add_backend: adding backend `bh'
[dll] add_backend: adding backend `canon'
[dll] add_backend: adding backend `canon630u'
[dll] add_backend: adding backend `canon_dr'
[dll] add_backend: adding backend `cardscan'
[dll] add_backend: adding backend `coolscan'
[dll] add_backend: adding backend `coolscan3'
[dll] add_backend: adding backend `dell1600n_net'
[dll] add_backend: adding backend `dmc'
[dll] add_backend: adding backend `epjitsu'
[dll] add_backend: adding backend `epson2'
[dll] add_backend: adding backend `fujitsu'
[dll] add_backend: adding backend `genesys'
[dll] add_backend: adding backend `gt68xx'
[dll] add_backend: adding backend `hp'
[dll] add_backend: adding backend `hp3900'
[dll] add_backend: adding backend `hpsj5s'
[dll] add_backend: adding backend `hp3500'
[dll] add_backend: adding backend `hp4200'
[dll] add_backend: adding backend `hp5400'
[dll] add_backend: adding backend `hp5590'
[dll] add_backend: adding backend `hpljm1005'
[dll] add_backend: adding backend `hs2p'
[dll] add_backend: adding backend `ibm'
[dll] add_backend: adding backend `kodak'
[dll] add_backend: adding backend `kvs1025'
[dll] add_backend: adding backend `kvs20xx'
[dll] add_backend: adding backend `leo'
[dll] add_backend: adding backend `lexmark'
[dll] add_backend: adding backend `ma1509'
[dll] add_backend: adding backend `magicolor'
[dll] add_backend: adding backend `matsushita'
[dll] add_backend: adding backend `microtek'
[dll] add_backend: adding backend `microtek2'
[dll] add_backend: adding backend `mustek'
[dll] add_backend: adding backend `mustek_usb'
[dll] add_backend: adding backend `mustek_usb2'
[dll] add_backend: adding backend `nec'
[dll] add_backend: adding backend `niash'
[dll] add_backend: adding backend `pie'
[dll] add_backend: adding backend `pint'
[dll] add_backend: adding backend `pixma'
[dll] add_backend: adding backend `plustek'
[dll] add_backend: adding backend `qcam'
[dll] add_backend: adding backend `ricoh'
[dll] add_backend: adding backend `rts8891'
[dll] add_backend: adding backend `s9036'
[dll] add_backend: adding backend `sceptre'
[dll] add_backend: adding backend `sharp'
[dll] add_backend: adding backend `sm3600'
[dll] add_backend: adding backend `sm3840'
[dll] add_backend: adding backend `snapscan'
[dll] add_backend: adding backend `sp15c'
[dll] add_backend: adding backend `tamarack'
[dll] add_backend: adding backend `teco1'
[dll] add_backend: adding backend `teco2'
[dll] add_backend: adding backend `teco3'
[dll] add_backend: adding backend `u12'
[dll] add_backend: adding backend `umax'
[dll] add_backend: adding backend `umax1220u'
[dll] add_backend: adding backend `v4l'
[dll] add_backend: adding backend `xerox_mfp'
[dll] sane_get_devices
[dll] load: searching backend `xerox_mfp' in `/opt/lib/sane'
[dll] load: trying to load `/opt/lib/sane/libsane-xerox_mfp.so.1'
[dll] load: couldn't open `/opt/lib/sane/libsane-xerox_mfp.so.1' (No such file or directory)
[dll] load: couldn't find backend `xerox_mfp' (No such file or directory)
[dll] load: searching backend `v4l' in `/opt/lib/sane'
[dll] load: trying to load `/opt/lib/sane/libsane-v4l.so.1'
[dll] load: couldn't open `/opt/lib/sane/libsane-v4l.so.1' (No such file or directory)
[dll] load: couldn't find backend `v4l' (No such file or directory)
[dll] load: searching backend `umax1220u' in `/opt/lib/sane'
[dll] load: trying to load `/opt/lib/sane/libsane-umax1220u.so.1'
[dll] load: couldn't open `/opt/lib/sane/libsane-umax1220u.so.1' (No such file or directory)
[dll] load: couldn't find backend `umax1220u' (No such file or directory)
[dll] load: searching backend `umax' in `/opt/lib/sane'
[dll] load: trying to load `/opt/lib/sane/libsane-umax.so.1'
[dll] load: couldn't open `/opt/lib/sane/libsane-umax.so.1' (No such file or directory)
[dll] load: couldn't find backend `umax' (No such file or directory)
[dll] load: searching backend `u12' in `/opt/lib/sane'
[dll] load: trying to load `/opt/lib/sane/libsane-u12.so.1'
[dll] load: couldn't open `/opt/lib/sane/libsane-u12.so.1' (No such file or directory)
[dll] load: couldn't find backend `u12' (No such file or directory)
[dll] load: searching backend `teco3' in `/opt/lib/sane'
[dll] load: trying to load `/opt/lib/sane/libsane-teco3.so.1'
[dll] load: couldn't open `/opt/lib/sane/libsane-teco3.so.1' (No such file or directory)
[dll] load: couldn't find backend `teco3' (No such file or directory)
[dll] load: searching backend `teco2' in `/opt/lib/sane'
[dll] load: trying to load `/opt/lib/sane/libsane-teco2.so.1'
[dll] load: couldn't open `/opt/lib/sane/libsane-teco2.so.1' (No such file or directory)
[dll] load: couldn't find backend `teco2' (No such file or directory)
[dll] load: searching backend `teco1' in `/opt/lib/sane'
[dll] load: trying to load `/opt/lib/sane/libsane-teco1.so.1'
[dll] load: couldn't open `/opt/lib/sane/libsane-teco1.so.1' (No such file or directory)
[dll] load: couldn't find backend `teco1' (No such file or directory)
[dll] load: searching backend `tamarack' in `/opt/lib/sane'
[dll] load: trying to load `/opt/lib/sane/libsane-tamarack.so.1'
[dll] load: couldn't open `/opt/lib/sane/libsane-tamarack.so.1' (No such file or directory)
[dll] load: couldn't find backend `tamarack' (No such file or directory)
[dll] load: searching backend `sp15c' in `/opt/lib/sane'
[dll] load: trying to load `/opt/lib/sane/libsane-sp15c.so.1'
[dll] load: couldn't open `/opt/lib/sane/libsane-sp15c.so.1' (No such file or directory)
[dll] load: couldn't find backend `sp15c' (No such file or directory)
[dll] load: searching backend `snapscan' in `/opt/lib/sane'
[dll] load: trying to load `/opt/lib/sane/libsane-snapscan.so.1'
[dll] load: couldn't open `/opt/lib/sane/libsane-snapscan.so.1' (No such file or directory)
[dll] load: couldn't find backend `snapscan' (No such file or directory)
[dll] load: searching backend `sm3840' in `/opt/lib/sane'
[dll] load: trying to load `/opt/lib/sane/libsane-sm3840.so.1'
[dll] load: couldn't open `/opt/lib/sane/libsane-sm3840.so.1' (No such file or directory)
[dll] load: couldn't find backend `sm3840' (No such file or directory)
[dll] load: searching backend `sm3600' in `/opt/lib/sane'
[dll] load: trying to load `/opt/lib/sane/libsane-sm3600.so.1'
[dll] load: couldn't open `/opt/lib/sane/libsane-sm3600.so.1' (No such file or directory)
[dll] load: couldn't find backend `sm3600' (No such file or directory)
[dll] load: searching backend `sharp' in `/opt/lib/sane'
[dll] load: trying to load `/opt/lib/sane/libsane-sharp.so.1'
[dll] load: couldn't open `/opt/lib/sane/libsane-sharp.so.1' (No such file or directory)
[dll] load: couldn't find backend `sharp' (No such file or directory)
[dll] load: searching backend `sceptre' in `/opt/lib/sane'
[dll] load: trying to load `/opt/lib/sane/libsane-sceptre.so.1'
[dll] load: couldn't open `/opt/lib/sane/libsane-sceptre.so.1' (No such file or directory)
[dll] load: couldn't find backend `sceptre' (No such file or directory)
[dll] load: searching backend `s9036' in `/opt/lib/sane'
[dll] load: trying to load `/opt/lib/sane/libsane-s9036.so.1'
[dll] load: couldn't open `/opt/lib/sane/libsane-s9036.so.1' (No such file or directory)
[dll] load: couldn't find backend `s9036' (No such file or directory)
[dll] load: searching backend `rts8891' in `/opt/lib/sane'
[dll] load: trying to load `/opt/lib/sane/libsane-rts8891.so.1'
[dll] load: couldn't open `/opt/lib/sane/libsane-rts8891.so.1' (No such file or directory)
[dll] load: couldn't find backend `rts8891' (No such file or directory)
[dll] load: searching backend `ricoh' in `/opt/lib/sane'
[dll] load: trying to load `/opt/lib/sane/libsane-ricoh.so.1'
[dll] load: couldn't open `/opt/lib/sane/libsane-ricoh.so.1' (No such file or directory)
[dll] load: couldn't find backend `ricoh' (No such file or directory)
[dll] load: searching backend `qcam' in `/opt/lib/sane'
[dll] load: trying to load `/opt/lib/sane/libsane-qcam.so.1'
[dll] load: couldn't open `/opt/lib/sane/libsane-qcam.so.1' (No such file or directory)
[dll] load: couldn't find backend `qcam' (No such file or directory)
[dll] load: searching backend `plustek' in `/opt/lib/sane'
[dll] load: trying to load `/opt/lib/sane/libsane-plustek.so.1'
[dll] load: couldn't open `/opt/lib/sane/libsane-plustek.so.1' (No such file or directory)
[dll] load: couldn't find backend `plustek' (No such file or directory)
[dll] load: searching backend `pixma' in `/opt/lib/sane'
[dll] load: trying to load `/opt/lib/sane/libsane-pixma.so.1'
[dll] load: couldn't open `/opt/lib/sane/libsane-pixma.so.1' (No such file or directory)
[dll] load: couldn't find backend `pixma' (No such file or directory)
[dll] load: searching backend `pint' in `/opt/lib/sane'
[dll] load: trying to load `/opt/lib/sane/libsane-pint.so.1'
[dll] load: couldn't open `/opt/lib/sane/libsane-pint.so.1' (No such file or directory)
[dll] load: couldn't find backend `pint' (No such file or directory)
[dll] load: searching backend `pie' in `/opt/lib/sane'
[dll] load: trying to load `/opt/lib/sane/libsane-pie.so.1'
[dll] load: couldn't open `/opt/lib/sane/libsane-pie.so.1' (No such file or directory)
[dll] load: couldn't find backend `pie' (No such file or directory)
[dll] load: searching backend `niash' in `/opt/lib/sane'
[dll] load: trying to load `/opt/lib/sane/libsane-niash.so.1'
[dll] load: dlopen()ing `/opt/lib/sane/libsane-niash.so.1'
Segmentation fault 

http://pastebin.com/7nPzAMeQ


А какая прошивка стоит? Может быть есть возможность прошиться в другую прошивку или найти другую версию scanimage или уведомить разработчиков репозитория/прошивки. Скорее всего просто программа неправильно собрана и нужно разбираться в исходниках, патчить и по 100 раз собирать.

Я со scanimage не работал ни разу, но если его не смущает отсутствие некоторых библиотек, то может и /opt/lib/sane/libsane-niash.so.1 можно попробовать удалить?

Black_Roland ★★★ ()
Ответ на: комментарий от Black_Roland

Пробовал удалить, сыпется на следующей библиотеке. Возможности прошиться в другую прошивку нет, по крайней мере в другую поддерживающую установку пакетов. Сейчас стоит прошивка от Олега. Роутер Dlink dir-620 c1

noname2244 ()