Konstantin Belousov
787a64ddd2
Do not skip two elements of the tid_buffer when reusing the buffer
...
slot. This eventually results in exhaustion of the tid space, causing
new threads get tid -1 as identifier.
The bad effect of having the thread id equal to -1 is that
UMTX_OP_UMUTEX_WAIT returns EFAULT for a lock owned by such thread,
because casuword cannot distinguish between literal value -1 read from
the address and -1 returned as an indication of faulted
access. _thr_umutex_lock() helper from libthr does not check for
errors from _umtx_op_err(2), causing an infinite loop in
mutex_lock_sleep().
We observed the JVM processes hanging and consuming enormous amount of
system time on machines with approximately 100 days uptime.
Reported by: Mykola Dzham <freebsd levsha org ua>
MFC after: 1 week
2012-09-22 12:17:09 +00:00
..
2012-08-21 18:13:09 +00:00
2012-05-31 19:32:37 +00:00
2012-08-15 15:42:57 +00:00
2012-07-11 16:27:02 +00:00
2012-07-22 13:41:45 +00:00
2012-07-19 11:15:53 +00:00
2012-06-28 07:33:43 +00:00
2011-03-06 22:59:30 +00:00
2012-08-16 13:01:56 +00:00
2012-08-17 02:47:16 +00:00
2012-05-02 14:25:39 +00:00
2012-05-15 01:30:25 +00:00
2012-08-04 08:06:37 +00:00
2012-09-13 22:26:22 +00:00
2012-08-28 19:30:29 +00:00
2011-12-17 15:50:45 +00:00
2011-09-16 13:58:51 +00:00
2012-03-10 18:56:16 +00:00
2012-08-30 21:22:47 +00:00
2012-02-21 01:05:12 +00:00
2012-07-27 10:41:10 +00:00
2011-11-07 06:44:47 +00:00
2012-08-14 19:16:30 +00:00
2011-11-07 15:43:11 +00:00
2012-07-13 13:24:33 +00:00
2012-07-08 00:51:38 +00:00
2012-09-13 15:51:18 +00:00
2011-11-07 06:44:47 +00:00
2011-12-01 07:19:13 +00:00
2012-09-08 18:27:11 +00:00
2012-02-21 01:05:12 +00:00
2011-04-13 11:28:46 +00:00
2011-05-31 15:11:43 +00:00
2012-08-06 16:37:43 +00:00
2012-05-22 19:43:20 +00:00
2011-04-12 08:13:18 +00:00
2012-05-26 20:03:47 +00:00
2012-08-30 21:22:47 +00:00
2012-04-20 15:32:36 +00:00
2012-04-12 14:49:25 +00:00
2012-09-12 22:10:53 +00:00
2011-11-07 06:44:47 +00:00
2011-09-16 13:58:51 +00:00
2012-07-15 20:29:48 +00:00
2012-08-23 21:32:02 +00:00
2012-08-16 13:04:21 +00:00
2012-08-22 20:01:57 +00:00
2012-09-13 22:26:22 +00:00
2012-08-16 02:35:44 +00:00
2012-03-28 20:58:30 +00:00
2011-11-07 15:43:11 +00:00
2012-08-15 14:18:54 +00:00
2012-01-08 18:48:36 +00:00
2012-05-22 15:58:27 +00:00
2012-05-30 16:06:38 +00:00
2012-04-17 14:31:02 +00:00
2012-01-22 20:25:00 +00:00
2012-09-12 22:10:53 +00:00
2012-09-13 22:26:22 +00:00
2012-03-27 15:07:43 +00:00
2012-06-23 10:15:23 +00:00
2012-06-03 08:01:12 +00:00
2012-09-13 15:51:18 +00:00
2011-12-04 21:27:41 +00:00
2012-09-13 22:26:22 +00:00
2012-05-15 01:30:25 +00:00
2012-03-22 04:52:51 +00:00
2012-07-16 20:17:19 +00:00
2012-05-26 20:03:47 +00:00
2012-09-22 12:17:09 +00:00
2012-08-17 02:26:31 +00:00
2012-05-03 20:00:30 +00:00
2012-08-11 23:48:39 +00:00
2012-01-05 19:00:36 +00:00
2012-08-10 18:19:57 +00:00
2012-02-21 01:05:12 +00:00
2012-02-21 01:05:12 +00:00
2011-07-10 00:53:04 +00:00
2011-11-21 01:26:10 +00:00
2011-09-16 13:58:51 +00:00
2011-07-17 23:05:24 +00:00
2012-08-22 20:01:38 +00:00
2012-09-14 19:55:28 +00:00
2012-04-17 14:54:00 +00:00
2012-03-13 20:27:48 +00:00
2011-12-03 15:41:37 +00:00
2012-08-21 18:13:09 +00:00
2012-07-11 18:50:50 +00:00
2012-06-22 07:06:40 +00:00
2012-06-25 05:41:16 +00:00
2012-01-23 16:31:46 +00:00
2012-09-04 23:16:55 +00:00
2012-04-12 17:43:59 +00:00
2011-11-15 20:11:03 +00:00
2011-12-11 21:02:01 +00:00
2012-02-01 14:34:52 +00:00
2012-02-06 06:03:16 +00:00
2012-03-19 00:36:32 +00:00
2012-09-03 09:26:56 +00:00
2011-11-07 06:44:47 +00:00
2011-10-16 14:16:46 +00:00
2011-11-07 15:43:11 +00:00
2012-05-31 17:27:05 +00:00
2011-11-19 14:10:16 +00:00
2011-08-19 08:29:10 +00:00
2012-01-26 16:35:09 +00:00
2012-09-12 22:05:54 +00:00
2012-06-11 18:47:26 +00:00
2011-11-16 19:06:55 +00:00
2012-09-08 18:35:15 +00:00
2012-08-28 13:35:37 +00:00
2012-09-08 18:35:15 +00:00
2012-09-12 22:10:53 +00:00
2012-08-05 14:11:42 +00:00
2012-09-14 21:28:56 +00:00
2012-08-29 16:56:50 +00:00
2012-06-10 20:22:10 +00:00
2012-06-17 13:03:50 +00:00
2012-07-31 05:48:35 +00:00
2012-09-01 11:21:56 +00:00
2012-08-08 00:20:30 +00:00
2011-08-16 20:07:47 +00:00
2012-08-17 02:47:16 +00:00
2012-08-17 02:26:31 +00:00
2012-08-17 02:26:31 +00:00
2011-09-16 13:58:51 +00:00
2011-09-16 13:58:51 +00:00
2012-02-19 00:28:49 +00:00
2012-02-06 18:15:46 +00:00
2012-01-02 12:12:10 +00:00
2011-06-26 18:26:20 +00:00
2011-09-16 13:58:51 +00:00
2012-02-21 01:05:12 +00:00
2012-06-18 07:34:38 +00:00
2012-02-23 17:47:19 +00:00
2012-02-21 01:05:12 +00:00
2012-04-23 14:10:34 +00:00
2011-09-16 13:58:51 +00:00
2012-04-01 18:22:48 +00:00
2011-12-13 00:38:50 +00:00
2012-09-02 07:33:52 +00:00
2012-08-05 14:11:42 +00:00
2012-09-07 21:06:54 +00:00
2011-09-16 13:58:51 +00:00
2012-02-05 04:49:31 +00:00
2012-06-02 19:39:12 +00:00
2012-03-03 01:06:54 +00:00
2012-08-15 22:12:01 +00:00
2012-06-09 22:26:53 +00:00
2012-02-21 01:05:12 +00:00
2011-09-13 21:01:26 +00:00
2012-09-09 19:11:52 +00:00
2012-09-09 19:17:15 +00:00
2012-02-21 01:05:12 +00:00
2012-09-13 22:26:22 +00:00
2012-07-31 18:25:00 +00:00
2012-07-31 18:25:00 +00:00
2012-02-29 21:38:31 +00:00