This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

exception trapped in cygnus exception handler


i'm using gnu win32 beta 18, and i failed to build a dll :
ld : In cygwin_except_handler
(D:\GNUWIN32\H-i386-cygwin32\bin\ld.exe 1083) Exception trapped!

anyone a idea, what i can try now ?

regards, andreas
--- logfie :

echo 'int main() { return 0;  } ' > fixup.c
echo 'asm (".section .idata\n" ".long 0,0,0,0,0,0,0,0"); ' >> fixup.c
gcc -c -o fixup.o fixup.c
echo EXPORTS > iitb.def
nm  dll.o  \
|grep '^........ [T] _'\
	|sed 's/[^_]*_//' >> iitb.def
echo "step 1 - ld"
step 1 - ld
ld \
	--dll \
	--base-file iitb.base \
	--output iitb.dll \
	--entry _dll_entry@12 \
	-L/usr/H-i386-cygwin32/i386-cygwin32/lib/ \
	 dll.o  
echo "step 2 - dlltool"
step 2 - dlltool
dlltool \
	--as=as \
	--base-file iitb.base \
	--def iitb.def \
	--dllname iitb.dll \
	--output-exp iitb.exp 
echo "step 3 - ld (mit exp)"
step 3 - ld (mit exp)
ld \
	--dll \
	--entry _dll_entry@12 \
	--output iitb.dll \
	-L/usr/H-i386-cygwin32/i386-cygwin32/lib/ \
	iitb.exp  dll.o  fixup.o -lcygwin -lkernel32
(D:\GNUWIN32\H-i386-cygwin32\bin\ld.exe 1083) In cygwin_except_handler
(D:\GNUWIN32\H-i386-cygwin32\bin\ld.exe 1083) Exception trapped!
(D:\GNUWIN32\H-i386-cygwin32\bin\ld.exe 1083) exception C0000005 at 42D792
(D:\GNUWIN32\H-i386-cygwin32\bin\ld.exe 1083) exception: ax 0 bx 2EBC068 cx 2EBCC9C dx 28
(D:\GNUWIN32\H-i386-cygwin32\bin\ld.exe 1083) exception: si 4000 di FFFFFE00 bp 244EE50 sp 244EE40
(D:\GNUWIN32\H-i386-cygwin32\bin\ld.exe 1083) exception is: STATUS_ACCESS_VIOLATION
(D:\GNUWIN32\H-i386-cygwin32\bin\ld.exe 1083) Stack trace:
(D:\GNUWIN32\H-i386-cygwin32\bin\ld.exe 1083) frame 0: sp = 0x244EC74, pc = 0x1000CEC2
(D:\GNUWIN32\H-i386-cygwin32\bin\ld.exe 1083) frame 1: sp = 0x244EC90, pc = 0x77F94072
(D:\GNUWIN32\H-i386-cygwin32\bin\ld.exe 1083) frame 2: sp = 0x244ECB4, pc = 0x77F88A53
(D:\GNUWIN32\H-i386-cygwin32\bin\ld.exe 1083) frame 3: sp = 0x244ED40, pc = 0x77F75E82
(D:\GNUWIN32\H-i386-cygwin32\bin\ld.exe 1083) frame 4: sp = 0x244EE50, pc = 0x42D895
(D:\GNUWIN32\H-i386-cygwin32\bin\ld.exe 1083) frame 5: sp = 0x244EEA4, pc = 0x43094E
(D:\GNUWIN32\H-i386-cygwin32\bin\ld.exe 1083) frame 6: sp = 0x244F2BC, pc = 0x41FA39
(D:\GNUWIN32\H-i386-cygwin32\bin\ld.exe 1083) frame 7: sp = 0x244F314, pc = 0x416DCF
(D:\GNUWIN32\H-i386-cygwin32\bin\ld.exe 1083) frame 8: sp = 0x244F344, pc = 0x1000C102
(D:\GNUWIN32\H-i386-cygwin32\bin\ld.exe 1083) frame 9: sp = 0x244FF94, pc = 0x1000C113
(D:\GNUWIN32\H-i386-cygwin32\bin\ld.exe 1083) frame 10: sp = 0x244FFA0, pc = 0x4408A9
(D:\GNUWIN32\H-i386-cygwin32\bin\ld.exe 1083) frame 11: sp = 0x244FFB0, pc = 0x40103B
(D:\GNUWIN32\H-i386-cygwin32\bin\ld.exe 1083) frame 12: sp = 0x244FFC0, pc = 0x77F1AFC1
(D:\GNUWIN32\H-i386-cygwin32\bin\ld.exe 1083) frame 13: sp = 0x244FFF0, pc = 0x0
(D:\GNUWIN32\H-i386-cygwin32\bin\ld.exe 1083) End of stack trace
make: *** [dll] Error 2
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]