[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Segmentation fault (df)



free -m
 free -m
             total       used       free     shared    buffers     cached
Mem:           249        246          2         72         19        161
-/+ buffers/cache:         66        183
Swap:          125         37         87

dpkg also gives error as Seg fault.
apt-get install chkrootkit
Reading Package Lists... Done
Building Dependency Tree... Done
chkrootkit is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 919 not upgraded.
5 not fully installed or removed.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
Setting up chkrootkit (0.44-2) ...
/var/lib/dpkg/info/chkrootkit.postinst: line 24: 12701 Segmentation fault      mv -f $CF.tmp $CF
dpkg: error processing chkrootkit (--configure):
 subprocess post-installation script returned error exit status 139
Setting up ocaml-base (3.08.2-1) ...
/var/lib/dpkg/info/ocaml-base.postinst: line 3: 12705 Segmentation fault      ln -sf ../ocaml-base-nox/Changes.gz /usr/share/doc/ocaml-base
dpkg: error processing ocaml-base (--configure):
 subprocess post-installation script returned error exit status 139
Setting up ocaml-nox (3.08.2-1) ...
/var/lib/dpkg/info/ocaml-nox.postinst: line 3: 12707 Segmentation fault      ln -sf /usr/lib/ocaml/3.08/caml /usr/include/caml
dpkg: error processing ocaml-nox (--configure):
 subprocess post-installation script returned error exit status 139
dpkg: dependency problems prevent configuration of ocaml:
 ocaml depends on ocaml-base (= 3.08.2-1); however:
  Package ocaml-base is not configured yet.
 ocaml depends on ocaml-base-3.08; however:
  Package ocaml-base-3.08 is not installed.
  Package ocaml-base which provides ocaml-base-3.08 is not configured yet.
 ocaml depends on ocaml-nox-3.08; however:
  Package ocaml-nox-3.08 is not installed.
  Package ocaml-nox which provides ocaml-nox-3.08 is not configured yet.
dpkg: error processing ocaml (--configure):
 dependency problems - leaving unconfigured
Setting up electric-fence (2.1.14) ...
ldconfig: /usr/local/lib/libstdc++.so.5 is not a symbolic link
/var/lib/dpkg/info/electric-fence.postinst: line 15: 12717 Segmentation fault      ln -sf ../share/doc/electric-fence /usr/doc/electric-fence
dpkg: error processing electric-fence (--configure):
 subprocess post-installation script returned error exit status 139
Errors were encountered while processing:
 chkrootkit
 ocaml-base
 ocaml-nox
 ocaml
 electric-fence
 
 
 

"Jan C. Nordholz" wrote:

On Thu, Feb 24, 2005 at 04:44:50PM +0530, Vijaya S wrote:
>
> Hi Jon,
> I treid but i am not able to instal electric-fence or any package
> i get dpkg error.
> and also the df is still giving Seg fault
>
> strace /bin/df
> strace /bin/df
> execve("/bin/df", ["/bin/df"], [/* 13 vars */]) = 0
> uname({sys="Linux", node="x.y.com", ...}) = 0
> brk(0)                                  = 0x804ff00
> old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
> 0x40017000
> access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
> open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)
> open("/etc/ld.so.cache", O_RDONLY)      = 3
> fstat64(3, 0xbffff478)                  = -1 ENOSYS (Function not implemented)
> fstat(3, {st_mode=S_IFREG|0644, st_size=79767, ...}) = 0
> old_mmap(NULL, 79767, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40018000
> close(3)                                = 0
> access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
> 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\200^\1"..., 512) = 512
> fstat(3, {st_mode=S_IFREG|0644, st_size=1244004, ...}) = 0
> old_mmap(NULL, 1254244, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4002c000
> old_mmap(0x40154000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
> 0x127000) = 0x40154000
> old_mmap(0x4015c000, 9060, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4015c000
> close(3)                                = 0
> munmap(0x40018000, 79767)               = 0
> --- SIGSEGV (Segmentation fault) @ 0 (0) ---
> +++ killed by SIGSEGV +++
>
>
> ldd /bin/df
> ldd /bin/df
>         libc.so.6 => /lib/libc.so.6 (0x4002c000)
>         /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
>
> dmesg gives me some errors
>
> request_module[net-pf-14]: waitpid(8040,...) failed, errno 1
> Unable to load interpreter /lib/ld-linux.so.2
> VM: killing process apache-ssl
> VM: killing process ipop3d
> Unable to load interpreter /lib/ld-linux.so.2
> Unable to load interpreter /lib/ld-linux.so.2
> VM: killing process cron
> VM: killing process mozilla-bin
> VM: killing process mixer_applet2
> VM: killing process 73
> VM: killing process imapd
> VFS: file-max limit 4096 reached
> Unable to load interpreter /lib/ld-linux.so.2
> Unable to load interpreter /lib/ld-linux.so.2
> Unable to load interpreter /lib/ld-linux.so.2
> Unable to load interpreter /lib/ld-linux.so.2
> VM: killing process sshd
> VM: killing process sdaemon
> VM: killing process sh
> VM: killing process netobjd
> VM: killing process procmail
> VM: killing process bash
> VM: killing process mgetty
> VM: killing process xscreensaver
> VM: terminating process XFree86
> VM: killing process mysqld
> VM: killing process nautilus
> VM: killing process apache
> VM: killing process apache-ssl
> memory : cb350b80
> memory : 00000000
> memory : cb350a90
> Can anyone throw light on the above and help me to sort it?
> Thanks in advance..
>
>
> Regards,
> Vijaya
Hi Vijaya,

I don't know if this has been proposed before, but: That the Virtual
Machine is randomly killing processes sounds to me like you're
severely running out of memory... what does "free" tell you?
I guess you've already checked that the dynamic library loader
ld-linux.so is at its proper place?
I'm still stabbing in the dark, because I can't understand why
df is the only executable that fails...
Oh wait: You're getting a dpkg error when you try to install a
random new package? What does it say exactly?

Jan

--
Jan C. Nordholz
<jckn at gmx dot net>

  ------------------------------------------------------------------------
                       Name: signature.asc
   signature.asc       Type: application/pgp-signature
                Description: Digital signature


Reply to: