[uClibc] getting segmentation faults with mipsel

Joel Coltoff joel at wmi.com
Mon Aug 2 15:06:32 UTC 2004


Hi,

Does anyone have a working setup for C++ programs on a MIPSEL
system. In early June I built a compiler for a 2.4.18 kernel
using gcc-3.3.3 and binutils-2.14.90.0.7 and uClibc-0.9.26.
Everything worked fine until a co-worker tried to upgrade to
3.3.4 and add ada support to the compiler. We backed out all
those changes, or so it seems, and went back to my original
setup. I can get C programs to run but C++ programs get a
segmentation fault very early on. Can someone with a working
setup tell me what files I need to download to get past this
hurdle? I wasn't using snapshots and downloaded all my files
on June 8, 2004.

Here are the last few lines of an strace in case it helps

open("/lib/libc.so.0", O_RDONLY)        = 3
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 0, 0) = 0x
2aaaf000
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\10\0\1\0\0\0p\263\0"..., 4096) = 40
96
old_mmap(NULL, 737280, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2ac71000
old_mmap(0x2ac71000, 429172, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) =
 0x2ac71000
old_mmap(0x2ad19000, 7560, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x68000) = 0x2ad19000
old_mmap(0x2ad1b000, 39080, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2ad1b000
close(3)                                = 0
munmap(0x2aaaf000, 4096)                = 0
ioctl(0, 0x540d, {B9600 opost isig icanon echo ...}) = 0
ioctl(1, 0x540d, {B9600 opost isig icanon echo ...}) = 0
brk(0x100010c0)                         = 0x100010c0
brk(0x10002000)                         = 0x10002000
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++

Thanks,

-- 
Joel Coltoff

The test of a first-rate intelligence is the ability to hold two
opposed ideas in the mind at the same time, and still retain the
ability to function.
    -- F. Scott Fitzgerald




More information about the uClibc mailing list