Crash Report in RooFIt

Dear experts,
While calculating significance and 90% C.L upper limit I plot profile NLL curve.

While calculating the profile NLL curve , I successfully run my code sometimes. I get a good Nll curve. But sometimes I find that ROOT crashes.

Actually for my problem , I obtain a negative signal yield (-37 signal, 882 background).
By running my code on other examples, I find that I cannot plot the profile likelihood curve from large negative nsig even if my signal yield coming from fit is large negative. I se that it is stable if I plot from from 0 or small -ve values.

I create profile likelihood as:

RooAbsReal * nll = fit_pdf.createNLL(*data,Minimizer(“Minuit2”),NumCPU(4));
RooPlot *frame1 = nsig.frame(Bins(20),Range(0,100));
RooAbsReal *nsig_scan = nll->createProfile(nsig);

I plot in the range 0 -100. I don’t plot -ve signal regions. If I plot from -37, I get error messages always.

My problem is that while sometimes can easily plot from 0-100 and calculate the 90% C.L upper limit by fitting the NLL curve and then converting in plain likelihood and calculating 90% area above zero, sometimes I see that ROOT crashes.

I am sending the crash message. Please advice what may be the problem.
Please note that sometimes for the same problem the code works.

I use ROOT v5.24 and I use Minuit2 for my problem.

=======================CRASH REPORT===========================

RooRealMPFE::initialize(nll_fit_pdf_data_8b83788_MPFE0) server process terminating
RooRealMPFE::initialize(nll_fit_pdf_data_8b83788_MPFE1) server process terminating
RooRealMPFE::initialize(nll_fit_pdf_data_8b83788_MPFE2) server process terminating

*** Break *** segmentation violation
(no debugging symbols found)
Using host libthread_db library “/lib64/libthread_db.so.1”.
Attaching to program: /proc/10433/exe, process 10433
warning: Missing the separate debug info file: /usr/lib/debug/.build-id/db/a292aff9720bfc3f25c53fa8e469168460a894.debug
(no debugging symbols found)…done.
warning: Missing the separate debug info file: /usr/lib/debug/.build-id/88/27308433e33aeefb560f42fb133577c8936f20.debug
(no debugging symbols found)…done.
warning: Missing the separate debug info file: /usr/lib/debug/.build-id/92/8ab51a53627c59877a85dd9afecc1619ca866c.debug

(no debugging symbols found)…done.
warning: Missing the separate debug info file: /usr/lib/debug/.build-id/db/8cb95645d5df469d4aece301cdb5e60087be21.debug
(no debugging symbols found)…done.
warning: Missing the separate debug info file: /usr/lib/debug/.build-id/6c/1cdbb38ae2a292613c8c31195417ee80ea7e1e.debug
(no debugging symbols found)…done.
[Thread debugging using libthread_db enabled]
[New Thread 4144572112 (LWP 10433)]
warning: Missing the separate debug info file: /usr/lib/debug/.build-id/ba/4ea1118691c826426e9410cafb798f25cefad5.debug
(no debugging symbols found)…done.
warning: Missing the separate debug info file: /usr/lib/debug/.build-id/0a/a42d2fe3ae9510365428e8a0818d7c76401f74.debug
(no debugging symbols found)…done.
warning: Missing the separate debug info file: /usr/lib/debug/.build-id/ac/2eeb206486bb7315d6ac4cd64de0cb50838ff6.debug
(no debugging symbols found)…done.
warning: Missing the separate debug info file: /usr/lib/debug/.build-id/a7/eabb854181ef5ff0c22b78c3e5048c64a2ebb8.debug

(no debugging symbols found)…done.
warning: Missing the separate debug info file: /usr/lib/debug/.build-id/05/21ec3b01f5c03599572e0d2598fdc0da7e21cb.debug
(no debugging symbols found)…done.
warning: Missing the separate debug info file: /usr/lib/debug/.build-id/d0/b716d925c00494a40cff204a21530d0b96df8b.debug
(no debugging symbols found)…done.
(no debugging symbols found)…done.
(no debugging symbols found)…done.
warning: Missing the separate debug info file: /usr/lib/debug/.build-id/59/42b85e278a5f1d16952fec8e1f6b3d67f2de4d.debug
(no debugging symbols found)…done.
warning: Missing the separate debug info file: /usr/lib/debug/.build-id/90/ebf9c172c9332feed316b7c0fdff30ce1a15ae.debug
(no debugging symbols found)…done.
warning: Missing the separate debug info file: /usr/lib/debug/.build-id/03/5807c541381466da2f8457545e62c87066fd4f.debug

