This is the mail archive of the
mailing list for the Insight project.
MinGW setjmp SEGV
- From: Andrew STUBBS <andrew dot stubbs at st dot com>
- To: insight at sources dot redhat dot com
- Date: Fri, 05 Aug 2005 14:44:03 +0100
- Subject: MinGW setjmp SEGV
I have been trying to build Insight 6.1 (patched into GDB 6.3) for MinGW
(and Linux and Solaris but they weren't much trouble).
The problem I hit has been previously reported here:
There are a number of patches required to make it build, but most are
trivial and may not be relevant since 6.1 so I shall not post them.
Basically I had to check whether the cygwin filename-handling tcl
functions exist before using them, define __INSIDE_CYGWIN__ in a couple of
tcl/tk files, and rename the hooks because they now have a 'deprecated'
However, the most serious failure was caused by broken code in the tcl dll
screwing up the SEH and causing setjmp to fail. This problem has been
fixed in the latest tcl at tcl.sourceforge.net.
The attached patch (code copied from sourceforge) is sufficient to fix the
issue. Note that I have included the diff of the whole file and it
includes one of the minor changes mentioned above.
Hopefully this patch will help others who have hit the same problem.
Description: Binary data