Willy Tarreau
5b3cd9561b
BUG/MEDIUM: tools: avoid calling dlsym() in static builds (try 2)
...
The first approach in commit 288dc1d8e ("BUG/MEDIUM: tools: avoid calling
dlsym() in static builds") relied on dlopen() but on certain configs (at
least gcc-4.8+ld-2.27+glibc-2.17) it used to catch situations where it
ought not fail.
Let's have a second try on this using dladdr() instead. The variable was
renamed "build_is_static" as it's exactly what's being detected there.
We could even take it for reporting in -vv though that doesn't seem very
useful. At least the variable was made global to ease inspection via the
debugger, or in case it's useful later.
Now it properly detects a static build even with gcc-4.4+glibc-2.11.1 and
doesn't crash anymore.
2022-07-18 14:03:54 +02:00
..
2022-03-29 18:01:37 +02:00
2021-12-16 17:31:57 +01:00
2022-03-30 11:19:22 +02:00
2021-08-04 16:03:36 +02:00
2022-06-14 10:38:03 +02:00
2022-07-15 19:41:26 +02:00
2022-07-01 19:15:14 +02:00
2021-09-02 19:43:20 +02:00
2021-07-16 19:18:41 +02:00
2022-01-28 19:04:02 +01:00
2022-04-25 16:09:26 +02:00
2022-02-24 11:00:03 +01:00
2022-03-11 16:59:14 +01:00
2022-07-10 14:13:48 +02:00
2022-03-04 08:58:32 +01:00
2022-03-04 08:58:32 +01:00
2021-10-13 11:28:08 +02:00
2021-07-20 18:03:08 +02:00
2021-09-15 11:07:18 +02:00
2022-04-27 18:07:24 +02:00
2022-05-27 19:33:34 +02:00
2022-05-27 19:33:34 +02:00
2022-05-27 19:33:35 +02:00
2022-05-27 19:33:35 +02:00
2021-11-08 12:08:26 +01:00
2022-05-06 18:33:22 +02:00
2022-05-06 18:33:22 +02:00
2021-10-08 17:22:26 +02:00
2022-05-08 10:35:39 +02:00
2022-06-08 12:17:22 +02:00
2022-05-27 19:33:35 +02:00
2022-05-27 19:33:35 +02:00
2022-07-15 19:43:10 +02:00
2022-07-15 19:43:10 +02:00
2022-07-01 19:26:35 +02:00
2022-07-15 21:51:48 +02:00
2022-05-11 15:20:10 +02:00
2022-03-04 08:58:32 +01:00
2022-03-04 08:58:32 +01:00
2021-11-03 17:16:46 +01:00
2021-10-08 17:22:26 +02:00
2021-07-06 07:24:42 +02:00
2021-10-07 01:41:14 +02:00
2022-07-15 19:58:06 +02:00
2022-07-15 20:16:30 +02:00
2022-06-22 18:33:27 +02:00
2022-05-30 09:59:26 +02:00
2022-07-01 19:15:14 +02:00
2021-09-23 16:13:17 +02:00
2022-01-28 19:04:02 +01:00
2022-05-30 09:59:26 +02:00
2022-05-30 09:59:26 +02:00
2022-06-09 14:34:43 +02:00
2022-03-30 14:56:10 +02:00
2022-06-19 17:58:32 +02:00
2021-11-18 10:50:58 +01:00
2022-04-13 15:10:14 +02:00
2022-05-27 19:33:35 +02:00
2022-02-23 15:11:11 +01:00
2022-02-23 15:11:11 +01:00
2021-07-07 15:34:01 +02:00
2022-03-02 14:50:38 +01:00
2021-10-14 16:38:07 +02:00
2022-07-06 17:54:03 +02:00
2021-09-23 16:19:36 +02:00
2022-05-30 16:25:16 +02:00
2022-04-22 15:45:47 +02:00
2022-04-22 15:45:47 +02:00
2022-04-14 16:57:12 +02:00
2022-06-21 20:29:57 +02:00
2021-10-18 16:02:29 +02:00
2021-10-14 16:38:14 +02:00
2021-10-07 01:41:14 +02:00
2021-10-07 01:41:14 +02:00
2021-10-07 01:41:14 +02:00
2021-10-07 01:41:14 +02:00
2021-10-21 15:28:24 +02:00
2022-05-20 18:41:55 +02:00
2022-05-20 18:39:43 +02:00
2022-03-17 19:53:46 +01:00
2022-03-22 09:25:52 +01:00
2022-07-11 16:45:04 +02:00
2022-07-15 15:06:59 +02:00
2021-11-10 15:53:01 +01:00
2022-01-28 23:52:36 +01:00
2021-10-07 01:41:14 +02:00
2022-05-30 16:37:17 +02:00
2022-07-01 15:54:23 +02:00
2021-09-23 15:27:25 +02:00
2022-05-27 19:33:35 +02:00
2022-05-27 19:33:35 +02:00
2022-04-21 14:54:45 +02:00
2021-10-07 01:41:14 +02:00
2022-05-17 16:13:22 +02:00
2021-10-07 01:41:14 +02:00
2021-10-07 01:36:51 +02:00
2022-03-02 18:22:08 +01:00
2022-06-23 11:58:01 +02:00
2022-03-04 08:58:32 +01:00
2022-03-04 08:58:32 +01:00
2022-05-20 18:39:43 +02:00
2021-10-27 17:41:07 +02:00
2022-05-16 16:00:26 +02:00
2021-10-15 14:12:19 +02:00
2022-06-15 15:05:08 +02:00
2021-09-23 15:27:25 +02:00
2022-03-04 08:58:32 +01:00
2022-03-04 08:58:32 +01:00
2022-03-04 08:58:32 +01:00
2021-10-07 01:41:14 +02:00
2021-06-24 10:52:31 +02:00
2022-05-30 16:37:17 +02:00
2022-05-12 15:30:14 +02:00
2022-06-24 12:13:53 +02:00
2022-07-15 14:57:49 +02:00
2022-07-15 14:57:49 +02:00
2022-05-30 16:37:17 +02:00
2022-06-16 14:56:24 +02:00
2022-01-26 16:13:51 +01:00
2022-04-11 19:33:04 +02:00
2022-06-30 14:24:04 +02:00
2022-05-30 09:59:26 +02:00
2022-04-21 12:03:20 +02:00
2022-05-03 10:13:40 +02:00
2022-06-16 14:56:24 +02:00
2022-06-16 15:58:48 +02:00
2022-06-21 11:07:39 +02:00
2022-06-21 11:07:39 +02:00
2022-02-15 10:13:20 +01:00
2021-08-28 12:49:58 +02:00
2021-12-01 15:21:56 +01:00
2022-05-27 19:33:35 +02:00
2022-05-06 18:13:36 +02:00
2022-05-06 18:13:36 +02:00
2022-03-29 18:01:37 +02:00
2022-05-27 19:33:35 +02:00
2022-05-11 11:39:06 +02:00
2022-03-16 15:55:30 +01:00
2022-05-02 17:51:51 +02:00
2022-05-02 17:51:51 +02:00
2021-06-15 16:52:42 +02:00
2021-06-15 16:52:42 +02:00
2021-09-15 11:07:18 +02:00
2022-05-17 16:13:22 +02:00
2022-01-28 19:04:02 +01:00
2022-01-28 19:04:02 +01:00
2021-08-05 10:07:43 +02:00
2022-03-30 14:55:53 +02:00
2022-03-30 12:18:16 +02:00
2021-10-07 01:41:14 +02:00
2022-04-27 16:53:43 +02:00
2022-05-17 10:56:05 +02:00
2021-08-26 19:48:34 +02:00
2022-05-09 20:32:11 +02:00
2022-05-20 16:57:12 +02:00
2022-05-27 19:33:35 +02:00
2022-06-17 13:25:02 +02:00
2021-10-18 09:13:24 +02:00
2021-10-07 01:41:14 +02:00
2022-05-27 19:33:35 +02:00
2022-05-27 19:33:35 +02:00
2022-07-01 19:15:14 +02:00
2022-07-15 19:43:10 +02:00
2021-10-07 01:41:14 +02:00
2022-03-02 14:54:44 +01:00
2022-07-15 19:41:26 +02:00
2022-07-15 20:25:41 +02:00
2021-10-07 01:41:14 +02:00
2021-10-08 17:22:26 +02:00
2022-07-15 19:43:10 +02:00
2022-07-01 19:15:15 +02:00
2022-07-18 14:03:54 +02:00
2021-12-21 15:53:19 +01:00
2022-03-02 14:53:00 +01:00
2022-01-03 14:40:58 +01:00
2021-09-08 15:44:45 +02:00
2022-05-31 17:05:27 +02:00
2022-07-15 14:57:49 +02:00
2022-07-15 14:57:49 +02:00
2021-09-11 20:37:50 +02:00