Gentoo Archives: gentoo-embedded

From: "Тимофей Кушнир" <timophey.kushnir@×××××.com>
To: gentoo-embedded@l.g.o
Subject: [gentoo-embedded] [x86-uclibc-2006.1] GCC-4.1.x + uClibc-0.9.28 + procps-3.2.x = Segmentation Fault ?
Date: Sat, 21 Oct 2006 21:21:11
Message-Id: 33f0f3e0610211420k1af9b52cj9c720320aef02024@mail.gmail.com
Hello all!

I'm trying to use stage3-x86-uclibc-2006.1.tar.bz2 contents as buildroot
for my system, but when I use any program from sys-process/procps-3.2.6
package present in it (ps, vmstat, etc...) it ends with "Segmentation
fault" error.
I discovered with gcc the fault is in gcc-4.1.1 code:

==== 8< ==== CUT HERE ==== 8< ==== CUT HERE ==== 8< ==== CUT HERE ====
fast procps-3.2.7 # LD_LIBRARY_PATH=./proc ./free
Segmentation fault (core dumped)
fast procps-3.2.7 # LD_LIBRARY_PATH=./proc gdb ./free
GNU gdb 6.4
Copyright 2005 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-gentoo-linux-uclibc"...Using host
libthread_db library "/lib/libthread_db.so.1".

(gdb) core-file core.9698
Core was generated by `./free'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from
/var/tmp/portage/procps-3.2.7/work/procps-3.2.7/proc/libproc-3.2.7.so...done.
Loaded symbols for ./proc/libproc-3.2.7.so
Reading symbols from /lib/libgcc_s.so.1...done.
Loaded symbols for /lib/libgcc_s.so.1
Reading symbols from /lib/libc.so.0...done.
Loaded symbols for /lib/libc.so.0
Reading symbols from /lib/ld-uClibc.so.0...done.
Loaded symbols for /lib/ld-uClibc.so.0
#0  set_fast_math ()
    at
/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/gcc/config/i386/crtfastmath.c:97
97                asm volatile ("fxsave %0" : "=m" (fxsave) : "m" (fxsave));
(gdb)
==== 8< ==== CUT HERE ==== 8< ==== CUT HERE ==== 8< ==== CUT HERE ====

So the error rises when fxsave instruction is reached.

Any solutions?

Regards,
Timophey Kushnir.
-- 
gentoo-embedded@g.o mailing list

Replies