Monitoring Splunk

What would cause a Fatal thread error in thread typing found in the Splunk crash log?

j4adam
Communicator

Hello everyone,

Over a ~26 hour period I am seeing several fatal errors regarding the typing thread. I've done some research and there is very little information about threads to be found online in regards to how splunk uses them. I am making the assumption that the typing thread is the thread in charge of the typing queue.

The actual error is found in the splunk crash log:

Fatal thread error: pthread_mutex_lock: Invalid argument: 78 threads active in typing

(followed by several more with varying number of active threads, all less than 78)

Dying on fatal thread error 22 from pthread_mutex_lock, thread typing

As far as I remember, mutex are usedto control the availability of threads on a system to prevent race conditions in multithreading. This leads me to believe that perhaps the system is running out of threads when trying to use the typing queue. If this is true, a few things confuse me:

  1. If this is running out of threads, why would the active thread count fluctuate on the fatal attempt?
  2. If this is the case, why would splunk not have a graceful way of handling this?

These questions I have with my conclusion lead me to believe there is something I'm missing. (My knowledge of mutex is from years ago, so I could very well be wrong).

Any insight would be great. The issue hasn't resurfaced in ~20 days and has only happened once, but knowing the cause would help prevent it in the future.

Thank you.

Ciccio
Observer

Anyone has solved the problem? Splunk case has a solution? I am talking about " FATAL Thread - Fatal thread error: pthread_mutex_lock: Invalid argument; 66 threads active, in typing" Form me the reboot wasn't a solution. thank You.

0 Karma

hrawat
Splunk Employee
Splunk Employee

See if this link helps .

0 Karma

cygnetix
Path Finder

I was able to resolve this problem by rebooting the server.

laurent_
Explorer

We have the same problem. I will open a support ticket with Splunk.

FATAL Thread - Fatal thread error: pthread_mutex_lock: Invalid argument; 49 threads active, in typing

tmeader
Contributor

We have an active case open on this same issue. Please reference case #377552 when you open your ticket. I'd love the help on getting some action on this, as we're seeing it fairly regularly.

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...