[M3devel] segmentation fault upon ./install-cm3-compiler.sh upgrade

Olaf Wagner wagner at elegosoft.com
Thu Jan 24 23:35:19 CET 2008


Quoting Neels Janosch Hofmeyr <neels at elego.de>:

> Olaf Wagner wrote:
>> Quoting Neels Janosch Hofmeyr <neels at elego.de>:
>>
>>> btw, I am using the "stable release" source tarballs with the 5.4.0
>>
>> Hi Neels,
>>
>> 5.4.0 is rather old now. I assume Ubuntu has made some incompatible
>> changes to its kernel or C library interfaces that the old cm3 binary
>> cannot cope with. What about trying one the more recent installation
>> archives, like d.5.5.1? Once you have a working cm3 and cm3cg, compiling
>> the rest should be no problem. Stable releases cannot necessarily be
>> expected to run on newer operating systems when the ABI changes, as they
>> don't adapt themselves ;-)
>>
>> Try this, for example:
>>
>> http://modula3.elegosoft.com/cm3/snaps/cm3-min-POSIX-LINUXLIBC6-d5.5.1-2008-01-24-03-35-01.tgz
> I'll try it next.
> btw, I am writing an instructions text for installing on ubuntu 7.10
> along the way...
>>
>> It should also be possible to get a backtrace of the cm3 crash
>> within gdb. There should be debugging symbols in the distributed
>> binaries. What does bt show?
> I tried bt, it shows nothing:
>
> $ gdb /usr/local/cm3/bin/cm3
> GNU gdb 6.6-debian
> Copyright (C) 2006 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 "i486-linux-gnu"...
> Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
> (gdb) run -version
> Starting program: /usr/local/cm3/bin/cm3 -version
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x9e841069 in ?? ()
> (gdb) bt
> #0  0x9e841069 in ?? ()
> Cannot access memory at address 0xf05fc929
> (gdb)

Seems to be a random address. My guess would be that Ubuntu now
encrypts its jmp_buf data, too, and you are using M3 UTHREADS.

Try some runtime arguments to get some more data:
@M3debugthreads, @M3nopreemption, @M3novm, @M3nogc

Perhaps we get some clues.

Olaf
-- 
Olaf Wagner -- elego Software Solutions GmbH
                Gustav-Meyer-Allee 25 / Gebäude 12, 13355 Berlin, Germany
phone: +49 30 23 45 86 96  mobile: +49 177 2345 869  fax: +49 30 23 45 86 95
    http://www.elegosoft.com | Geschäftsführer: Olaf Wagner | Sitz: Berlin
Handelregister: Amtsgericht Charlottenburg HRB 77719 | USt-IdNr: DE163214194




More information about the M3devel mailing list