PDA

View Full Version : core dump x64 scratchbox


masq
01-28-2010, 01:58 PM
Hi,

I'm running scratchbox on a 64bit kubuntu machine and managed to install it and get the runtime up (including Xephyr and the whole maemo emulator) but when I try to compile and run some very basic sample code (including hello world in C++) I get something like:

Floating point exception (core dumped)

for code that looks like:


#include <iostream.h>

int main(int argc, char* argv[]) {
cout << "outputting some test junk";
}


When I run this code on my own machine on the other hand (outside the scratchbox) it works so I'm guessing this is a 32-bit vs 64-bit problem. Any help?

The scratchbox target is x86 as it should be if I'm testing on my own machine right? Sorry if this is a very basic and known issue but google searching did not clarify it within a reasonable amount of time :)

Thanks!

masq
01-28-2010, 05:08 PM
To rephrase in a more user-friendly way: has anyone managed to compile and run code on scratchbox on a x64 version of linux?

masq
01-28-2010, 05:12 PM
Oops... seems I was forgetting to:

sudo sysctl abi.vsyscall32=0

In my defense I think I already set this before hand and it gets reset on resume from suspend??

Anyway, in case anyone has a similar problem this might help. What's weird is the scratchbox and emulator seemed to work nonetheless (and last time I didn't set that flag I thought I remembered that they didn't work).

fatalsaint
01-28-2010, 05:13 PM
Yeah I read the problems related to 64-bit linux and the special kernel params or calls required.. decided it's just easier to run the VM :D.

Works perfectly that way ;).

pablob
01-28-2010, 05:25 PM
That's weird, when I forget to do that syscall I get an error right after logging into scratchbox. That reminds me to go to other terminal to do it. :-)

I have a 32-bit Lenny chroot in my 64-bit Debian Squeeze system. It gets kind of confusing at times. ;-)