Re: Segmentation fault
On Monday 29 October 2001 20:38, Karsten M. Self wrote:
> on Mon, Oct 29, 2001 at 03:36:17PM +0100, Raffaele Sandrini (rasa@gmx.ch)
wrote:
> > Hi,
> >
> > I can't use man anymore. On every manpage i get a segmentation fault.
> > Im using the 2.4.13-ac4 kernel.
> > any hints?
>
> $ strace man foo
Hi again,
here the output of "strace man ls"
-----------------------------
open("/lib/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\270\327"..., 1024) =
1024
fstat64(0x3, 0xbfffedbc) = 0
old_mmap(NULL, 1187712, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4001a000
mprotect(0x40132000, 40832, PROT_NONE) = 0
old_mmap(0x40132000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
0x117000) = 0x40132000
old_mmap(0x40138000, 16256, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40138000
close(3) = 0
open("/usr/local/qt3/lib/libdb2.so.2", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/usr/local/lib/libdb2.so.2", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/opt/kde/lib/libdb2.so.2", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("i686/mmx/libdb2.so.2", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("i686/libdb2.so.2", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("mmx/libdb2.so.2", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("libdb2.so.2", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/lib/libdb2.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0_\0\000"..., 1024) =
1024
fstat64(0x3, 0xbfffedac) = 0
old_mmap(NULL, 265836, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4013c000
mprotect(0x4017c000, 3692, PROT_NONE) = 0
old_mmap(0x4017c000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
0x3f000) = 0x4017c000
close(3) = 0
munmap(0x40016000, 14566) = 0
umask(022) = 022
brk(0) = 0x80635d4
brk(0x80635fc) = 0x80635fc
brk(0x8064000) = 0x8064000
fstat64(0, 0xbffff89c) = 0
fstat64(0x1, 0xbffff89c) = 0
fstat64(0x2, 0xbffff89c) = 0
getcwd("/root", 4094) = 6
SYS_199(0x40137058, 0, 0x40137d60, 0x40134e70, 0xbffff97c) = 6
semop(1075015768, 0x40134e70, 0) = 6
ioctl(0, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(0, TIOCGWINSZ, {ws_row=30, ws_col=80, ws_xpixel=0, ws_ypixel=0}) = 0
open("/root/.manpath", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/etc/manpath.config", O_RDONLY) = 3
fstat64(0x3, 0xbfffd49c) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40016000
read(3, "# manpath.config\n#\n# This file i"..., 4096) = 4096
read(3, "n the order listed here;\n# the d"..., 4096) = 570
read(3, "", 4096) = 0
close(3) = 0
munmap(0x40016000, 4096) = 0
ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(0, TCGETS, {B38400 opost isig icanon echo ...}) = 0
rt_sigaction(SIGINT, {0x804e330, [INT], SA_RESTART|0x4000000}, {SIG_DFL}, 8) =
0
stat64(0x8063a08, 0xbffff724) = 0
stat64(0x8063a50, 0xbffff724) = -1 ENOENT (No such file or
directory)
stat64(0x80639b8, 0xbffff724) = -1 ENOENT (No such file or
directory)
stat64(0x8063928, 0xbffff724) = 0
stat64(0x8063ae8, 0xbffff724) = 0
stat64(0x8063ef0, 0xbffff714) = 0
stat64(0x8063ef0, 0xbffff724) = 0
stat64(0x8063ef0, 0xbffff714) = -1 ENOENT (No such file or
directory)
stat64(0x8063f30, 0xbffff714) = -1 ENOENT (No such file or
directory)
stat64(0x8063ef0, 0xbffff714) = 0
stat64(0x8063ef0, 0xbffff724) = 0
stat64(0x8063ef0, 0xbffff714) = -1 ENOENT (No such file or
directory)
stat64(0x8063ef0, 0xbffff714) = -1 ENOENT (No such file or
directory)
stat64(0x80639b8, 0xbffff724) = -1 ENOENT (No such file or
directory)
stat64(0x80637a0, 0xbffff724) = 0
brk(0x8065000) = 0x8065000
brk(0x8066000) = 0x8066000
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++
------------------------------------
and here the output of "man -d ls"
----------------------------------
ruid=6, euid=6
++priv_drop_count = 1
>From the config file /etc/manpath.config:
Mandatory mandir `/usr/man'.
Mandatory mandir `/usr/share/man'.
Mandatory mandir `/usr/X11R6/man'.
Mandatory mandir `/usr/local/man'.
Path `/bin' mapped to mandir `/usr/share/man'.
Path `/usr/bin' mapped to mandir `/usr/share/man'.
Path `/sbin' mapped to mandir `/usr/share/man'.
Path `/usr/sbin' mapped to mandir `/usr/share/man'.
Path `/usr/local/bin' mapped to mandir `/usr/local/man'.
Path `/usr/local/bin' mapped to mandir `/usr/local/share/man'.
Path `/usr/local/sbin' mapped to mandir `/usr/local/man'.
Path `/usr/local/sbin' mapped to mandir `/usr/local/share/man'.
Path `/usr/X11R6/bin' mapped to mandir `/usr/X11R6/man'.
Path `/usr/bin/X11' mapped to mandir `/usr/X11R6/man'.
Path `/usr/games' mapped to mandir `/usr/share/man'.
Path `/opt/bin' mapped to mandir `/opt/man'.
Path `/opt/sbin' mapped to mandir `/opt/man'.
Global mandir `/usr/man', catdir `/var/cache/man/fsstnd'.
Global mandir `/usr/share/man', catdir `/var/cache/man'.
Global mandir `/usr/local/man', catdir `/var/cache/man/oldlocal'.
Global mandir `/usr/local/share/man', catdir `/var/cache/man/local'.
Global mandir `/usr/X11R6/man', catdir `/var/cache/man/X11R6'.
Global mandir `/opt/man', catdir `/var/cache/man/opt'.
Added section `1'.
Added section `n'.
Added section `l'.
Added section `8'.
Added section `3'.
Added section `3pm'.
Added section `3perl'.
Added section `2'.
Added section `5'.
Added section `4'.
Added section `9'.
Added section `6'.
Added section `7'.
`/usr/man' `' `1'
`/usr/share/man' `' `1'
`/usr/X11R6/man' `' `1'
`/usr/local/man' `' `1'
`/bin' `/usr/share/man' `0'
`/usr/bin' `/usr/share/man' `0'
`/sbin' `/usr/share/man' `0'
`/usr/sbin' `/usr/share/man' `0'
`/usr/local/bin' `/usr/local/man' `0'
`/usr/local/bin' `/usr/local/share/man' `0'
`/usr/local/sbin' `/usr/local/man' `0'
`/usr/local/sbin' `/usr/local/share/man' `0'
`/usr/X11R6/bin' `/usr/X11R6/man' `0'
`/usr/bin/X11' `/usr/X11R6/man' `0'
`/usr/games' `/usr/share/man' `0'
`/opt/bin' `/opt/man' `0'
`/opt/sbin' `/opt/man' `0'
`/usr/man' `/var/cache/man/fsstnd' `-1'
`/usr/share/man' `/var/cache/man' `-1'
`/usr/local/man' `/var/cache/man/oldlocal' `-1'
`/usr/local/share/man' `/var/cache/man/local' `-1'
`/usr/X11R6/man' `/var/cache/man/X11R6' `-1'
`/opt/man' `/var/cache/man/opt' `-1'
`1' `' `-4'
`n' `' `-4'
`l' `' `-4'
`8' `' `-4'
`3' `' `-4'
`3pm' `' `-4'
`3perl' `' `-4'
`2' `' `-4'
`5' `' `-4'
`4' `' `-4'
`9' `' `-4'
`6' `' `-4'
`7' `' `-4'
is a tty
real user = 6; effective user = 6
using exec /usr/bin/pager -s as pager
path directory /usr/local/sbin is in the config file
adding /usr/local/man to manpath
man: warning: /usr/local/share/man: No such file or directory
path directory /usr/local/bin is in the config file
/usr/local/man is already in the manpath
man: warning: /usr/local/share/man: No such file or directory
path directory /usr/sbin is in the config file
adding /usr/share/man to manpath
path directory /usr/bin is in the config file
/usr/share/man is already in the manpath
path directory /sbin is in the config file
/usr/share/man is already in the manpath
path directory /bin is in the config file
/usr/share/man is already in the manpath
path directory /usr/bin/X11 is in the config file
adding /usr/X11R6/man to manpath
path directory /usr/local/j2re1.3.0/bin is not in the config file
but does have a ../man or man subdirectory
adding /usr/local/j2re1.3.0/man to manpath
path directory /usr/local/jdk118_v3/bin is not in the config file
and doesn't have ../man or man subdirectories
path directory /opt/kde/bin is not in the config file
but does have a ../man or man subdirectory
adding /opt/kde/man to manpath
path directory /usr/local/qt3/bin is not in the config file
and doesn't have ../man or man subdirectories
path directory /usr/local/bin is in the config file
/usr/local/man is already in the manpath
man: warning: /usr/local/share/man: No such file or directory
path directory /usr/bin is in the config file
/usr/share/man is already in the manpath
path directory /bin is in the config file
/usr/share/man is already in the manpath
path directory /usr/bin/X11 is in the config file
/usr/X11R6/man is already in the manpath
path directory /usr/games is in the config file
/usr/share/man is already in the manpath
adding mandatory man directories
adding /usr/man to manpath
/usr/share/man is already in the manpath
/usr/X11R6/man is already in the manpath
/usr/local/man is already in the manpath
---------------------
I hope that helps
cheers,
Raffaele
--
Raffaele Sandrini <rasa@gmx.ch>
For encrypted Mail get my Public Key from "search.keyserver.net"
ID: 0xEC4950E9
Reply to: