Path: news.daimi.aau.dk!not-for-mail From: Peter Andersen Newsgroups: comp.lang.beta Subject: Re: guienv prob: segmentation fault w/every program Date: Fri, 11 Apr 1997 12:20:26 +0200 (MET DST) Organization: DAIMI, Computer Science Dept. at Aarhus University Lines: 66 Approved: mailtonews@daimi.aau.dk Distribution: world Message-ID: <199704111020.MAA08663@mjolner.mjolner.dk> Reply-To: Peter Andersen NNTP-Posting-Host: daimi.daimi.aau.dk Xref: news.daimi.aau.dk comp.lang.beta:11033 ger writes: > > Hello, > > I encounter the following problem with Beta's guienv: I can compile > every guienv-program (for example TextEditor.bet) without errors, but > they immediately crash. The following .dump file is generated: > > Beta execution aborted: Segmentation fault. > > Call chain: (linux) > > Current object is zero! > > I use Linux 2.0.25, Mjolner BETA System version 5.2(2) for Linux (Intel > 386/486/586/Pentium) (elf), guienv v1.4, Metrolink OSF Motif 2.0 > Runtime. > > Any hints? > > -- > "Das gab es noch nie: Informatik am Computer!" bhv-Katalog 96/97 S.21 > > The following has recently been added to the BETA FAQ (www.daimi.aau.dk/~beta/FAQ). It seems to cover your problem: Lx03) Why does GuiEnv demos segmentation fail? [error in r4.0 & r4.0.1] With some Linux distributions, the demos in $BETALIB/guienv/v1.4/demos (aka BETALIB/demo/guienv) all fail with a segmentation fault upon startup, whereas, e.g. the MotifEnv demos all work correct. The reason for this seems to be a buggy gcc used for producing some of the files in the BETA releases r4.0 and r4.0.1. This was done at the time that the Linux community was switching towards ELF binaries, and possibly this is the reason, that gcc produced wrong files. The problem has not been observed for release 4.0.2. A workaround is to do the following (as the owner of BETALIB): cd $BETALIB/guienv/v1.4/private/X11 chmod -R u+w . rm linux/guienv_unix.o rm linux/Canvas.o rm linux/Button.o rm linux/IconButton.o rm linux/ToggleButton.o beta guienv_unixbody chmod -R a-w . Sincerely, Peter Andersen, Mjolner Informatics