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