Jan Friesse
9aeab4aced
res_corosync: Change thread stack size
...
In Corosync 2.x libraries were changed to use LibQB IPC.
Sadly LibQB IPC doesn't support copy-free access to received buffer, so
Corosync libraries were rewritten to use stack as buffer. Mostly the
needed stack size is quite small, but for all *_dispatch functions, 1MiB
is needed.
Asterisk function ast_pthread_create_background set stack size for new
thread to much smaller AST_BACKGROUND_STACKSIZE (~500KiB).
This results in Asterisk crash when running with Corosync 2.x.
Patch solves this issue by creating it's own version of
ast_pthread_create_background which sets stack size to much higher value
(actually it's AST_BACKGROUND_STACKSIZE + 3MiB).
Another problem may appear when "corosync show members" netconsole
command is executed. It is also executed in thread and also has only
500KiB stack size. Sadly it calls corosync_cfg_get_node_addrs which
again needs at least 1MiB stack.
Solution is to use HAVE_COROSYNC_CFG_STATE_TRACK as a discriminator
between Corosync 1.x and 2.x. If 1.x is found, nothing changes. If 2.x
is found, NodeID is displayed instead of IP address.
ASTERISK-25370 #close
Reported by: mdu113
Change-Id: Id95b0d21ab6e708e7d74ad8786c587211676fa08
2017-06-16 07:53:22 -05:00
..
2017-01-04 14:06:20 -06:00
2017-04-16 18:59:54 -06:00
2017-01-04 14:06:20 -06:00
2017-06-06 09:46:39 -05:00
2016-10-27 09:53:55 -04:00
2017-05-26 12:15:42 -04:00
2017-01-26 17:06:40 -06:00
2017-05-30 16:09:50 -05:00
2016-10-27 09:53:55 -04:00
2016-10-27 09:53:55 -04:00
2017-05-26 09:25:51 -05:00
2017-04-16 18:59:54 -06:00
2017-04-16 18:59:54 -06:00
2017-04-16 18:59:54 -06:00
2017-04-16 18:59:54 -06:00
2017-04-16 18:59:54 -06:00
2017-04-16 18:59:54 -06:00
2017-04-16 18:59:54 -06:00
2017-04-16 18:59:54 -06:00
2017-04-12 15:57:21 -06:00
2017-04-16 18:59:54 -06:00
2017-04-16 18:59:54 -06:00
2017-04-16 18:59:54 -06:00
2017-04-12 15:57:21 -06:00
2016-11-29 13:35:26 -02:00
2016-10-27 09:53:55 -04:00
2016-10-27 09:53:55 -04:00
2016-10-27 09:53:55 -04:00
2017-04-12 15:57:21 -06:00
2017-04-12 15:57:21 -06:00
2016-10-27 09:53:55 -04:00
2017-02-10 18:04:41 -05:00
2017-02-21 10:53:17 -06:00
2017-02-22 17:37:52 -06:00
2017-02-21 10:53:17 -06:00
2017-03-01 07:27:50 -06:00
2017-05-25 10:02:42 +02:00
2017-04-12 15:57:21 -06:00
2016-10-27 09:53:55 -04:00
2017-06-16 07:53:22 -05:00
2016-10-27 09:53:55 -04:00
2016-10-27 09:53:55 -04:00
2017-04-12 15:57:21 -06:00
2016-10-27 09:53:55 -04:00
2016-10-27 09:53:55 -04:00
2016-10-27 09:53:55 -04:00
2016-10-27 09:53:55 -04:00
2017-05-23 10:57:57 -05:00
2017-05-23 10:57:57 -05:00
2016-07-22 10:09:08 +02:00
2016-12-08 11:47:30 +00:00
2016-10-27 09:53:55 -04:00
2016-10-27 09:53:55 -04:00
2016-10-27 09:53:55 -04:00
2016-10-27 09:53:55 -04:00
2017-03-21 13:40:29 -06:00
2017-05-18 16:36:21 -05:00
2017-04-24 13:22:48 -05:00
2017-04-12 15:57:39 -06:00
2016-11-15 22:25:14 +02:00
2017-04-12 15:57:21 -06:00
2017-04-12 15:57:21 -06:00
2016-10-27 09:53:55 -04:00
2017-05-16 14:25:23 +00:00
2016-10-27 09:53:55 -04:00
2016-10-27 09:53:55 -04:00
2016-10-27 09:53:55 -04:00
2016-08-21 18:56:01 -05:00
2016-10-27 09:53:55 -04:00
2017-01-04 14:06:20 -06:00
2016-11-15 22:25:14 +02:00
2017-01-24 11:25:19 -06:00
2017-02-20 22:24:31 -06:00
2017-04-26 15:32:11 -05:00
2017-03-28 15:51:21 -06:00
2016-12-31 20:00:46 -06:00
2016-10-27 09:53:55 -04:00
2016-10-27 09:53:55 -04:00
2017-03-15 13:52:15 +00:00
2016-09-09 17:13:02 -05:00
2017-02-15 13:11:46 -06:00
2017-02-23 16:23:53 -06:00
2016-10-27 09:53:55 -04:00
2017-03-21 08:45:37 -06:00
2017-06-13 09:34:24 -05:00
2017-04-12 15:57:21 -06:00
2017-04-12 15:57:21 -06:00
2017-04-28 11:04:57 -05:00
2017-04-12 15:57:21 -06:00
2017-04-12 15:57:21 -06:00
2016-09-09 17:13:02 -05:00
2017-04-07 08:44:49 -05:00
2017-06-14 11:16:54 -05:00
2017-06-13 14:28:21 -05:00
2016-11-10 16:59:41 -05:00
2017-02-08 11:54:39 -06:00
2017-06-07 13:34:58 +00:00
2017-04-12 15:57:21 -06:00
2017-06-15 08:12:43 -05:00
2017-06-13 14:28:21 -05:00
2017-04-29 18:15:32 -05:00
2016-09-14 09:53:33 -05:00
2017-06-09 09:55:44 -05:00
2017-06-06 09:46:39 -05:00
2016-10-27 09:53:55 -04:00
2016-10-27 09:53:55 -04:00
2017-02-01 17:33:41 -06:00
2017-06-14 08:59:09 -05:00
2017-06-06 10:55:04 -05:00
2017-04-27 19:08:05 -05:00
2016-10-27 09:53:55 -04:00
2017-04-12 15:57:21 -06:00
2016-10-27 09:53:55 -04:00
2016-10-27 09:53:55 -04:00
2016-10-27 09:53:55 -04:00
2017-02-13 11:33:15 -05:00
2016-10-27 09:53:55 -04:00
2016-10-27 09:53:55 -04:00
2016-10-27 09:53:55 -04:00
2017-05-26 12:15:42 -04:00
2016-10-27 09:53:55 -04:00
2017-04-12 15:57:21 -06:00
2016-10-27 09:53:55 -04:00
2017-04-12 15:57:21 -06:00
2017-04-12 15:57:21 -06:00
2016-10-27 09:53:55 -04:00
2017-04-12 15:57:21 -06:00
2017-04-12 15:57:21 -06:00
2017-04-12 15:57:21 -06:00
2017-04-14 16:55:03 -05:00
2016-10-27 09:53:55 -04:00
2016-10-27 09:53:55 -04:00
2017-03-29 06:57:49 -05:00
2016-09-25 13:40:23 -05:00