problem with "system" command of unix on cygwin,getting codedump

Posted by Amitb on Thu 12 Aug 2004 11:11 AM — 2 posts, 11,600 views.

#0
Hi..
i'm getting core dump after the "system" command of unix although the command is successful.
i'm pasting the dump below..

Breakpoint 1, iclsn_handle_files (prdCatBuff=0x22ed90, prdCatRowCnt=11, ieIdBuff=0x22ee70, ieIdRowCnt=1)
at iclsn_handler.c:1050
1050 sprintf(commandLine, "rm -f %s%s%s", inputFilePath, baseFileName,input_ext);
(gdb) n
1051 rc = system(commandLine);
(gdb) p commandLine
$1 = "rm -f /cygdrive/c/source/bins/test/ACTV_IC_000000_20040809_082000.FIN\000", ' ' <repeats 930 times>
(gdb) n

Program received signal SIGSEGV, Segmentation fault.
0x610b4625 in random () from /usr/bin/cygwin1.dll
(gdb) bt
#0 0x610b4625 in random () from /usr/bin/cygwin1.dll
#1 0x6105c355 in dll_entry@12 () from /usr/bin/cygwin1.dll
#2 0x61096644 in sigfillset () from /usr/bin/cygwin1.dll
#3 0x610978af in sigfillset () from /usr/bin/cygwin1.dll
#4 0x61097bb5 in sigfillset () from /usr/bin/cygwin1.dll
#5 0x61097b28 in sigfillset () from /usr/bin/cygwin1.dll
#6 0x6109cf5d in sync () from /usr/bin/cygwin1.dll
#7 0x6108df2f in cygwin1!aclcheck () from /usr/bin/cygwin1.dll
#8 0x004017a4 in main () at iclsn_main.c:300
Australia Forum Administrator #1
Hard to say from that, try rebuilding with debugging enabled, -G3, I think on the compile line in the Makefile.