[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-GnuCOBOL] SIGSEGV in compilation
From: |
Simon Sobisch |
Subject: |
Re: [Bug-GnuCOBOL] SIGSEGV in compilation |
Date: |
Fri, 31 Aug 2018 20:19:08 +0200 |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 |
Hello Veit,
I'm quite sure that the issue is that $TEMP does not exist.
Can you verify this?
Note: I can produce the same error with a wrong TEMP and GC2.2.
GC3.0RC1 already fixes the SIGSEGV and produces a listing.
I'll tweak cobc to check if the given temporary directory already
exists, if not skip it with a warning and choosing the next possible option.
Simon
Am 31.08.2018 um 15:43 schrieb Veit Heise:
> Hello
>
> such happened to me :)
>
>
> With the please, to report this:
>
> my Linix profile is: ($HOME/.profile)
> # ~/.profile: executed by the command interpreter for login shells.
> # This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
> # exists.
> # see /usr/share/doc/bash/examples/startup-files for examples.
> # the files are located in the bash-doc package.
>
> # the default umask is set in /etc/profile; for setting the umask
> # for ssh logins, install and configure the libpam-umask package.
> #umask 022
>
> # if running bash
> if [ -n "$BASH_VERSION" ]; then
> # include .bashrc if it exists
> if [ -f "$HOME/.bashrc" ]; then
> . "$HOME/.bashrc"
> fi
> fi
> # set PATH so it includes user's private bin directories
> export PATH=".:$HOME/bin:$HOME/source/bin:$HOME/.local/bin:$PATH"
> export COB_LIBRARY_PATH=$HOME/source/bin
> export COB_DISPLAY_WARNINGS=Y
> export COB_LOAD_CASE=UPPER
> export COB_PHYSICAL_CANCEL=Y
> export COB_PRE_LOAD=Y
> export COB_SET_DEBUG=Y
> export COB_SET_TRACE=Y
> export COB_SCREEN_ESC=Y
> export COB_SCREEN_EXCEPTIONS=Y
> export COB_TRACE_FILE=Y
> export TEMP=$HOME/temp
> ===================================
> the compile-scripts are:
> coball:
> set -x
> cobs adresse02 adresse02.cob soundex.cob
> cob adresse01 adresse01.cob
> ===================================
> cob:
> #set -x
> rm -f ~/source/bin/$1 yyy.cob
> cobc -x -O2 -free -o ~/source/bin/$1 -I ./include -I ./screen
> -ffold-copy=LOWER \
> -fmax-errors=3 -T $1.txt -L ~/source/bin $2 $3 $4 $5 $6 $7 $8 $9
> if [ -f ~/source/bin/$1 ]; then
> ls -hl ~/source/bin/$1 ;
> fi
> rm -rf *.o xxx *.i *.so *.c *.c.* __db.
> ===================================
> cobs:
> #set -x
> rm -f ~/source/bin/$1 yyy.cob
> cobc -x -O2 -free -o ~/source/bin/$1 -I ./include -I ./screen
> -ffold-copy=LOWER \
> -fmax-errors=3 -T $1.txt -L ~/source/bin $2 $3 $4 $5 $6 $7 $8 $9
> if [ -f ~/source/bin/$1 ]; then
> ls -hl ~/source/bin/$1 ;
> fi
> rm -rf *.o xxx *.i *.so *.c *.c.* __db.
> ===================================
> The sources: see appended *.cob files:
> adresse01.cob
> adresse02.cob
> soundex.cob
>