[uClibc] system call segfault!
Frank R Callaghan
f.callaghan at ieee.org
Wed Jul 9 17:39:48 UTC 2003
Fixed, just downloaded 0.9.20 built, installed and the
system() problem dissapeared !
Thanks Guys.
On Tuesday 08 July 2003 05:10 pm, Frank R Callaghan wrote:
> Hi All
>
> I'm using uClibc.0.9.19, 2.4.19 + jffs2(from cvs) + busybox-0.60.5 + rtai
>
> I have been trying to track down a problem with my embedded prog
> segfaulting and found that with only system("ps -ax"); SegFaults !
>
> (gdb) run
> Starting program: /myapp/test1
> Running ps
> (no debugging symbols found)...(no debugging symbols found)...
> Program received signal SIGSEGV, Segmentation fault.
> 0x40013cd0 in _dl_envp () from /usr/i386-linux-uclibc/lib/libc.so.0
> PID TTY Uid Size State Command
> 1 root 468 S init
> 2 root 0 S [keventd]
> 3 root 0 S [ksoftirqd_CPU0]
> 4 root 0 S [kswapd]
> 5 root 0 S [bdflush]
> 6 root 0 S [kupdated]
> 7 root 0 S [mtdblockd]
> 11 root 0 S [kjournald]
> 50 root 0 S [rpciod]
> 54 root 0 S [kjournald]
> 86 ttyS1 root 496 S -sh
> 161 ttyS1 root 3756 S gdb test1
> 162 ttyS1 root 348 T /myapp/test1
> 163 ttyS1 root 492 S sh -c ps -ax
> 164 ttyS1 root 460 R ps -ax
> (gdb) bt
> #0 0x40013cd0 in _dl_envp () from /usr/i386-linux-uclibc/lib/libc.so.0
> #1 0x4003da79 in system () from /usr/i386-linux-uclibc/lib/libc.so.0
> #2 0x0804844b in main ()
> #3 0x40017624 in __uClibc_start_main ()
> from /usr/i386-linux-uclibc/lib/libc.so.0
> #4 0x08048424 in _start ()
> (gdb)
>
> Any help greatly appreciated,
>
> TIA,
> Frank.
>
>
>
>
>
>
>
>
> _______________________________________________
> uClibc mailing list
> uClibc at uclibc.org
> http://uclibc.org/mailman/listinfo/uclibc
More information about the uClibc
mailing list