public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
* CYGWIN GDB on Insight - problems
@ 2003-06-30 16:01 Duane Ellis
  2003-06-30 16:55 ` Keith Seitz
  2003-06-30 21:23 ` Duane Ellis
  0 siblings, 2 replies; 8+ messages in thread
From: Duane Ellis @ 2003-06-30 16:01 UTC (permalink / raw)
  To: insight


Hi,

I've tried to back port the Tcl/Tk stuff (see the cygwin.html page) on
Insight to 5.2.1 so that I can build it under CYGWIN.  Well - I
screwed something up, it does not work and I'm trying to debug it.

When I start insight directly, I get a pop up "application failed to
initialize properly (0xc0000022)"

If I run GDB on Insight, it fails too... I get these messages
when I type run:

    Starting program: /insight/install/winXX/bin/gdb.exe

    Program received signal SIGSEGV, Segmentation fault
    Program received signal SIGSEGV, Segmentation fault
    [YES 2 times]

    Program exited with code 0200

Same with cygwish80.exe

I cannot seem to set a break point at "main".

I'm kind of stuck.

I'm fairly certian it's something with tcl/tk
and probably something in the DLLs... but I have
no idea how to get GDB to debug this.

Or - do a static link of the TCL/TK/TIX/ITCL libraries
so I can debug them.

Suggestions are welcome... 

-Duane.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: CYGWIN GDB on Insight - problems
  2003-06-30 16:01 CYGWIN GDB on Insight - problems Duane Ellis
@ 2003-06-30 16:55 ` Keith Seitz
  2003-06-30 17:58   ` Duane Ellis
  2003-06-30 21:23 ` Duane Ellis
  1 sibling, 1 reply; 8+ messages in thread
From: Keith Seitz @ 2003-06-30 16:55 UTC (permalink / raw)
  To: duane_ellis; +Cc: insight

On Mon, 2003-06-30 at 09:01, Duane Ellis wrote:
> I've tried to back port the Tcl/Tk stuff (see the cygwin.html page) on
> Insight to 5.2.1 so that I can build it under CYGWIN.  Well - I
> screwed something up, it does not work and I'm trying to debug it.

Ugh. 5.2. You know that 6.0 will soon be available? (Let me guess...
arm-elf ecos?) Just to be 100%: you're trying to revert the tcl/tk in
5.2.1 to tcl/tk 8.0.x, as per the instructions on the web page, right?

> When I start insight directly, I get a pop up "application failed to
> initialize properly (0xc0000022)"
> 
> If I run GDB on Insight, it fails too... I get these messages
> when I type run:
> 
>     Starting program: /insight/install/winXX/bin/gdb.exe
> 
>     Program received signal SIGSEGV, Segmentation fault
>     Program received signal SIGSEGV, Segmentation fault
>     [YES 2 times]
> 
>     Program exited with code 0200
> 

Sounds eerily familiar.  Try rebuild without optimization (CFLAGS="-g"
/path/to/src/configure --prefix=...; make all-gdb; make install-gdb) and
run under gdb. When the segfault happens, gdb should be able to give you
a backtrace.

Keith


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: CYGWIN GDB on Insight - problems
  2003-06-30 16:55 ` Keith Seitz
@ 2003-06-30 17:58   ` Duane Ellis
  0 siblings, 0 replies; 8+ messages in thread
From: Duane Ellis @ 2003-06-30 17:58 UTC (permalink / raw)
  To: keiths; +Cc: insight


keith>> Ugh. 5.2. You know that 6.0 will soon be available? (Let me guess...
keith>> arm-elf ecos?) 

arm-elf -our own internal OS- but same difference.

keith>> Just to be 100%: you're trying to revert the tcl/tk in
keith>> 5.2.1 to tcl/tk 8.0.x, as per the instructions on the web page, right?

Yep.... 

duane> When I start insight directly, I get a pop up "application failed to
duane> initialize properly (0xc0000022)"

keith>> Sounds eerily familiar.  Try rebuild without optimization (CFLAGS="-g"
keith>> /path/to/src/configure --prefix=...; make all-gdb; make install-gdb) and
keith>> run under gdb. When the segfault happens, gdb should be able to give you

No joy. Same problem, no ability to backtrace.

I've also gone back to my pure 5.2.1 + tcl/tk revert and built it as
target=same-as-host and it fails.

next step - i must verify that I actually did the 5.2.1 + tcl/tk revert
correctly - knowing my luck I probably goofed something.

-Duane.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: CYGWIN GDB on Insight - problems
  2003-06-30 16:01 CYGWIN GDB on Insight - problems Duane Ellis
  2003-06-30 16:55 ` Keith Seitz
@ 2003-06-30 21:23 ` Duane Ellis
  2003-07-01  2:16   ` Keith Seitz
  1 sibling, 1 reply; 8+ messages in thread
From: Duane Ellis @ 2003-06-30 21:23 UTC (permalink / raw)
  To: insight


Hm.... I'm still having problems.

I did exactly this: (copied from my 'history' output)

[Under Linux]

cd ~
mkdir insight
cd insight
cvs -z9 -d:pserver:anoncvs@sources.redhat.com:/cvs/src login
cvs -z9 -d:pserver:anoncvs@sources.redhat.com:/cvs/src co -r gdb_5_2-branch insight+dejagnu
cd src
cd tcl
cvs -q update -r gdb_5_1-2001-07-29-branch
cd ../tk
cvs -q update -r gdb_5_1-2001-07-29-branch
cd ../itcl/
cvs -q update -r gdb_5_1-2001-07-29-branch
lf iwidgets3.0.0/win/iwidgets.tcl
cd ../libgui/src/
cvs -q update -r gdb_5_1-2001-07-29-branch tkGraphCanvas.c tkCanvEdge.c 
cd ..
cd ..
cd ..

