View previous topic :: View next topic |
Author |
Message |
ddc Guru
Joined: 29 Aug 2006 Posts: 522
|
Posted: Sat May 01, 2010 6:49 pm Post subject: segmentation fault |
|
|
hi
my arm.v5 machine has 64Mb of ram
(kernel eats 8Mb for his internal usages: ( 64 - 8 ) is ~ free)
when i emerge something that is write in C i got no problem
( i recompiled glibc, gcc, and other "big" ebuilds)
when i emerge something that is write in C++ (for example cmake) i got "segmentation fault" error message
my swap area is 1Gb
my storage is composed by 2 microdrive of 4Gb each
python-2.6 (invoked by emerge) eats a lot memory, but
i realized that ... compiling C++ involves much more memory, in order to resolve namespaces, etc
so the question is: may be "segmentation fault" is simply cause by an out of memory ?
(the kernel in use is 2.6.23 .. i can't upgrade cause newer has not support for my hw)
any idea? test? doc about this "strange" behavior ? |
|
Back to top |
|
|
BradN Advocate
Joined: 19 Apr 2002 Posts: 2391 Location: Wisconsin (USA)
|
Posted: Mon May 03, 2010 7:43 pm Post subject: |
|
|
Well, since segfaults usually aren't memory consumption related (and you said you have swap), I'd suspect a problem in your toolchain somewhere. Did you cross compile the toolchain yourself, or use a prebuilt one? If C compilation works ok, you could try rebuilding the toolchain on the target machine (just be prepared to wait a while...). Otherwise perhaps try other gcc versions and in general experiment with the various components.
Sometimes with segfaults it can be useful to run the program under strace and see what it was attempting to do at the time of the crash, but in a case like this I suspect it might not be too helpful. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|