gm2
[Top][All Lists]
Advanced

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

[Gm2] ulm 64bit crash


From: John B Wallace Jr
Subject: [Gm2] ulm 64bit crash
Date: Mon, 9 Jan 2006 21:27:38 -0500
User-agent: KMail/1.8

There is still a problem using the ulm libraries with the 64bit version of 
SUSE 9.3 on an Athlon 64. HelloWorld still crashes with a segmentation fault 
during execution. HelloWorld builds and executes without errors under the 
32bit version of SUSE 9.3. 


MODULE HelloWorld;

   FROM InOut IMPORT WriteString, WriteLn;

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


address@hidden:~/gm2/new> gm2 -g -I. -Wlibs=ulm -Wcheck-all -Wmakeall -o 
HelloWorld HelloWorld.mod
gm2 -c -Wmakeall0 -g -Wtarget-ranlib=ranlib -Wtarget-ar=/usr/bin/ar -Wlibs=ulm 
-Wcheck-all -Wmakeall 
-I.:/home/john/opt/lib/gcc-lib/x86_64-unknown-linux-gnu/3.3.6/gm2/ulm:/home/john/opt/lib/gcc-lib/x86_64-unknown-linux-gnu/3.3.6/gm2/pim
 
HelloWorld.mod
address@hidden:~/gm2/new> ./HelloWorld
Segmentation fault


Here is the output from gdb for the 64bit version:

GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-suse-linux"...Using host libthread_db 
library "/lib64/tls/libthread_db.so.1".

(gdb) run
Starting program: /home/john/gm2/new/HelloWorld
Die: DW_TAG_set_type (abbrev = 11, offset = 150475)
        has children: FALSE
        attributes:
                DW_AT_type (DW_FORM_ref4) constant ref: 150464 (adjusted)
Dwarf Error: Cannot find type of die [in module /home/john/gm2/new/HelloWorld]
(gdb) 


The problem seems to be associated with the SysTermIO module. If a modified 
module using a libc call for Isatty is substituted, HelloWorld builds and 
executes without errors in 64bit.
      
The CVS sources for gm2 are dated 08 January 2006 and were attached to 
gcc-3.3.6 and build (using harness-0.6) with the default compiler for SUSE 
9.3 (gcc-3.3.5).


Also, the test suite hangs up on 32bit/SUSE 9.3 builds of recent gm2 CVS 
sources (using harness-0.6):

Running 
/home/john/gm2/gm2-harness-0.6/sources/gcc-3.3.6/gcc/testsuite/gm2/cpp/pass/gm2.exp
 ...
Running 
/home/john/gm2/gm2-harness-0.6/sources/gcc-3.3.6/gcc/testsuite/gm2/cse/fail/gm2.exp
 ...
Running 
/home/john/gm2/gm2-harness-0.6/sources/gcc-3.3.6/gcc/testsuite/gm2/cse/pass/gm2.exp
 ...
Running 
/home/john/gm2/gm2-harness-0.6/sources/gcc-3.3.6/gcc/testsuite/gm2/dynamic/pass/gm2.exp
 ...
Running 
/home/john/gm2/gm2-harness-0.6/sources/gcc-3.3.6/gcc/testsuite/gm2/errors/fail/gm2.exp
 ...
WARNING: program timed out.
WARNING: program timed out.
WARNING: program timed out.
WARNING: program timed out.
WARNING: program timed out.
WARNING: program timed out.
...............


John Wallace



reply via email to

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