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 dynamic-link/21329] New: dlerror() force end the program


https://sourceware.org/bugzilla/show_bug.cgi?id=21329

            Bug ID: 21329
           Summary: dlerror() force end the program
           Product: glibc
           Version: 2.25
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: dynamic-link
          Assignee: unassigned at sourceware dot org
          Reporter: rmbeer2 at gmail dot com
  Target Milestone: ---

Where i use '-rdynamic' in the gcc, any error that take from dlopen() by lack
of symbol, the dlerror show the error and end the program. Never read "return
-1;".

The lines is:
  hnd=dlopen(zn,RTLD_LAZY|RTLD_LOCAL);
  if(!hnd){printf("%s\n",dlerror());return -1;}

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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