ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: "Sergei O. Naumov" <vomus@rambler.ru>
To: ab@altlinux.org,
	ALT Linux Sisyphus discussions <sisyphus@lists.altlinux.org>
Subject: Re: [sisyphus] Работа sane ( доступ к устройствам )
Date: Mon, 20 Oct 2008 23:52:50 +0400
Message-ID: <200810202352.50473@VOMUS> (raw)
In-Reply-To: <6062a6e60810192308h14b6b461gf63b77955b783c7c@mail.gmail.com>

В сообщении от Понедельник 20 октября 2008 Alexander Bokovoy написал(a):

> > И несмотря на все это, sane все равно не получает доступ к сканеру. Может
> > он его не там ищет? При этом sane-find-scanner находит его там, где он и
> > есть.
>
> Запуск strace -p <sane's pid> -e trace=file против процесса sane во
> время поиска сканера даст ответ, куда же он все-таки пытается
> обратиться.

Удивительное дело! Запускаю scanimage -L от простого пользователя и он выводит 
мне

device `v4l:/dev/video0' is a Noname Pinnacle PCTV 40i/50i/110i (saa virtual 
device

Это есть мой TV-тюнер. Но после этого запускаю ту же самую команду от рута и 
получаю полный список:

device `smfp:XEROX WorkCentre 3119 Series on USB:0' is a XEROX WorkCentre 3119 
Series on USB:0 Flatbed Scanner
device `v4l:/dev/video0' is a Noname Pinnacle PCTV 40i/50i/110i (saa virtual 
device

После этого запускаю также sane-find-scanner от рута, он показывает мне мой 
сканер, а от юзера - нет. Однако, дальше еще интереснее - проходит минуты 
три/четыре, я запускаю от обычного юзера:

[serge@yarilo ~]$ strace -etrace=file scanimage -L

тут пропустил открытие libc и т.п.

open("", O_WRONLY|O_CREAT|O_APPEND, 0666) = -1 ENOENT (No such file or 
directory)
--- SIGCHLD (Child exited) @ 0 (0) ---
--- SIGCHLD (Child exited) @ 0 (0) ---
stat64("/proc/kallsyms", {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
--- SIGCHLD (Child exited) @ 0 (0) ---
FATAL: Could not load /lib/modules/2.6.25-std-def-alt10/modules.dep: 
Permission denied
--- SIGCHLD (Child exited) @ 0 (0) ---
FATAL: Could not load /lib/modules/2.6.25-std-def-alt10/modules.dep: 
Permission denied
--- SIGCHLD (Child exited) @ 0 (0) ---
FATAL: Could not load /lib/modules/2.6.25-std-def-alt10/modules.dep: 
Permission denied
--- SIGCHLD (Child exited) @ 0 (0) ---
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
Process 23432 detached
Ошибка сегментирования                                                  

Запустил то же от рута - он даже не показазал, что хочет почитать modules.dep, 
честно пробежал по всем устройствам в /dev/usb и т.п. и выдал мне мой 
сканер...

Мистика какая-то! Зачем sane ходить в modules.dep? И  почему это видно только 
тогда. когда он от обычного юзера запускается?

-- 
Сергей

  parent reply	other threads:[~2008-10-20 19:52 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-19 18:44 Sergei O. Naumov
2008-10-19 19:09 ` Igor Vlasenko
2008-10-19 19:53 ` Vitaly Lipatov
2008-10-20 16:56   ` Sergei O. Naumov
2008-11-09 22:35   ` Olvin
2008-10-20  5:07 ` Eugene Prokopiev
2008-10-20  6:08 ` Alexander Bokovoy
2008-10-20 17:02   ` Sergei O. Naumov
2008-10-20 19:52   ` Sergei O. Naumov [this message]
2008-10-21 19:45     ` Sergey Vlasov
2008-10-20 12:16 ` Anton Farygin
2008-10-20 16:56   ` Sergei O. Naumov
2008-10-20 21:44     ` Anton Farygin
2008-10-21 21:16       ` Sergei O. Naumov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200810202352.50473@VOMUS \
    --to=vomus@rambler.ru \
    --cc=ab@altlinux.org \
    --cc=sisyphus@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git