(no debugging symbols found)…done.
warning: Missing the separate debug info file: /usr/lib/debug/.build-id/ae/c58e5f33ca51070e02528d034b00b07a890d11.debug
(no debugging symbols found)…done.
warning: Missing the separate debug info file: /usr/lib/debug/.build-id/0d/605d38e5e2d23fb14837dd95144b2d330b946c.debug
(no debugging symbols found)…done.
warning: Missing the separate debug info file: /usr/lib/debug/.build-id/7c/f32ecc91202c1747b80e3356a6828ae7ee97e7.debug
(no debugging symbols found)…done.
warning: Missing the separate debug info file: /usr/lib/debug/.build-id/13/e7ce3022231431f7402aed8afd467f81d091f0.debug
(no debugging symbols found)…done.
warning: Missing the separate debug info file: /usr/lib/debug/.build-id/67/3280e6ddac3f38973adf7b10eb773b75c69378.debug
(no debugging symbols found)…done.
warning: Missing the separate debug info file: /usr/lib/debug/.build-id/72/500956ada6207c76c29ff8d2c555df67b7efb6.debug

(no debugging symbols found)…done.
warning: Missing the separate debug info file: /usr/lib/debug/.build-id/15/731d3b56abb1be2a6715ef4c7ae84a5c77564c.debug
(no debugging symbols found)…done.
warning: Missing the separate debug info file: /usr/lib/debug/.build-id/87/d66bafb3c5d1af9e5a91a447ef5efcc0a3ec3c.debug
(no debugging symbols found)…done.
warning: Missing the separate debug info file: /usr/lib/debug/.build-id/90/66503e17dcb7232b114c5878674a5932e35885.debug
(no debugging symbols found)…done.
warning: Missing the separate debug info file: /usr/lib/debug/.build-id/b8/15f4dcecb6010580bb2ebf9ad8412132353b71.debug

(no debugging symbols found)…done.
warning: Missing the separate debug info file: /usr/lib/debug/.build-id/41/b572ad1b8e3fac8fb0dadf6bcc2b61ef6e08a9.debug
(no debugging symbols found)…done.
warning: Missing the separate debug info file: /usr/lib/debug/.build-id/59/90d96516d0966b3e75c018e6129eee43965a6a.debug
(no debugging symbols found)…done.
warning: Missing the separate debug info file: /usr/lib/debug/.build-id/7b/ca58225dfd79f80915f63c78c2188ead8cd217.debug
(no debugging symbols found)…done.
(no debugging symbols found)…done.
warning: Missing the separate debug info file: /usr/lib/debug/.build-id/fc/0d33f69c4755d187f2c28e3bf118be4ad378f3.debug
(no debugging symbols found)…done.
warning: Missing the separate debug info file: /usr/lib/debug/.build-id/07/b722c2a7fed5b96cf4b40ce0f2a06eb0f8d2fc.debug
(no debugging symbols found)…done.
warning: Missing the separate debug info file: /usr/lib/debug/.build-id/4e/ec7febbe425329b678df438a3bb8c8d8b171b4.debug
(no debugging symbols found)…done.
warning: Missing the separate debug info file: /usr/lib/debug/.build-id/d5/d83f2af48a79db25feb92dc3ded66f9b0abd1a.debug
(no debugging symbols found)…done.

