Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 150214 - sys-process/procps-3.2.6 ends with seg. fault with uClibc
Summary: sys-process/procps-3.2.6 ends with seg. fault with uClibc
Status: RESOLVED DUPLICATE of bug 147020
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-05 15:19 UTC by Pablo Yanez Trujillo
Modified: 2006-10-06 08:50 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pablo Yanez Trujillo 2006-10-05 15:19:04 UTC
I installed Gentoo on a pc104 embedded system using the experimental/x86/embedded/stages/stage3-x86-uclibc-2006.1.tar.bz2 stage file.

I needed to kill some process and when I executed ps I got "segmentation fault". /proc is mounted so I tried each binary of sys-process/procps-3.2.6 and they all end in a "segmentation fault".

I though that I did some error while installing the embedded system, so I try to install (with vmware) a gentoo with uClibc. I downloaded the stage file and made chroot /mnt/gentoo .... when I execute ps I get a "segmentation fault".

A strace /bin/ps:

execve("/bin/ps", ["/bin/ps"], [/* 42 vars */]) = 0
old_mmap(NULL, 20, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7fb9000
stat("/etc/ld.so.cache", {st_mode=S_IFREG|0644, st_size=3719, ...}) = 0
open("/etc/ld.so.cache", O_RDONLY)      = 3
old_mmap(NULL, 3719, PROT_READ, MAP_SHARED, 3, 0) = 0xb7fb8000
close(3)                                = 0
open("/lib/libproc-3.2.6.so", O_RDONLY) = 3
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7fb7000
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\214%\0"..., 4096) = 4096
old_mmap(NULL, 122880, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f99000
old_mmap(0xb7f99000, 36468, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xb7f99000
old_mmap(0xb7fa2000, 4504, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x9000) = 0xb7fa2000
old_mmap(0xb7fa4000, 74392, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7fa4000
close(3)                                = 0
munmap(0xb7fb7000, 4096)                = 0
open("/lib/libc.so.0", O_RDONLY)        = 3
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7fb7000
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\260\352"..., 4096) = 4096
old_mmap(NULL, 303104, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f4f000
old_mmap(0xb7f4f000, 274284, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xb7f4f000
old_mmap(0xb7f92000, 7264, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x43000) = 0xb7f92000
old_mmap(0xb7f94000, 18168, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7f94000
close(3)                                = 0
munmap(0xb7fb7000, 4096)                = 0
munmap(0xb7fb8000, 3719)                = 0
mprotect(0xb7f92000, 4096, PROT_READ)   = 0
mprotect(0xb7fbe000, 4096, PROT_READ)   = 0
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfe2641c) = -1 ENOTTY (Inappropriate ioctl for device)
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
Process 20094 detached


I cannot say where is the problem. After some time with Google I found a thread in the uClibc mailing list with the same problem. http://www.busybox.net/lists/uclibc/2004-August/009731.html But I wasn't able to fix the problem in my vmware test installation.


Gentoo Base System version 1.12.4
Portage 2.1.1 (uclibc/x86, gcc-4.1.1, uclibc-0.9.28-r0, 2.6.17-gentoo-r7 i686)
=================================================================
System uname: 2.6.17-gentoo-r7 i686 unknown
Last Sync: Thu, 05 Oct 2006 18:50:02 +0000
ccache version 2.3 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i386-gentoo-linux-uclibc"
CFLAGS="-Os -pipe"
CHOST="i386-gentoo-linux-uclibc"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo"
CXXFLAGS="-Os -pipe"
DISTDIR="/var/tmp/distdir"
FEATURES="autoaddcvs autoconfig ccache distcc distlocks keepwork metadata-transfer nodoc noinfo noman parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://pandemonium.tiscali.de/pub/gentoo/"
LDFLAGS="-Wl,-z,relro"
LINGUAS=""
PKGDIR="/var/tmp/pkgs"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 bitmap-fonts cli dlloader dri elibc_uclibc input_devices_evdev input_devices_keyboard input_devices_mouse kernel_linux minimal ncurses pcre readline reflection session spl truetype-fonts type1-fonts uclibc userland_GNU video_cards_dummy video_cards_fbdev video_cards_v4l xorg zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 SpanKY gentoo-dev 2006-10-06 08:50:52 UTC

*** This bug has been marked as a duplicate of 147020 ***