From: Fernando Nasser <fnasser@cygnus.com>
To: Nicholas_Karagas@cirilium.com
Cc: insight@sourceware.cygnus.com
Subject: Re: SIGSEGV in Insight cleanup
Date: Wed, 21 Jun 2000 14:31:00 -0000 [thread overview]
Message-ID: <3951341D.5FFDD159@cygnus.com> (raw)
In-Reply-To: <OF9AB2B7F4.83EF9EDD-ON07256905.0073733D@cirilium.com>
I've never seem this. I believe you are implying this happens on a cygwin NT host,
isn't it?
Is it in the latest cygwin and gdb snapshots?
I will keep this in mind while I use the debugger and see if it happens to me
so I can take a look.
Thanks for reporting it.
Fernando
Nicholas_Karagas@cirilium.com wrote:
>
> I've noticed, while debugging Insight with gdb, that Insight always (to the
> best of my knowledge, at least with remote targets) exits with a SIGSEGV.
> Specifically,
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x47354e in serial_write (scb=0x0, str=0x291d1f0 "$k#6b", len=5)
> at serial.c:387
> 387 return (scb->ops->write (scb, str, len));
>
> This is in remote_kill, when gdb sends the kill packet to the remote
> target. I've traced the reason to the following series of function calls
> (the first quit_force originates from exiting Insight and answering yes to
> the "A debugging session is active. Do you still want to close the
> debugger?" dialog box):
>
> quit_force -> do_final_cleanups -> do_my_cleanups -> gdbtk_cleanup ->
> Tcl_Finalize -> (many more) -> quit_force
>
> By the time the second (recursive) call to quit_force calls remote_kill,
> the scb has already been cleared. The SIGSEGV only occurs at the end of
> the program, and is thus usually invisible, but it might be causing memory
> leaks in NT, etc. I don't know that much about the internals of either
> Insight or gdb... is this a known problem? Any solutions? Would it help
> to see the complete (53 function) backtrace?
>
--
Fernando Nasser
Red Hat - Toronto E-Mail: fnasser@cygnus.com
2323 Yonge Street, Suite #300 Tel: 416-482-2661 ext. 311
Toronto, Ontario M4P 2C9 Fax: 416-482-6299
prev parent reply other threads:[~2000-06-21 14:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-06-21 14:25 Nicholas_Karagas
2000-06-21 14:31 ` Fernando Nasser [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3951341D.5FFDD159@cygnus.com \
--to=fnasser@cygnus.com \
--cc=Nicholas_Karagas@cirilium.com \
--cc=insight@sourceware.cygnus.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).