This is the mail archive of the
cygwin-developers@cygwin.com
mailing list for the Cygwin project.
Re: dll_list::detach() can stackdump
- From: Jason Tishler <jason at tishler dot net>
- To: Cygwin-Developers <cygwin-developers at cygwin dot com>
- Date: Tue, 12 Nov 2002 09:58:48 -0500
- Subject: Re: dll_list::detach() can stackdump
- References: <20021107171831.GA1752@tishler.net>
On Thu, Nov 07, 2002 at 12:18:31PM -0500, Jason Tishler wrote:
> I'm trying to debug a dll_list::detach() stackdump problem that I
> first triggered by a Cygwin Perl application. Specifically, the
> problem occurs at the following dll_init.cc line:
>
> void
> dll_list::detach (dll *d)
> {
> ...
> ***> if (d->count <= 0)
> ...
> }
Although, the following patch:
http://cygwin.com/ml/cygwin-patches/2002-q4/msg00103.html
fixes the problem for newly built DLLs, it does not (and cannot) correct
old (i.e., previously built) DLLs.
What is the best way to solve this issue? Should dll_list::detach() be
changed to call IsBadReadPtr() to prevent stackdumps?
Thanks,
Jason
--
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6