James Kanze
2009-05-17 14:32:08 UTC
I'm currently porting a fairly large batch of code from Unix
(Solaris, Linux) to Windows, compiling from the command line.
One of the test programs crashes, causing the error Window to
pop-up. (I presume that this is like a core dump under Unix.)
In earlier versions of the system, the Window offered me the
option to enter the debugger (assuming Visual Studios C++ was
installed, which is the case); this one doesn't. So how can I
see where I'm crashing, and a trace of the stack?
FWIW: the command line used to compile the files is:
cl -c -Foc:/kanze/generated/tmp/testAscii.tst6128/component/
CodeGeneratorExecs/scangen/testScanner.obj -Fdc:/kanze/generated/tmp/
testAscii.tst6128/component/CodeGeneratorExecs/scangen/
testScanner.pdb -vmg -GR -Gy -EHs -Zc:forScope,wchar_t -J -nologo -
DNOMINMAX -DGB_EFmtDoesntWork -D_CRT_SECURE_NO_DEPRECATE -GS- -Zi -w -
D_DEBUG_ -Ic:/kanze/generated/tmp/testAscii.tst6128 -DIS_UTF8=false -
I. -I./conf/i80x86-win32-vc80 -Ic:/kanze/generated/include -Ic:/kanze/
generated/include/conf/i80x86-win32-vc80 -Tp testScanner.cc
(all on one line). The same for all of the other source files,
then:
cl -Fmc:/kanze/generated/tmp/testAscii.tst6128/component/
CodeGeneratorExecs/scangen/testScanner -Fd -Fec:/kanze/generated/tmp/
testAscii.tst6128/component/CodeGeneratorExecs/scangen/
testScanner.exe -vmg -GR -Gy -EHs -Zc:forScope,wchar_t -J -nologo -
DNOMINMAX -DGB_EFmtDoesntWork -D_CRT_SECURE_NO_DEPRECATE -GS- -Zi -w -
D_DEBUG_ -Ic:/kanze/generated/tmp/testAscii.tst6128 -DIS_UTF8=false -
I. -I./conf/i80x86-win32-vc80 -Ic:/kanze/generated/include -Ic:/kanze/
generated/include/conf/i80x86-win32-vc80 c:/kanze/generated/tmp/
testAscii.tst6128/component/CodeGeneratorExecs/scangen/
testErrorHandler.obj c:/kanze/generated/tmp/testAscii.tst6128/
component/CodeGeneratorExecs/scangen/testScanner.obj c:/kanze/
generated/tmp/testAscii.tst6128/component/CodeGeneratorExecs/scangen/
testToken.obj c:/kanze/generated/tmp/testAscii.tst6128/component/
CodeGeneratorExecs/scangen/testTokenMap.obj c:/kanze/generated/tmp/
testAscii.tst6128/component/CodeGeneratorExecs/scangen/ScannerBase.obj
c:/kanze/generated/lib/GabiProgMgt.lib c:/kanze/generated/lib/
GabiText.lib c:/kanze/generated/lib/GabiIO.lib c:/kanze/generated/lib/
GabiUtil.lib c:/kanze/generated/lib/GabiTest.lib c:/kanze/generated/
lib/GabiBase.lib
While there's probable some undefined behavior in my code which
causes this, unless I can get a stack walkback, and see exactly
where it's crashing, I can't start looking for it.
I'm running Window XP Family edition, with Service Pack 3
installed; the version of C++ is Visual Studios Visual C++ 2008
Express Edition.
--
James Kanze (GABI Software) email:***@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34
(Solaris, Linux) to Windows, compiling from the command line.
One of the test programs crashes, causing the error Window to
pop-up. (I presume that this is like a core dump under Unix.)
In earlier versions of the system, the Window offered me the
option to enter the debugger (assuming Visual Studios C++ was
installed, which is the case); this one doesn't. So how can I
see where I'm crashing, and a trace of the stack?
FWIW: the command line used to compile the files is:
cl -c -Foc:/kanze/generated/tmp/testAscii.tst6128/component/
CodeGeneratorExecs/scangen/testScanner.obj -Fdc:/kanze/generated/tmp/
testAscii.tst6128/component/CodeGeneratorExecs/scangen/
testScanner.pdb -vmg -GR -Gy -EHs -Zc:forScope,wchar_t -J -nologo -
DNOMINMAX -DGB_EFmtDoesntWork -D_CRT_SECURE_NO_DEPRECATE -GS- -Zi -w -
D_DEBUG_ -Ic:/kanze/generated/tmp/testAscii.tst6128 -DIS_UTF8=false -
I. -I./conf/i80x86-win32-vc80 -Ic:/kanze/generated/include -Ic:/kanze/
generated/include/conf/i80x86-win32-vc80 -Tp testScanner.cc
(all on one line). The same for all of the other source files,
then:
cl -Fmc:/kanze/generated/tmp/testAscii.tst6128/component/
CodeGeneratorExecs/scangen/testScanner -Fd -Fec:/kanze/generated/tmp/
testAscii.tst6128/component/CodeGeneratorExecs/scangen/
testScanner.exe -vmg -GR -Gy -EHs -Zc:forScope,wchar_t -J -nologo -
DNOMINMAX -DGB_EFmtDoesntWork -D_CRT_SECURE_NO_DEPRECATE -GS- -Zi -w -
D_DEBUG_ -Ic:/kanze/generated/tmp/testAscii.tst6128 -DIS_UTF8=false -
I. -I./conf/i80x86-win32-vc80 -Ic:/kanze/generated/include -Ic:/kanze/
generated/include/conf/i80x86-win32-vc80 c:/kanze/generated/tmp/
testAscii.tst6128/component/CodeGeneratorExecs/scangen/
testErrorHandler.obj c:/kanze/generated/tmp/testAscii.tst6128/
component/CodeGeneratorExecs/scangen/testScanner.obj c:/kanze/
generated/tmp/testAscii.tst6128/component/CodeGeneratorExecs/scangen/
testToken.obj c:/kanze/generated/tmp/testAscii.tst6128/component/
CodeGeneratorExecs/scangen/testTokenMap.obj c:/kanze/generated/tmp/
testAscii.tst6128/component/CodeGeneratorExecs/scangen/ScannerBase.obj
c:/kanze/generated/lib/GabiProgMgt.lib c:/kanze/generated/lib/
GabiText.lib c:/kanze/generated/lib/GabiIO.lib c:/kanze/generated/lib/
GabiUtil.lib c:/kanze/generated/lib/GabiTest.lib c:/kanze/generated/
lib/GabiBase.lib
While there's probable some undefined behavior in my code which
causes this, unless I can get a stack walkback, and see exactly
where it's crashing, I can't start looking for it.
I'm running Window XP Family edition, with Service Pack 3
installed; the version of C++ is Visual Studios Visual C++ 2008
Express Edition.
--
James Kanze (GABI Software) email:***@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34