Skip to contentSkip to conversation

glibc2.6.1 dlopen bug

OT Holger Freyther 1 participant 1 message Nov 14, 2008

lore
Share & tools
lore
#0 lore raw

Hey,

could anyone with a more recent glibc try if the following is crashing too? If it does I would like to attempt a bugfix. I'm using glibc 2.6.1 optimized for armv4t (neo) and this crashed was found with gstreamer dlopening one of our split debug shared objects.

My test:
./dlopen-test /usr/lib/gstreamer-0.10/.debug/libgstcoreindexers.so Segmentation fault

thanks

	z.

#include <dlfcn.h>
#include <stdio.h>
#include <stdlib.h>

int main(int argc, char** argv)

{
    if (argc != 2) {
        fprintf(stderr, "Pass an object to open\n");
        return -1;
    }

    void* library = dlopen(argv[1], RTLD_LAZY);
    printf("Success, didn't crash\n");

    return 0;
}