[These are seperate downloads from the CYGWIN page]

cp ~/iwidgets.tcl src/itcl/iwidgets3.0.0
cp ~/pkgIndex.tcl src/itcl/iwidgets3.0.0
tar cf src.tar src

Then copied 'src.tar' to my CYGWIN machine, and typed this:

cp /cygdrive/z/home/duane/insight/src.tar .
tar xf src.tar
cd src
./configure --prefix=/insight/install --exec-prefix=/insight/install/winXX
make
make install

And it still dies the horrible death. same way no changes.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: CYGWIN GDB on Insight - problems
  2003-06-30 21:23 ` Duane Ellis
@ 2003-07-01  2:16   ` Keith Seitz
  2003-07-01  4:23     ` Keith Seitz
  0 siblings, 1 reply; 8+ messages in thread
From: Keith Seitz @ 2003-07-01  2:16 UTC (permalink / raw)
  To: duane_ellis; +Cc: insight

On Mon, 2003-06-30 at 14:23, Duane Ellis wrote:
> ./configure --prefix=/insight/install --exec-prefix=/insight/install/winXX
> make
> make install
> 
> And it still dies the horrible death. same way no changes.

Hmm. I just tried this with 5.3, and it worked. Maybe it's a 5.2 thing.
I don't recall every trying that.

Tomorrow AM I will give 5.2 a shot.

Keith


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: CYGWIN GDB on Insight - problems
  2003-07-01  2:16   ` Keith Seitz
@ 2003-07-01  4:23     ` Keith Seitz
  2003-07-01 15:05       ` RESOLVED: " Duane Ellis
  0 siblings, 1 reply; 8+ messages in thread
From: Keith Seitz @ 2003-07-01  4:23 UTC (permalink / raw)
  To: duane_ellis; +Cc: insight

On Mon, 2003-06-30 at 19:26, Keith Seitz wrote:
> Hmm. I just tried this with 5.3, and it worked. Maybe it's a 5.2 thing.
> I don't recall every trying that.
> 
> Tomorrow AM I will give 5.2 a shot.

Ok. I lied. Tried it tonight. Bad news: after following the procedure
exactly as on the web page, it worked just fine. Insight started right
up.

:-) ?
Keith

^ permalink raw reply	[flat|nested] 8+ messages in thread

* RESOLVED: Re: CYGWIN GDB on Insight - problems
  2003-07-01  4:23     ` Keith Seitz
@ 2003-07-01 15:05       ` Duane Ellis
  2003-07-01 15:16         ` Keith Seitz
  0 siblings, 1 reply; 8+ messages in thread
From: Duane Ellis @ 2003-07-01 15:05 UTC (permalink / raw)
  To: keiths, insight


Keith, 

Fixed my problem.

you might want to add a reference about this in on the cygwin
workaround/hack/fix page. Thank you for helping me with this.

this gave me the clue:

	http://www.cygwin.com/ml/cygwin/2002-10/msg00616.html

Turns out that a number of the *DLL* files are not installed correctly
they need to have +X permissions and do not. 

[note: Other DLLS have the +X permissions, but these did not]

-rw-r--r--    1 duane    mkgroup_   221720 Jul  1 10:30 cygtclreg80.dll
-rw-r--r--    1 duane    mkgroup_    25466 Jul  1 10:30 cygtclpip80.dll
-rw-r--r--    1 duane    mkgroup_  1378508 Jul  1 10:30 cygtcl80.dll
-rw-r--r--    1 duane    mkgroup_  2134639 Jul  1 10:30 cygtk80.dll

Fixed by doing this:

   chmod +x *.dll

keiths,

Maybe it worked for you because maybe you have the cygtcl*.dll
files elsewhere with the +x permissions? Who knows...

-Duane.

GOOGLE is great... you type enough of the error message in
and somebody else has normally had the exact same problem.

So google (hopefully) indexes this also I'll add the
same phrases to this email:

keywords: cygwin Application failed to initialize 0xc0000022

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: RESOLVED: Re: CYGWIN GDB on Insight - problems
  2003-07-01 15:05       ` RESOLVED: " Duane Ellis
@ 2003-07-01 15:16         ` Keith Seitz
  0 siblings, 0 replies; 8+ messages in thread
From: Keith Seitz @ 2003-07-01 15:16 UTC (permalink / raw)
  To: duane_ellis; +Cc: insight

On Tue, 2003-07-01 at 08:05, Duane Ellis wrote:
> you might want to add a reference about this in on the cygwin
> workaround/hack/fix page. Thank you for helping me with this.
> 
> this gave me the clue:
> 
> 	http://www.cygwin.com/ml/cygwin/2002-10/msg00616.html

Wow, that's goofy! I'll have to remember that one. I'll add something to
my always-promised but not yet materialized FAQ...

Glad to hear things are working for you now.
Keith


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2003-07-01 15:16 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-30 16:01 CYGWIN GDB on Insight - problems Duane Ellis
2003-06-30 16:55 ` Keith Seitz
2003-06-30 17:58   ` Duane Ellis
2003-06-30 21:23 ` Duane Ellis
2003-07-01  2:16   ` Keith Seitz
2003-07-01  4:23     ` Keith Seitz
2003-07-01 15:05       ` RESOLVED: " Duane Ellis
2003-07-01 15:16         ` Keith Seitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).