This is the mail archive of the insight@sourceware.org mailing list for the Insight project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

MinGW setjmp SEGV


Hi,

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: http://sources.redhat.com/ml/insight/2004-q1/msg00021.html.

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' prefix.

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.

Andrew Stubbs

Attachment: insight-win.patch
Description: Binary data


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