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

Olaf Wagner wagner at elegosoft.com
Thu Jan 24 23:03:22 CET 2008


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

> btw, I am using the "stable release" source tarballs with the 5.4.0
> minimal binary as available on the download page.
>  http://modula3.elegosoft.com/cm3/cm3-min-POSIX-LINUXLIBC6-5.4.0.tgz
>  http://modula3.elegosoft.com/cm3/cm3-src-sys-5.4.0.tgz
>  http://modula3.elegosoft.com/cm3/cm3-src-gnu-5.4.0.tgz
>  http://modula3.elegosoft.com/cm3/cm3-src-std-5.4.0.tgz

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

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?

If debugging symbols are missing, we've got to fix that.

Olaf

> Neels Janosch Hofmeyr wrote:
>> Hi lists,
>>
>> I am trying to install cm3 5.4.0 on Ubuntu 7.10. I know that it   
>> worked on 7.4, and am doing the exact same steps. I have now tried   
>> it with cm3-min-...-5.4.0, just as I did last year.
>>
>> But now, I get this output:
>>
>> neels at oubantu:~/cm3-build/scripts
>> $ ./install-cm3-compiler.sh upgrade
>> cp /usr/local/cm3/bin/cm3 /usr/local/cm3/bin/cm3-5.4.0
>> cp /usr/local/cm3/bin/cm3cg /usr/local/cm3/bin/cm3cg-5.4.0
>> Segmentation fault (core dumped)
>> cp /home/neels/cm3-build/m3-sys/cm3/LINUXLIBC6/cm3 /usr/local/cm3/bin/cm3-
>> cp /home/neels/cm3-build/m3-sys/m3cc/LINUXLIBC6/cm3cg   
>> /usr/local/cm3/bin/cm3cg-
>> cp /usr/local/cm3/bin/cm3- /usr/local/cm3/bin/cm3
>> cp /usr/local/cm3/bin/cm3cg- /usr/local/cm3/bin/cm3cg
>>
>> I have done this a second time, making sure everything is cleaned   
>> out and monitored things. From adding a `set -x' in the   
>> install-cm3-compiler.sh, it becomes obvious that   
>> `/usr/local/cm3/bin/cm3 -version' exits with a Segmentation Fault.
>>
>> After doing ./cminstall (the minimal binary install), cm3 -version said
>> $ /usr/local/cm3/bin/cm3 -version
>> Critical Mass Modula-3 version 5.4.0
>> last updated: 2006-10-11
>> configuration: /usr/local/cm3/bin/cm3.cfg
>>
>> After doing ./do-cm3-core.sh buildship, it still said the same.
>> So, somewhere in install-cm3-compiler.sh, a disfunctional cm3   
>> binary gets installed in /usr/local/cm3/bin/, after which cm3   
>> yields only segmentation faults.
>>
>> After install-cm3-compiler.sh, cm3 -version says
>> $ /usr/local/cm3/bin/cm3 -version
>>
>>
>> ***
>> *** runtime error:
>> ***    Segmentation violation - possible attempt to dereference NIL
>> ***    pc = 0x9e841069
>> ***
>>
>> Aborted (core dumped)
>>
>> Trying to backtrace in gdb apparently doesn't work -- I don't know   
>> how to compile debugging symbols into it. Giving up.
>>
>> I think now is the time to remove the statement "[cm3 is]   
>> easy-to-use [and] easy-to-install" from modula3.elegosoft.com. No   
>> piece of software I have ever encountered is as difficult to use   
>> and as impossible to install as critical mass modula3. I *am*   
>> following all the instructions!
>>
>> argh,
>> Neels
>>
>
> -- 
> Neels Janosch Hofmeyr
> Software Developer
>
> neels at elego.de
> Public Key: http://binarchy.net/neels/neels.hofmeyr.public.key.asc
>
> elego Software Solutions GmbH           http://www.elegosoft.com
> Gustav-Meyer-Allee 25, Gebäude 12       HRB 77719
> 13355 Berlin, Germany                   Amtsgericht Charlottenburg
> Tel.: +49 30 23 45 86 96                Sitz der Gesellschaft: Berlin
> Fax:  +49 30 23 45 86 95                Geschäftsführer: Olaf Wagner



-- 
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