[M3devel] Is Modula-3 available on x86_64-unknown-linux-gnu?
Jay
jay.krell at cornell.edu
Thu Jan 1 09:57:45 CET 2009
Roland, You are using user threads. I can tell from the functions on the stack.
>From what I read on this list, I gather user threads are broken on Linux
due to "jumpbuf scrambling".
(besides the problem I reported, which isn't in very old builds)
Can you please try a newer build?
ie: one that uses pthreads?
> SYSTEM_CC="gcc -m32",
I forgot to mention that one but yeah. :)
You are using a very old build, right?
- Jay> Date: Thu, 1 Jan 2009 05:18:47 +0100> From: roland> To: m3devel> Subject: Re: [M3devel] Is Modula-3 available on x86_64-unknown-linux-gnu?> > Jay schrieb:> > In your config file, make sure to put -m32 on the cm3cg invocation, and> > perhaps -32 or --32 on the as/gas invocation. They may or may not help.> > Thanks for the suggestion. I tried it (SYSTEM_CC="gcc -m32",> SYSTEM_ASM="as --32"), and the program builds fine now. When running it,> I get the following:> > Program received signal SIGSEGV, Segmentation fault.> 0xdc1ca000 in ?? ()> (gdb) where> #0 0xdc1ca000 in ?? ()> #1 0xf75dee30 in RTThread__FlushStackCache () at RTThread.m3:65> #2 0xf75e49ce in ThreadPosix__DetermineContext> (M3_AJWxb1_oldSP=0xffb59250) at ThreadPosix.m3:1101> #3 0xf75e4932 in ThreadPosix__InitTopContext (M3_A8sSUp_c=0xf73b203c,> M3_AJWxb1_stackbase=0xffb5935c) at ThreadPosix.m3:1076> #4 0xf75e5fe5 in ThreadF__Init () at ThreadPosix.m3:1498> #5 0xf75cdfcd in RTLinker__InitRuntime (M3_AcxOUs_p_argc=1,> M3_AJWxb1_p_argv=0xffb59424, M3_AJWxb1_p_envp=0xffb5942c,> M3_AJWxb1_p_instance=0x0) at RTLinker.m3:59> #6 0x08048901 in main (argc=1, argv=0xffb59424, envp=0xffb5942c)> at _m3main.mc:3> > The address 0xdc1ca000 does not appear in /proc/self/maps, so I don't> know where to look further.> > Roland
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20090101/591e4739/attachment-0002.html>
More information about the M3devel
mailing list