This is the mail archive of the cygwin@sources.redhat.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]

Re: Cygwin gcc/ld doesn't like some DLL filenames...


--- Jason Tishler <Jason.Tishler@dothill.com> wrote:
> On Wed, Oct 25, 2000 at 04:24:28PM -0400, Jason Tishler wrote:
> > Can anyone explain this strange behavior?
> 
> The plot thickens -- main.exe runs normally when invoked via strace and
> gdb.  For example:
> 
>     $ ./main 
>           0 [main] main 1186 handle_exceptions: Exception:
> STATUS_ACCESS_VIOLATION
>        4756 [main] main 1186 stackdump: Dumping stack trace to
> main.exe.stackdump
>     $ strace -o main.log ./main
>     hello
> 
> Any ideas on how to further debug this problem?
> 

This has all the sounds of a memory location reference that is being used that
is sometimes a location owned by main.exe and sometimes it's not owned by
main.exe.  Either way it is an illegal reference to the memory location.  Using
gdb and strace will cause the memory reference to change so it works.  Changing
the name of the dll is obviously doing the same thing.

The only solution I can think of is to search for all references to pointers,
check to see if there are any conditions that would cause the pointers to be
pointed to the incorrect memory location.  Tedious work.  You can use gdb to
help with this but it'll be a step look at pointers to check the addresses,
step look at pointers to check the addresses ... you get the picture.  You may
want to check out other tools for this.

Cheers,

=====
Earnie Boyd
mailto:earnie_boyd@yahoo.com

---         <http://earniesystems.safeshopper.com>         ---
--- Cygwin: POSIX on Windows <http://gw32.freeyellow.com/> ---
---   Minimalist GNU for Windows <http://www.mingw.org/>   ---

__________________________________________________
Do You Yahoo!?
Yahoo! Messenger - Talk while you surf!  It's FREE.
http://im.yahoo.com/

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


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