* [gentoo-user] acrobat reader can not run by normal user
@ 2006-06-23 14:45 fei huang
2006-06-24 16:26 ` Richard Fish
0 siblings, 1 reply; 6+ messages in thread
From: fei huang @ 2006-06-23 14:45 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1650 bytes --]
I'm not sure when did this issue arise, perhaps after a update of my glibc
or whatever packages that I could not remember, but seems ok with root
somehow, anyway, I used strace to track the running process and get the
following message ( the last few lines):
...
open("/lib/libgcc_s.so.1", O_RDONLY) = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200\25"..., 512) =
512
fstat64(4, {st_mode=S_IFREG|0644, st_size=168291, ...}) = 0
mmap2(NULL, 34052, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) =
0xb6844000
madvise(0xb6844000, 34052, MADV_SEQUENTIAL|0x1) = 0
mmap2(0xb684c000, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x7) = 0xb684c000
close(4) = 0
gettimeofday({1151073643, 460980}, NULL) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
exit_group(1) = ?
I'm sure that's not related with permissions, but no idea about how this
would happen.
hope the strace output for the root may help:
write(3, "\31\0\v\0\3\0`\2\0\0\0\0! Y\267\3\0`\0021\2\0\0000\2\0"..., 48) =
48
read(3, "\1\2\273\0\0\0\0\0\5\0\200\1\0\0\0\0\0\0\0\0\37\0\0\0\320"..., 32)
= 32
gettimeofday({1151073832, 21086}, NULL) = 0
gettimeofday({1151073832, 21215}, NULL) = 0
poll([{fd=3, events=POLLIN, revents=POLLIN}], 1, 0) = 1
ioctl(3, FIONREAD, [64]) = 0
read(3, "\34\0\273\0\3\0\240\0020\2\0\0\240\345j\0\1\0\0\0\0\0\0"..., 64) =
64
write(3, "\20\0\n\0\37\0`\2_ADOBE_ACROBAT_OPEN_FILE"..., 40) = 40
read(3, "\1\0\274\0\0\0\0\0002\2\0\0\0\0\0\0\1\0\0\0\37\0\0\0\320"..., 32) =
32
exit_group(0) = ?
thanks in advance..
daniel
[-- Attachment #2: Type: text/html, Size: 3981 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] acrobat reader can not run by normal user
2006-06-23 14:45 [gentoo-user] acrobat reader can not run by normal user fei huang
@ 2006-06-24 16:26 ` Richard Fish
2006-06-26 4:38 ` fei huang
0 siblings, 1 reply; 6+ messages in thread
From: Richard Fish @ 2006-06-24 16:26 UTC (permalink / raw
To: gentoo-user
On 6/23/06, fei huang <daniel.huangfei@gmail.com> wrote:
> I'm not sure when did this issue arise, perhaps after a update of my glibc
> or whatever packages that I could not remember, but seems ok with root
> somehow, anyway, I used strace to track the running process and get the
> following message ( the last few lines):
>
> ...
> open("/lib/libgcc_s.so.1", O_RDONLY) = 4
> read(4,
> "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200\25"...,
> 512) = 512
Hmm, acroread doesn't link directly against libgcc_s.so. However, it
will pay attention to your ~/.gtkrc-2.0 file, and possibly attempt to
load an engine to blend with a KDE environment. For example, I get:
12021 open("/usr/lib/gconv/ISO8859-1.so", O_RDONLY) = 6
12021 open("/home/rjf/.gtkrc-2.0", O_RDONLY|O_LARGEFILE) = 6
12021 open("/usr/share/themes/Qt/gtk-2.0/gtkrc", O_RDONLY|O_LARGEFILE) = 7
12021 open("/usr/lib/gtk-2.0/2.4.0/engines/libqtengine.so", O_RDONLY) = 8
12021 open("/usr/qt/3/lib/libqt-mt.so.3", O_RDONLY) = 8
12021 open("/etc/ld.so.cache", O_RDONLY) = 8
12021 open("/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/libstdc++.so.6", O_RDONLY) = 8
12021 open("/usr/lib/libmng.so.1", O_RDONLY) = 8
12021 open("/usr/lib/libjpeg.so.62", O_RDONLY) = 8
12021 open("/usr/lib/libpng.so.3", O_RDONLY) = 8
12021 open("/usr/lib/libXft.so.2", O_RDONLY) = 8
12021 open("/usr/lib/libSM.so.6", O_RDONLY) = 8
12021 open("/usr/lib/libICE.so.6", O_RDONLY) = 8
12021 open("/lib/libgcc_s.so.1", O_RDONLY) = 8
Does it still fail if you "mv ~/.gtkrc-2.0 ~/._gtkrc-2.0"?
Have you tried a revdep-rebuild? Did you recently change gcc
versions? Do you use prelinking, and if so, have you done a "prelink
-aq"?
-Richard
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] acrobat reader can not run by normal user
2006-06-24 16:26 ` Richard Fish
@ 2006-06-26 4:38 ` fei huang
2006-06-26 8:14 ` Richard Fish
0 siblings, 1 reply; 6+ messages in thread
From: fei huang @ 2006-06-26 4:38 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 2508 bytes --]
On 6/25/06, Richard Fish <bigfish@asmallpond.org> wrote:
>
> On 6/23/06, fei huang <daniel.huangfei@gmail.com> wrote:
> > I'm not sure when did this issue arise, perhaps after a update of my
> glibc
> > or whatever packages that I could not remember, but seems ok with root
> > somehow, anyway, I used strace to track the running process and get the
> > following message ( the last few lines):
> >
> > ...
> > open("/lib/libgcc_s.so.1", O_RDONLY) = 4
> > read(4,
> > "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200\25"...,
> > 512) = 512
>
> Hmm, acroread doesn't link directly against libgcc_s.so. However, it
> will pay attention to your ~/.gtkrc-2.0 file, and possibly attempt to
> load an engine to blend with a KDE environment. For example, I get:
>
> 12021 open("/usr/lib/gconv/ISO8859-1.so", O_RDONLY) = 6
> 12021 open("/home/rjf/.gtkrc-2.0", O_RDONLY|O_LARGEFILE) = 6
> 12021 open("/usr/share/themes/Qt/gtk-2.0/gtkrc", O_RDONLY|O_LARGEFILE) = 7
> 12021 open("/usr/lib/gtk-2.0/2.4.0/engines/libqtengine.so", O_RDONLY) = 8
> 12021 open("/usr/qt/3/lib/libqt-mt.so.3", O_RDONLY) = 8
> 12021 open("/etc/ld.so.cache", O_RDONLY) = 8
> 12021 open("/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/libstdc++.so.6",
> O_RDONLY) = 8
> 12021 open("/usr/lib/libmng.so.1", O_RDONLY) = 8
> 12021 open("/usr/lib/libjpeg.so.62", O_RDONLY) = 8
> 12021 open("/usr/lib/libpng.so.3", O_RDONLY) = 8
> 12021 open("/usr/lib/libXft.so.2", O_RDONLY) = 8
> 12021 open("/usr/lib/libSM.so.6", O_RDONLY) = 8
> 12021 open("/usr/lib/libICE.so.6", O_RDONLY) = 8
> 12021 open("/lib/libgcc_s.so.1", O_RDONLY) = 8
>
> Does it still fail if you "mv ~/.gtkrc-2.0 ~/._gtkrc-2.0"?
yes, it failed as always. I've fould the problem has nothing to do with
gtkrc-2.0,
Have you tried a revdep-rebuild? Did you recently change gcc
> versions? Do you use prelinking, and if so, have you done a "prelink
> -aq"?
I don't use prelink.. , and even don't know what it is....
I compared all the open() system calls between outputs generated by root and
the normal user, and found something strange: both root and the normal user
version trying to open libstdc++.so.6, after checking /etc/ld.so.conf, what
have made me confused is the root
version choose /usr/lib/libstdc++-v3/ thus the normal user choose
/usr/lib/gcc/i686-pc-linux-gnu/4.3.6/, probably this is the answer to the
crash, but I just wonder what make them having different choices with the
same ld.so.conf?
thank you..
>
-Richard
> --
> gentoo-user@gentoo.org mailing list
>
>
[-- Attachment #2: Type: text/html, Size: 4047 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] acrobat reader can not run by normal user
2006-06-26 4:38 ` fei huang
@ 2006-06-26 8:14 ` Richard Fish
2006-06-26 9:04 ` fei huang
0 siblings, 1 reply; 6+ messages in thread
From: Richard Fish @ 2006-06-26 8:14 UTC (permalink / raw
To: gentoo-user
On 6/25/06, fei huang <daniel.huangfei@gmail.com> wrote:
> On 6/25/06, Richard Fish <bigfish@asmallpond.org > wrote:
> I compared all the open() system calls between outputs generated by root and
> the normal user, and found something strange: both root and the normal user
> version trying to open libstdc++.so.6, after checking /etc/ld.so.conf, what
> have made me confused is the root
> version choose /usr/lib/libstdc++-v3/ thus the normal user choose
> /usr/lib/gcc/i686-pc-linux-gnu/4.3.6/, probably this is the
> answer to the crash, but I just wonder what make them having different
> choices with the same ld.so.conf?
The user environment can override ld.so.conf. Try "env | grep LD" as
both the normal user and root.
-Richard
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] acrobat reader can not run by normal user
2006-06-26 8:14 ` Richard Fish
@ 2006-06-26 9:04 ` fei huang
2006-06-26 14:06 ` fei huang
0 siblings, 1 reply; 6+ messages in thread
From: fei huang @ 2006-06-26 9:04 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 970 bytes --]
On 6/26/06, Richard Fish <bigfish@asmallpond.org> wrote:
>
> On 6/25/06, fei huang <daniel.huangfei@gmail.com> wrote:
> > On 6/25/06, Richard Fish <bigfish@asmallpond.org > wrote:
> > I compared all the open() system calls between outputs generated by root
> and
> > the normal user, and found something strange: both root and the normal
> user
> > version trying to open libstdc++.so.6, after checking /etc/ld.so.conf,
> what
> > have made me confused is the root
> > version choose /usr/lib/libstdc++-v3/ thus the normal user choose
> > /usr/lib/gcc/i686-pc-linux-gnu/4.3.6/, probably this is the
> > answer to the crash, but I just wonder what make them having different
> > choices with the same ld.so.conf?
>
> The user environment can override ld.so.conf. Try "env | grep LD" as
> both the normal user and root.
mm, I have totally forgotten those tricks, will check it back home.
thanks a lot Richard..
-Richard
> --
> gentoo-user@gentoo.org mailing list
>
>
[-- Attachment #2: Type: text/html, Size: 1633 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] acrobat reader can not run by normal user
2006-06-26 9:04 ` fei huang
@ 2006-06-26 14:06 ` fei huang
0 siblings, 0 replies; 6+ messages in thread
From: fei huang @ 2006-06-26 14:06 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 545 bytes --]
>
> unfortunately, no unusual environment settings found, but there is a very
> > important message that I haven't noticed. that is the libstdc++ root loads
> > is libstdc++.so.5, however the user load the version libstdc++.so.6, so
> > that's why they goes to /usr/lib/libstdc++-v3/ and
> > /usr/lib/gcc/i686-pc-li8nux-gnu/4.3.6/ respectively.
>
>
still the question is how could this happen? no special environment
variables, if the acroread has been compiled with version 5, it should be
failed even for the root, just odd.
thanks,
daniel
[-- Attachment #2: Type: text/html, Size: 902 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2006-06-26 14:16 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-23 14:45 [gentoo-user] acrobat reader can not run by normal user fei huang
2006-06-24 16:26 ` Richard Fish
2006-06-26 4:38 ` fei huang
2006-06-26 8:14 ` Richard Fish
2006-06-26 9:04 ` fei huang
2006-06-26 14:06 ` fei huang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox