[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gm2] ulm crash
From: |
Gaius Mulley |
Subject: |
Re: [Gm2] ulm crash |
Date: |
06 Sep 2005 12:28:24 +0100 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 |
John B Wallace Jr <address@hidden> writes:
> 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.
Hi John,
thanks for the bug report and analysis. Yes it also breaks under
Debian Pure 64 with segmentation fault at line 147 in SysTermIO.mod.
If you run your a.out under gdb does it stop at the same line of code?
thanks,
Gaius
- [Gm2] ulm crash, John B Wallace Jr, 2005/09/03
- Re: [Gm2] ulm crash,
Gaius Mulley <=