libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

lt_dlpreload_open ... BANG!


From: Bob Friesenhahn
Subject: lt_dlpreload_open ... BANG!
Date: Sun, 10 Oct 2004 19:17:00 -0500 (CDT)

MinGW crashes in the mdemo test while executing lt_dlpreload_open. GDB reveals that the first element of preloaded_symlists contains a symlist with null members:

Program received signal SIGSEGV, Segmentation fault.
0x77c436d0 in _libmsvcrt_a_iname ()
(gdb) bt
#0  0x77c436d0 in _libmsvcrt_a_iname ()
#1  0x00404c6b in lt_dlpreload_open (originator=0x401bc8 "libltdlc",
    func=0x401ac0 <loader_init_callback>)
    at 
//scooby/bfriesen/src/gnu/libtool-branch-2-0/libltdl/loaders/preopen.c:322
#2  0x00401c5c in lt_dlinit ()
    at //scooby/bfriesen/src/gnu/libtool-branch-2-0/libltdl/ltdl.c:221
#3  0x004019bb in main (argc=3, argv=0x3d2d68)
    at //scooby/bfriesen/src/gnu/libtool-branch-2-0/tests/mdemo/main.c:181
(gdb) p *list->symlist
$5 = {name = 0x0, address = 0x0}
(gdb) p list
$6 = (symlist_chain *) 0x3d2e10
(gdb) p preloaded_symlists
$7 = (symlist_chain *) 0x3d2e10
(gdb) p func
$8 = (lt_dlpreload_callback_func *) 0x401ac0 <loader_init_callback>

Naturally, this causes an immediate crash in streq().

Is it supposed to be possible for this condition to occur? Why might this condition occur for MinGW but not for other systems? It does work for Cygwin.

Bob
======================================
Bob Friesenhahn
address@hidden
http://www.simplesystems.org/users/bfriesen




reply via email to

[Prev in Thread] Current Thread [Next in Thread]