gm2
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gm2] ulm crash


From: John B Wallace Jr
Subject: [Gm2] ulm crash
Date: Sat, 3 Sep 2005 22:49:19 -0400
User-agent: KMail/1.8

I have a problem with the following code (from Ulm's Modula-2 website) when I 
use the ulm libraries ( -Wlibs=ulm ):

MODULE HelloWorld;

   FROM InOut IMPORT WriteString, WriteLn;

BEGIN
   WriteString("Hello World!"); WriteLn;
END HelloWorld.

The code builds O.K. (gm2 -g -I. -Wlibs=ulm -Wmakeall HelloWorld.mod) but
crashes with a 'Segmentation fault' error message when run. Is there an 
environment variable that has to be set or something?

Some of the problem seems to be associated with the ulm Storage and SysTermIO 
modules because if I replace the ulm Storage module with the gm2 Storage 
module (plus a modified gm2 Debug module in which StdIO Write is replaced by 
libc write), and modify the ulm SysTerm module to use a libc call for Isatty 
instead of the unixcall, the HelloWorld code runs successfully.

My system is SUSE Linux 9.3 (64 bit edition) on an AMD Athlon 64 and the gm2 
version is dated 01 September 2005.

John Wallace



reply via email to

[Prev in Thread] Current Thread [Next in Thread]