Comment 23 for bug 13460

Revision history for this message
In , Andrés Roldán (aroldan) wrote : Unreproducible

Hi, I still can't reproduce this bug using the latest versions
of libc6 and valgrind available on Debian. This is what I did:

aroldan@volatile:~% cat xyz.c
#include <stdio.h>

int
main()
{
  something();
}
aroldan@volatile:~% cc -o xyz.so -shared xyz.c
aroldan@volatile:~% cat a.c
#include <dlfcn.h>
#include <stdio.h>

print(char *s)
{
 fprintf(stderr, "%s\n", s);
}

int main()
{
 void*v=dlopen("./xyz.so", RTLD_NOW);
 printf("%s\n", dlerror());

 //void *dlsym(void *handle, const char *symbol);
 //int dlclose(void *handle);

 return 0;
}
aroldan@volatile:~% cc -o a a.c -ldl
aroldan@volatile:~% ./a
./xyz.so: undefined symbol: something
aroldan@volatile:~% valgrind.bin --tool=memcheck ./a
==9779== Memcheck, a memory error detector for x86-linux.
==9779== Copyright (C) 2002-2004, and GNU GPL'd, by Julian Seward et al.
==9779== Using valgrind-2.2.0, a program supervision framework for x86-linux.
==9779== Copyright (C) 2000-2004, and GNU GPL'd, by Julian Seward et al.
==9779== For more details, rerun with: -v
==9779==
/xyz.so: undefined symbol: something
==9779==
==9779== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 11 from 1)
==9779== malloc/free: in use at exit: 0 bytes in 0 blocks.
==9779== malloc/free: 9 allocs, 9 frees, 1007 bytes allocated.
==9779== For a detailed leak analysis, rerun with: --leak-check=yes
==9779== For counts of detected errors, rerun with: -v
aroldan@volatile:~% dpkg -l valgrind libc6
Desired=Unknown/Install/Remove/Purge/Hold
| Estado=No/Instalado/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: mayúsc.=malo)
||/ Nombre Versión Descripción
+++-============================-============================-========================================================================
ii valgrind 2.2.0-4 A memory debugger for x86-linux
ii libc6 2.3.2.ds1-20 GNU C Library: Shared libraries and Timezone data

--
Andrés Roldán

<email address hidden> / Fluidsignal Group S.A.
<email address hidden> / The Debian Project

Mobile: +57 300-7920981
GPG F/P: 0EE9 27C9 55F1 92E4 3809 B852 D8E0 724B B293 96EB
http://people.fluidsignal.com/~aroldan