Chef is crashing and throwing error like : *** Error in `chef-client worker: ppid=18136;start=19:44:22;': realloc(): invalid next size: 0x0000000003ca2290 ***

We are using chef 12.1.2 and chef is crashing with below error :

Starting Chef Client, version 12.1.2
*** Error in `chef-client worker: ppid=18136;start=19:44:22;’: realloc(): invalid next size: 0x0000000003ca2290 ***

Can anyone please help me for the resolution or input.

Chef 12.1 is the best part of 2 years old, and we’ve made a tonne of fixes. So I’d recommend that your first move should be to upgrade to 12.18, and see if that fixes the problem.
If you can’t do that, you’ll need to provide the details of the platform that you’re using, a full log of your chef run, and generally more details.