Carlos O'Donell
93930ea935
Fix tst-leaks1 (bug 14681)
...
The test tst-leaks1 exercises calling dlopen with a $ORIGIN DST.
This results in a theoretical leak e.g.
Memory not freed:
-----------------
Address Size Caller
0x0000000001d766c0 0x21 at 0x7fb1bd8bf4ab
Or as seen via valgrind:
==27582== 33 bytes in 1 blocks are still reachable in loss record 1 of 1
==27582== at 0x4C2CB6B: malloc (vg_replace_malloc.c:299)
==27582== by 0x40124AA: _dl_get_origin (dl-origin.c:50)
==27582== by 0x4007DB9: expand_dynamic_string_token (dl-load.c:382)
==27582== by 0x400899C: _dl_map_object (dl-load.c:2160)
==27582== by 0x4013020: dl_open_worker (dl-open.c:224)
==27582== by 0x5166F9B: _dl_catch_exception (dl-error-skeleton.c:198)
==27582== by 0x4012BD9: _dl_open (dl-open.c:594)
==27582== by 0x4E39EF5: dlopen_doit (dlopen.c:66)
==27582== by 0x5166F9B: _dl_catch_exception (dl-error-skeleton.c:198)
==27582== by 0x516700E: _dl_catch_error (dl-error-skeleton.c:217)
==27582== by 0x4E3A514: _dlerror_run (dlerror.c:162)
==27582== by 0x4E39F70: dlopen@@GLIBC_2.2.5 (dlopen.c:87)
There is no real leak.
The calling link map (the executable's link map) has it's l_origin
expanded for future use as part of _dl_get_origin, and that results
in the main executable link map having a N-byte allocation for
l->l_origin that is never freed since the executable's link map is
just a part of the process.
To take this into account we do one dlopen with $ORIGIN before
calling mtrace to force the initialization of the executable link
map.
Signed-off-by: Carlos O'Donell <carlos@redhat.com>
2017-12-15 20:22:29 -08:00
..
2017-01-01 00:14:16 +00:00
2017-01-01 00:14:16 +00:00
2017-08-31 16:59:37 +02:00
2017-08-13 21:11:54 +02:00
2017-08-31 16:59:37 +02:00
2017-01-01 00:14:16 +00:00
2017-11-27 11:37:19 +01:00
2017-01-01 00:14:16 +00:00
2017-08-31 16:59:37 +02:00
2017-11-27 11:37:19 +01:00
2017-01-01 00:14:16 +00:00
2017-08-31 16:59:37 +02:00
2017-01-01 00:14:16 +00:00
2017-08-13 21:11:54 +02:00
2017-01-01 00:14:16 +00:00
2017-08-10 16:54:57 +02:00
2017-08-31 16:59:37 +02:00
2017-11-27 11:37:19 +01:00
2017-01-01 00:14:16 +00:00
2017-11-28 09:57:00 -08:00
2017-06-07 11:11:40 +05:30
2017-08-14 15:08:48 +02:00
2017-10-01 16:09:38 -07:00
2017-08-31 16:59:37 +02:00
2017-12-14 15:31:46 +01:00
2017-01-01 00:14:16 +00:00
2017-08-31 16:59:37 +02:00
2017-01-01 00:14:16 +00:00
2017-04-09 23:34:33 +00:00
2017-06-08 12:52:42 -07:00
2017-08-31 16:59:37 +02:00
2017-08-31 16:59:37 +02:00
2017-11-27 11:37:19 +01:00
2017-01-01 00:14:16 +00:00
2017-08-31 16:59:37 +02:00
2017-01-01 00:14:16 +00:00
2017-12-15 17:12:14 -08:00
2017-08-31 16:59:37 +02:00
2017-06-14 10:47:25 +09:30
2017-01-01 00:14:16 +00:00
2017-11-27 11:37:19 +01:00
2017-12-15 17:12:14 -08:00
2017-08-31 16:59:37 +02:00
2017-01-01 00:14:16 +00:00
2017-01-01 00:14:16 +00:00
2017-08-31 16:59:37 +02:00
2017-08-31 16:59:37 +02:00
2017-05-17 13:11:55 +05:30
2017-09-27 02:44:09 +05:30
2017-06-30 22:58:39 +05:30
2017-12-15 00:48:12 +05:30
2017-01-01 00:14:16 +00:00
2017-08-31 16:59:37 +02:00
2017-01-01 00:14:16 +00:00
2017-01-01 00:14:16 +00:00
2017-12-15 17:12:14 -08:00
2017-08-18 08:50:42 -07:00
2017-01-01 00:14:16 +00:00
2016-01-07 04:03:21 -05:00
2017-12-15 17:12:14 -08:00
2016-12-26 10:08:41 +01:00
2013-06-05 20:44:03 +00:00
2013-06-05 20:44:03 +00:00
2016-12-26 10:08:41 +01:00
2016-12-26 10:08:41 +01:00
2016-12-26 10:08:41 +01:00
2016-12-26 10:08:41 +01:00
2017-01-01 00:14:16 +00:00
2017-10-30 15:48:33 +01:00
2017-08-16 15:59:55 +02:00
2017-01-01 00:14:16 +00:00
2017-06-27 17:52:42 +00:00
2017-12-15 17:12:14 -08:00
2017-04-05 10:34:58 -03:00
2017-04-05 10:34:58 -03:00
2017-04-05 10:34:58 -03:00
2017-01-01 00:14:16 +00:00
2017-01-01 00:26:24 +00:00
2017-11-28 09:57:00 -08:00
2017-01-01 00:14:16 +00:00
2013-08-21 19:48:48 +02:00
2013-08-21 19:48:48 +02:00
2017-09-10 17:39:39 +02:00
2017-12-10 19:10:28 +01:00
2017-01-01 00:14:16 +00:00
2017-01-01 00:14:16 +00:00
2017-03-01 20:33:46 -05:00
2017-01-11 13:57:59 +00:00
2017-01-01 00:26:24 +00:00
2017-01-01 00:26:24 +00:00
2017-01-01 00:14:16 +00:00
2017-06-14 10:47:25 +09:30
2013-06-05 20:44:03 +00:00
2017-11-03 14:40:28 +00:00
2017-08-31 16:59:37 +02:00
2017-04-05 10:34:58 -03:00
2017-04-05 10:34:58 -03:00
2017-04-05 10:34:58 -03:00
2017-01-01 00:14:16 +00:00
2017-01-01 00:14:16 +00:00
2017-04-05 10:34:58 -03:00
2017-04-05 10:34:58 -03:00
2017-04-05 10:34:58 -03:00
2017-01-01 00:14:16 +00:00
2017-01-01 00:14:16 +00:00
2017-01-01 00:14:16 +00:00
2017-04-05 10:34:58 -03:00
2017-01-01 00:14:16 +00:00
2017-01-01 00:14:16 +00:00
2017-01-01 00:14:16 +00:00
2017-01-01 00:14:16 +00:00
2017-02-16 17:33:18 -05:00
2014-02-25 13:18:15 -05:00
2014-02-25 13:18:15 -05:00
2017-01-01 00:14:16 +00:00
2017-01-01 00:14:16 +00:00
2017-04-05 10:34:58 -03:00
2017-09-26 13:50:01 -07:00
2017-04-05 10:34:58 -03:00
2017-04-05 10:34:58 -03:00
2017-04-05 10:34:58 -03:00
2017-04-05 10:34:58 -03:00
2017-04-05 10:34:58 -03:00
2017-04-05 10:34:58 -03:00
2017-04-05 14:09:38 -07:00
2017-04-05 10:34:58 -03:00
2017-01-01 00:14:16 +00:00
2017-04-05 10:34:58 -03:00
2017-05-11 19:27:59 -04:00
2017-03-07 20:52:04 +05:30
2017-04-05 10:34:58 -03:00
2017-04-05 10:34:58 -03:00
2017-04-05 10:34:58 -03:00
2017-04-05 10:34:58 -03:00
2017-04-05 10:34:58 -03:00
2017-01-01 00:14:16 +00:00
2017-04-05 10:34:58 -03:00
2017-01-01 00:14:16 +00:00
2017-01-01 00:14:16 +00:00
2017-12-15 20:22:29 -08:00
2017-04-05 10:34:58 -03:00
2017-10-04 15:40:49 -07:00
2017-10-04 15:40:49 -07:00
2017-04-05 10:34:58 -03:00
2015-08-11 10:13:22 +02:00
2017-01-01 00:14:16 +00:00
2017-01-01 00:14:16 +00:00
2017-01-01 00:14:16 +00:00
2017-01-01 00:14:16 +00:00
2017-04-05 10:34:58 -03:00
2015-07-07 11:06:56 -07:00
2015-07-07 11:06:56 -07:00
2015-07-07 11:06:56 -07:00
2017-04-05 10:34:58 -03:00
2017-04-05 10:34:58 -03:00
2017-01-01 00:14:16 +00:00
2017-04-05 10:34:58 -03:00
2017-04-05 10:34:58 -03:00
2017-04-05 10:34:58 -03:00
2017-01-01 00:14:16 +00:00
2017-04-05 10:34:58 -03:00
2017-04-05 10:34:58 -03:00
2017-04-05 10:34:58 -03:00
2015-11-14 12:00:38 -08:00
2017-04-05 10:34:58 -03:00
2017-04-05 10:34:58 -03:00
2017-01-01 00:14:16 +00:00
2017-01-01 00:14:16 +00:00
2017-01-01 00:14:16 +00:00
2013-09-23 00:52:09 -04:00
2017-04-05 10:34:58 -03:00
2017-04-05 10:34:58 -03:00
2017-01-01 00:14:16 +00:00
2017-04-05 10:34:58 -03:00
2017-04-05 10:34:58 -03:00
2017-09-30 01:39:32 -07:00
2017-04-05 10:34:58 -03:00
2017-04-05 10:34:58 -03:00
2017-04-05 10:34:58 -03:00
2017-04-05 10:34:58 -03:00
2017-04-05 10:34:58 -03:00
2017-04-05 10:34:58 -03:00
2017-04-05 10:34:58 -03:00
2017-04-05 10:34:58 -03:00
2017-04-05 10:34:58 -03:00
2017-04-05 10:34:58 -03:00
2013-10-18 19:45:36 +05:30
2017-04-05 10:34:58 -03:00
2017-04-05 10:34:58 -03:00
2017-04-05 10:34:58 -03:00
2017-04-05 10:34:58 -03:00
2017-04-05 10:34:58 -03:00
2017-04-05 10:34:58 -03:00
2017-04-05 10:34:58 -03:00
2017-04-05 10:34:58 -03:00
2017-04-05 10:34:58 -03:00
2017-04-05 10:34:58 -03:00
2017-04-05 10:34:58 -03:00
2017-01-01 00:14:16 +00:00
2017-01-01 00:14:16 +00:00
2015-06-02 16:55:36 -07:00
2017-04-05 10:34:58 -03:00
2015-05-06 13:32:18 -07:00
2015-05-06 13:32:18 -07:00
2015-06-02 16:55:36 -07:00
2017-04-05 10:34:58 -03:00
2013-10-18 19:45:36 +05:30
2013-10-18 19:45:36 +05:30
2013-10-18 19:45:36 +05:30
2013-10-18 19:45:36 +05:30
2013-10-18 19:45:36 +05:30
2013-10-18 19:45:36 +05:30
2013-10-18 19:45:36 +05:30
2013-10-18 19:45:36 +05:30
2013-10-18 19:45:36 +05:30
2013-10-18 19:45:36 +05:30
2013-10-18 19:45:36 +05:30
2017-04-05 10:34:58 -03:00
2015-10-19 22:34:20 +00:00
2015-10-19 22:34:20 +00:00
2017-04-05 10:34:58 -03:00
2015-10-19 22:34:20 +00:00
2015-10-19 22:34:20 +00:00
2014-12-16 10:26:48 +01:00
2017-08-10 16:54:57 +02:00
2017-04-05 10:34:58 -03:00
2017-01-01 00:14:16 +00:00
2017-01-01 00:14:16 +00:00
2017-01-01 00:14:16 +00:00