LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Seg fault with root on ramdisk (https://www.linuxquestions.org/questions/programming-9/seg-fault-with-root-on-ramdisk-123777/)

nawazsa 12-08-2003 01:41 AM

Seg fault with root on ramdisk
 
Hi,

I have derived a root disk from Slackware 9 that I use on a Pentium3 SBC. I use the kernel from Slackware 9 to boot and use this ramdisk as root using loadlin after booting DOS from an IDE flash disk. Everything goes well and the system boots.

I have a c++ application using pthreads and compiled on Slackware 9 desktop. I want to run this application on the embedded system. THis application compiles and runs properly on the Slackware 9 desktop but seg faults when I try to run it on the embedded system.

I used ldd to determine the libraries and copied all those libraries from the Slackware 9 dekstop to my embedded system root disk.
I can run small test programs like a program using pthreads and a c++ program properly on this system. This means that there shouldn't be anything wront with the libraries. When I run my application in gdb on the embedded system I get following error

Starting program: /root/main
[New Thread 16384 (LWP 541)]
Program received signal SIGSEGV, Segmentation fault
[Switching to Thread 16384 (LWP 541)]
0x401bc299 in sYSMALLOc () from /lib/libc.so.6


What could be wrong. I checked with free there is around 110MB of free ram available.
Any clues. I'll greatly appreciate any help.

Regards


All times are GMT -5. The time now is 05:14 PM.