This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc 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]

[Bug admin/3239] New: The "info" declared in the function _dl_start of the rtld.c is not initialized


My project is to load an ELF executable file by using dynamic loader ld.so. 
After I mapped the executable and the loader in memory.  I start the loader 
program. But, I got the error message as below,

Inconsistency detected by ld.so: rtld.c: 306: _dl_start_final: Assertion `info-
>l.l_tls_modid == 0' failed!

The info is declared in the function _dl_start. The info->l.l_tls_modid has 
never been assigned to any value after that (USE_TLS is defined, USE_THREAD 
and DONT_USE_BOOTSTRAP_MAP is not defined). When loader ran to line 306--assert
(info->l.l_tls_modid), It failed. Obviously, it?s because the info is not 
initialized after declaration. Now I have to clean the memory above the stack-
top before I start the loader program to get it works.

-- 
           Summary: The "info" declared in the function _dl_start of the
                    rtld.c is not initialized
           Product: glibc
           Version: 2.4
            Status: NEW
          Severity: normal
          Priority: P2
         Component: admin
        AssignedTo: roland at gnu dot org
        ReportedBy: xijian dot zhu at cloakware dot com
                CC: glibc-bugs at sources dot redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=3239

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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