[KLUG Members] Oh great developers of KLUG.....
Adam Tauno Williams
members@kalamazoolinux.org
Mon, 16 Jul 2001 16:13:12 -0400 (EDT)
What is the most likely cause of the following (or is there a likely cause):
execve("./seqdata2flat", ["./seqdata2flat", "file-seq.fdd"], [/* 36 vars */]) = 0
fcntl64(0, F_GETFD) = 0
fcntl64(1, F_GETFD) = 0
fcntl64(2, F_GETFD) = 0
uname({sys="Linux", node="lnx01688.morrison.iserv.net", ...}) = 0
geteuid32() = 437
getuid32() = 437
getegid32() = 230
getgid32() = 230
brk(0) = 0x80f54ac
brk(0x80f54cc) = 0x80f54cc
brk(0x80f6000) = 0x80f6000
getpid() = 9174
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++
This program runs OK (blasting out it's usage statement) so longs as I pass it
zero, nada, zip command line arguments, if I pass it any arguments, valid or
otherwise it dies with the above.
If I run it OK the next few strace output lines are:
fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40000000
ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
write(1, "\n", 1) = 1
The compile command looks like:
g++ -c -fshort-enums -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-declarations -Wno-uninitialized -DVERSION="SctStringer(3-9-0)"
-DTRIAL=1 -DSQL_LANG=1 -DCICS_LANG=1 -DIN_DLL="" -DSCT_READER_USE_MAKE="extern
int reader_seq; reader_seq++" -DGINC=\"cobol-sql-cics_tab.h\" -I../lbase
-I../data-access -I/usr/local/include/g++ main-tr.cxx -I../lbase -I../data-access
g++ -o seqdata2flat -static -s main-tr.o ../data-access/seq/libseq.a
../data-access/libaccess.a ../lbase/liblbase.a
It builds a static binary so ldd don't tell me squat.
The program is part of a demo of a COBOL file access library available from
http://www.siber.com. Basically it has been pretty cranky so far, but I need a
way to read AcuCOBOL files.
Systems and Network Administrator
Morrison Industries
1825 Monroe Ave NW.
Grand Rapids, MI. 49505