bug-gnucobol
[Top][All Lists]
Advanced

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

[Bug-GnuCOBOL] Solved: SIGSEGV in compilation


From: Simon Sobisch
Subject: [Bug-GnuCOBOL] Solved: SIGSEGV in compilation
Date: Sat, 1 Sep 2018 14:33:53 +0200
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1

The error below (TEMP pointing to a not-existing directory) is fixed
with revision 2708

https://sourceforge.net/p/open-cobol/code/2708/

Simon

Am 31.08.2018 um 20:19 schrieb Simon Sobisch:
> 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
>>
> 



reply via email to

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