Dear Sir/Madam,
I've found a bug with dirname function on Ubuntu 14.04 LTS. The context is:
        Dl_info info;
        if ( dladdr( ( const void* )function_to_get_address, &info ) == 0 )
            return false;
        if ( info.dli_fname == NULL )
            return false;
        dirname((char*)info.dli_fname); (1)

With info.dli_fname contains "./libabc.so". Before (1) is invoked, "info 
shared" command on gdb 7.1 shows no problem, but after invoking (1), "info 
shared" shows "." in Shared Object Library column and "No" in Sym column. After 
that, all "dlopen" functions failed with error "Error while mapping shared 
library sections" and some libraries throw Segmentation Fault exception. So, I 
think it is a bug of dirname function.
I hope this information is helpful. I'm looking forward to seeing a fix for 
this.

Sincerely,
Vinh T. Nguyen

Reply via email to