Problem with TLimit function!

Dear forum member and ROOT users.

I start working on some Confidence level searching using [size=150]TLimit[/size] function.
TLimit function works in my case well before.
But when I try implement systematic - I always get [color=#00BF00]break[/color].

There is attached program and plots(.root) which I use in my analysis.
It’s prepared to run on any PC.

In my program I searching k parameter when expected CL will 90%.

Break happened in line 158 when is calculated [color=#FF0080]TLimit::ComputeLimit[/color], as usual for second or later mass, but it can be for first one too!

Errors looks like:

*** glibc detected *** root.exe: corrupted double-linked list: 0x00000000045fce20 ***
======= Backtrace: =========

I spend one week to fix this and no results.:exclamation: :exclamation: :exclamation: :exclamation:
I will be appreciate for help.

P.S. I hope my code are readable
CLc_level_searching.C (3.67 KB)
Axial-vector_Pe0.0_Pp0.0_Lumi500.root (42 KB)