# ubuntu help, dl_open leaks?

- Thread: https://externals.io/message/35076
- Original archive: https://news-web.php.net/php.internals/35076
- Started by Gregory Beaver on 2008-02-01T21:51:13+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #35076 — Gregory Beaver — 2008-02-01T21:51:13+00:00

URL: https://externals.io/message/35076#35076

Hi all,

It's a tad tricky to do run-tests -m on my system, as every PHP call leaks:

==4570== Invalid read of size 8
==4570==    at 0x4015B0A: (within /lib/ld-2.6.1.so)
==4570==    by 0x400A8F7: (within /lib/ld-2.6.1.so)
==4570==    by 0x4006174: (within /lib/ld-2.6.1.so)
==4570==    by 0x40085F7: (within /lib/ld-2.6.1.so)
==4570==    by 0x4011C98: (within /lib/ld-2.6.1.so)
==4570==    by 0x400DA05: (within /lib/ld-2.6.1.so)
==4570==    by 0x401155A: (within /lib/ld-2.6.1.so)
==4570==    by 0x56F9F8A: (within /lib/libdl-2.6.1.so)
==4570==    by 0x400DA05: (within /lib/ld-2.6.1.so)
==4570==    by 0x56FA4EC: (within /lib/libdl-2.6.1.so)
==4570==    by 0x56F9EF0: dlopen (in /lib/libdl-2.6.1.so)
==4570==    by 0x610D67: php_load_extension (dl.c:142)
==4570==  Address 0x6BCFA30 is 40 bytes inside a block of size 44 alloc'd
==4570==    at 0x4C21C16: malloc (vg_replace_malloc.c:149)
==4570==    by 0x40077B3: (within /lib/ld-2.6.1.so)
==4570==    by 0x400854E: (within /lib/ld-2.6.1.so)
==4570==    by 0x4011C98: (within /lib/ld-2.6.1.so)
==4570==    by 0x400DA05: (within /lib/ld-2.6.1.so)
==4570==    by 0x401155A: (within /lib/ld-2.6.1.so)
==4570==    by 0x56F9F8A: (within /lib/libdl-2.6.1.so)
==4570==    by 0x400DA05: (within /lib/ld-2.6.1.so)
==4570==    by 0x56FA4EC: (within /lib/libdl-2.6.1.so)
==4570==    by 0x56F9EF0: dlopen (in /lib/libdl-2.6.1.so)
==4570==    by 0x610D67: php_load_extension (dl.c:142)
==4570==    by 0x6B5C4F: php_load_php_extension_cb (php_ini.c:319)
==4570==
==4570== Invalid read of size 8
==4570==    at 0x4015B24: (within /lib/ld-2.6.1.so)
==4570==    by 0x400A8F7: (within /lib/ld-2.6.1.so)
==4570==    by 0x4006174: (within /lib/ld-2.6.1.so)
==4570==    by 0x40085F7: (within /lib/ld-2.6.1.so)
==4570==    by 0x400BB6C: (within /lib/ld-2.6.1.so)
==4570==    by 0x400DA05: (within /lib/ld-2.6.1.so)
==4570==    by 0x400C239: (within /lib/ld-2.6.1.so)
==4570==    by 0x4011CF8: (within /lib/ld-2.6.1.so)
==4570==    by 0x400DA05: (within /lib/ld-2.6.1.so)
==4570==    by 0x401155A: (within /lib/ld-2.6.1.so)
==4570==    by 0x56F9F8A: (within /lib/libdl-2.6.1.so)
==4570==    by 0x400DA05: (within /lib/ld-2.6.1.so)
==4570==  Address 0x6BD0930 is 16 bytes inside a block of size 19 alloc'd
==4570==    at 0x4C21C16: malloc (vg_replace_malloc.c:149)
==4570==    by 0x4008AF5: (within /lib/ld-2.6.1.so)
==4570==    by 0x400BB6C: (within /lib/ld-2.6.1.so)
==4570==    by 0x400DA05: (within /lib/ld-2.6.1.so)
==4570==    by 0x400C239: (within /lib/ld-2.6.1.so)
==4570==    by 0x4011CF8: (within /lib/ld-2.6.1.so)
==4570==    by 0x400DA05: (within /lib/ld-2.6.1.so)
==4570==    by 0x401155A: (within /lib/ld-2.6.1.so)
==4570==    by 0x56F9F8A: (within /lib/libdl-2.6.1.so)
==4570==    by 0x400DA05: (within /lib/ld-2.6.1.so)
==4570==    by 0x56FA4EC: (within /lib/libdl-2.6.1.so)
==4570==    by 0x56F9EF0: dlopen (in /lib/libdl-2.6.1.so)

Anyone have experience with this and advice on what I need to upgrade?

Greg

---

## #35077 — Rasmus Lerdorf — 2008-02-01T21:54:35+00:00

URL: https://externals.io/message/35076#35077 · In reply to: #35076

Gregory Beaver wrote:

> Anyone have experience with this and advice on what I need to upgrade?

It's normal.  Create a suppression file and ignore those.

eg.

--gen-suppressions=yes

And it isn't PHP calls leaking.  It's just the way libdl does stuff.

-Rasmus
