[
https://issues.apache.org/jira/browse/TS-4952?focusedWorklogId=30431&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-30431
]
ASF GitHub Bot logged work on TS-4952:
--------------------------------------
Author: ASF GitHub Bot
Created on: 11/Oct/16 20:28
Start Date: 11/Oct/16 20:28
Worklog Time Spent: 10m
Work Description: Github user jpeach commented on the issue:
https://github.com/apache/trafficserver/pull/1091
FreeBSD fails with
```
FATAL: pthread_mutex_unlock(0x8057fcf90) failed: Operation not permitted (1)
```
The backtrace is:
```
(gdb) where
#0 0x0000000802f0035a in thr_kill () from /lib/libc.so.7
#1 0x0000000802f00346 in raise () from /lib/libc.so.7
#2 0x0000000802f00316 in abort () from /lib/libc.so.7
#3 0x0000000800bfbc8d in ink_abort (message_format=<value optimized out>)
at ../../../lib/ts/ink_error.cc:79
#4 0x00000000006f0502 in ~Thread (this=0x80717e000) at
../../../iocore/eventsystem/Thread.cc:52
#5 0x00000000004d738e in ~INKThreadInternal (this=0x80717e000) at
../../proxy/InkIOCoreAPI.cc:97
#6 0x00000000004d5b56 in ink_thread_trampoline (data=<value optimized out>)
at ../../proxy/InkIOCoreAPI.cc:112
#7 0x000000080253a855 in pthread_create () from /lib/libthr.so.3
#8 0x0000000000000000 in ?? ()
```
The unlock is failing with ``EPERM`` because we do't hold the lock at this
point.
Issue Time Tracking
-------------------
Worklog Id: (was: 30431)
Time Spent: 2h (was: 1h 50m)
> Improve mutex error checking.
> -----------------------------
>
> Key: TS-4952
> URL: https://issues.apache.org/jira/browse/TS-4952
> Project: Traffic Server
> Issue Type: Bug
> Components: Core
> Reporter: James Peach
> Time Spent: 2h
> Remaining Estimate: 0h
>
> If any {{ink_mutex}} operations fail, we just abort. Use {{ink_abort}} so
> that we can log an error if this happens.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)