(no debugging symbols found)
0xffffe410 in __kernel_vsyscall ()
#1 0x0048d953 in __waitpid_nocancel () from /lib/libc.so.6
#2 0x00431bab in do_system () from /lib/libc.so.6
#3 0x005958dd in system () from /lib/libpthread.so.0
#4 0xf7b624bb in TUnixSystem::Exec () from /home/users/rs/d.dutta/root/lib/libCore.so
#5 0xf7b68153 in TUnixSystem::StackTrace () from /home/users/rs/d.dutta/root/lib/libCore.so
#6 0xf7b64b4e in TUnixSystem::DispatchSignals () from /home/users/rs/d.dutta/root/lib/libCore.so
#7 0xf7b64bdc in SigHandler () from /home/users/rs/d.dutta/root/lib/libCore.so
#8 0xf7b63e59 in sighandler () from /home/users/rs/d.dutta/root/lib/libCore.so
#9
#10 0xf5fe3bd3 in RooPlot::~RooPlot$delete () from /home/users/rs/d.dutta/root/lib/libRooFitCore.so
#11 0xf7b0edc4 in TCollection::GarbageCollect () from /home/users/rs/d.dutta/root/lib/libCore.so
#12 0xf7b13209 in TList::Delete () from /home/users/rs/d.dutta/root/lib/libCore.so
#13 0xf7b10e30 in THashList::Delete () from /home/users/rs/d.dutta/root/lib/libCore.so
#14 0xf69aeeb7 in TDirectoryFile::Close () from /home/users/rs/d.dutta/root/lib/libRIO.so
#15 0xf69bd4a9 in TFile::Close () from /home/users/rs/d.dutta/root/lib/libRIO.so
#16 0xf69bd8dc in TFile::~TFile$delete () from /home/users/rs/d.dutta/root/lib/libRIO.so
#17 0xf7b0edc4 in TCollection::GarbageCollect () from /home/users/rs/d.dutta/root/lib/libCore.so
#18 0xf7b13219 in TList::Delete () from /home/users/rs/d.dutta/root/lib/libCore.so
#19 0xf7ac6b12 in TROOT::~TROOT () from /home/users/rs/d.dutta/root/lib/libCore.so
#20 0xf7ac6e33 in __tcf_0 () from /home/users/rs/d.dutta/root/lib/libCore.so
#21 0x00427907 in __cxa_finalize () from /lib/libc.so.6
#22 0xf7a7f992 in __do_global_dtors_aux () from /home/users/rs/d.dutta/root/lib/libCore.so
#23 0xf7e2921e in _fini () from /home/users/rs/d.dutta/root/lib/libCore.so
#24 0x003eab22 in _dl_fini () from /lib/ld-linux.so.2
#25 0x0042763e in exit () from /lib/libc.so.6
#26 0xf600609e in RooRealMPFE::initialize () from /home/users/rs/d.dutta/root/lib/libRooFitCore.so
#27 0xf5f000be in RooAbsTestStatistic::initMPMode () from /home/users/rs/d.dutta/root/lib/libRooFitCore.so
#28 0xf5f001c1 in RooAbsTestStatistic::initialize () from /home/users/rs/d.dutta/root/lib/libRooFitCore.so
#29 0xf5f00419 in RooAbsTestStatistic::evaluate () from /home/users/rs/d.dutta/root/lib/libRooFitCore.so
#30 0xf5ef6092 in RooAbsReal::traceEval () from /home/users/rs/d.dutta/root/lib/libRooFitCore.so
#31 0xf5ef6312 in RooAbsReal::getVal () from /home/users/rs/d.dutta/root/lib/libRooFitCore.so
#32 0xf5fbeff6 in RooMinuitGlue () from /home/users/rs/d.dutta/root/lib/libRooFitCore.so
#33 0xf677e4a5 in TMinuit::Eval () from /home/users/rs/d.dutta/root/lib/libMinuit.so
#34 0xf677e86b in TMinuit::mnamin () from /home/users/rs/d.dutta/root/lib/libMinuit.so
#35 0xf678bb33 in TMinuit::mnmigr () from /home/users/rs/d.dutta/root/lib/libMinuit.so
#36 0xf678576c in TMinuit::mnexcm () from /home/users/rs/d.dutta/root/lib/libMinuit.so
#37 0xf675fd38 in TFitter::ExecuteCommand () from /home/users/rs/d.dutta/root/lib/libMinuit.so
#38 0xf5fbee4b in RooMinuit::migrad () from /home/users/rs/d.dutta/root/lib/libRooFitCore.so
#39 0xf5ff4336 in RooProfileLL::validateAbsMin () from /home/users/rs/d.dutta/root/lib/libRooFitCore.so
#40 0xf5ff4e40 in RooProfileLL::evaluate () from /home/users/rs/d.dutta/root/lib/libRooFitCore.so
#41 0xf5ef6092 in RooAbsReal::traceEval () from /home/users/rs/d.dutta/root/lib/libRooFitCore.so
#42 0xf5ef6312 in RooAbsReal::getVal () from /home/users/rs/d.dutta/root/lib/libRooFitCore.so
#43 0xf6001332 in RooRealIntegral::RooRealIntegral () from /home/users/rs/d.dutta/root/lib/libRooFitCore.so
#44 0xf5ee9d38 in RooAbsReal::createPlotProjection () from /home/users/rs/d.dutta/root/lib/libRooFitCore.so
#45 0xf5ef1f6c in RooAbsReal::plotOn () from /home/users/rs/d.dutta/root/lib/libRooFitCore.so
#46 0xf5ef9500 in RooAbsReal::plotOn () from /home/users/rs/d.dutta/root/lib/libRooFitCore.so
#47 0xf5ee7397 in RooAbsReal::plotOn () from /home/users/rs/d.dutta/root/lib/libRooFitCore.so
#48 0xf608fcd4 in G__G__RooFitCore1_175_0_55 () from /home/users/rs/d.dutta/root/lib/libRooFitCore.so
#49 0xf72c8d43 in Cint::G__ExceptionWrapper () from /home/users/rs/d.dutta/root/lib/libCint.so
#50 0xf735dbdc in G__execute_call () from /home/users/rs/d.dutta/root/lib/libCint.so
#51 0xf735deee in G__call_cppfunc () from /home/users/rs/d.dutta/root/lib/libCint.so
#52 0xf733ebb7 in G__interpret_func () from /home/users/rs/d.dutta/root/lib/libCint.so
#53 0xf732d4ec in G__getfunction () from /home/users/rs/d.dutta/root/lib/libCint.so
#54 0xf741185d in G__getstructmem () from /home/users/rs/d.dutta/root/lib/libCint.so
#55 0xf7409353 in G__getvariable () from /home/users/rs/d.dutta/root/lib/libCint.so
#56 0xf73114da in G__getitem () from /home/users/rs/d.dutta/root/lib/libCint.so
#57 0xf731446f in G__getexpr () from /home/users/rs/d.dutta/root/lib/libCint.so
#58 0xf738d5d4 in G__exec_statement () from /home/users/rs/d.dutta/root/lib/libCint.so
#59 0xf734069f in G__interpret_func () from /home/users/rs/d.dutta/root/lib/libCint.so
#60 0xf732d32e in G__getfunction () from /home/users/rs/d.dutta/root/lib/libCint.so
#61 0xf7311824 in G__getitem () from /home/users/rs/d.dutta/root/lib/libCint.so
#62 0xf731446f in G__getexpr () from /home/users/rs/d.dutta/root/lib/libCint.so
#63 0xf731d784 in G__calc_internal () from /home/users/rs/d.dutta/root/lib/libCint.so
#64 0xf739bbc3 in G__process_cmd () from /home/users/rs/d.dutta/root/lib/libCint.so
#65 0xf7b504b7 in TCint::ProcessLine () from /home/users/rs/d.dutta/root/lib/libCore.so
#66 0xf7b50638 in TCint::ProcessLineSynch () from /home/users/rs/d.dutta/root/lib/libCore.so
#67 0xf7a85cdf in TApplication::ExecuteFile () from /home/users/rs/d.dutta/root/lib/libCore.so
#68 0xf7a8606f in TApplication::ProcessFile () from /home/users/rs/d.dutta/root/lib/libCore.so
#69 0xf7a83ed7 in TApplication::ProcessLine () from /home/users/rs/d.dutta/root/lib/libCore.so
#70 0xf70cd6df in TRint::HandleTermInput () from /home/users/rs/d.dutta/root/lib/libRint.so
#71 0xf70cbbb0 in TTermInputHandler::Notify () from /home/users/rs/d.dutta/root/lib/libRint.so
#72 0xf70cdffe in TTermInputHandler::ReadNotify () from /home/users/rs/d.dutta/root/lib/libRint.so
#73 0xf7b60e46 in TUnixSystem::CheckDescriptors () from /home/users/rs/d.dutta/root/lib/libCore.so
#74 0xf7b6502c in TUnixSystem::DispatchOneEvent () from /home/users/rs/d.dutta/root/lib/libCore.so
#75 0xf7ae07c4 in TSystem::InnerLoop () from /home/users/rs/d.dutta/root/lib/libCore.so
#76 0xf7ae058b in TSystem::Run () from /home/users/rs/d.dutta/root/lib/libCore.so
#77 0xf7a84166 in TApplication::Run () from /home/users/rs/d.dutta/root/lib/libCore.so
#78 0xf70cc496 in TRint::Run () from /home/users/rs/d.dutta/root/lib/libRint.so
#79 0x08048d46 in main ()
The program is running. Quit anyway (and detach it)? (y or n) [answered Y; input not from terminal]
Detaching from program: /proc/10433/exe, process 10433
Root > Function fit_syst() busy flag cleared
Error in TUnixSystem::DynamicPathName: libMathCore.so does not exist in 0�s�
Error in TCint::AutoLoad: failure loading dependent library libMathCore.so for class TGCompositeFrame
Error in TUnixSystem::DynamicPathName: libMathCore.so does not exist in 0�s�
Error in TCint::AutoLoad: failure loading dependent library libMathCore.so for class TGFrame
Error in TUnixSystem::DynamicPathName: libMathCore.so does not exist in 0�s�
Error in TCint::AutoLoad: failure loading dependent library libMathCore.so for class TGHorizontalFrame
Error in TUnixSystem::DynamicPathName: libMathCore.so does not exist in 0�s�
Error in TCint::AutoLoad: failure loading dependent library libMathCore.so for class TGFrame

With regards,
DD