[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
lt_dlopen returns non-NULL value for non existing files
From: |
Aleksey Cheusov |
Subject: |
lt_dlopen returns non-NULL value for non existing files |
Date: |
19 Dec 2002 16:51:25 +0200 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 |
The following program says 'seg. fault'
because lt_dlopen returns non-NULL value
for non-existing files.
#include <stdio.h>
#include <ltdl.h>
int main (int argc, char **argv)
{
if (lt_dlinit ())
return 1;
lt_dlhandle h = lt_dlopen ("/path/to/file");
if (h){
fprintf (stderr, "loaded\n");
lt_dlsym (h, "some_symbol");
}else{
fprintf (stderr, "not found\n");
}
return 0;
}
The attached file contains a patch
libtools-1.4.2-dlopen-NULL.patch
Description: patch
--
Best regards, Aleksey Cheusov.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- lt_dlopen returns non-NULL value for non existing files,
Aleksey Cheusov <=