This is the mail archive of the cygwin-developers@cygwin.com mailing list for the Cygwin 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]

Re: dll_list::detach() can stackdump


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


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