Please help! *** Break *** segmentation violation


ROOT Version: 6.15/01
Platform: Ubuntu 18.04.1


Hi,
I’m going to preface this with saying that I am new to root and pretty clueless!
Anyways, I was trying to run a histogram plotting program and got a break segmentation violation.
I just recently switched over to root 6.15 from an earlier version, and I have been updating my program code to try to make it work with this newer version, and this crash occurred in the middle of all that.

The part of my program that seems to be causing this is when I actually try to draw my histograms. They lines of my code where this occurs just read

histogramname->Draw();

so i am really confused as to why that specifically is causing the problem.

This is the error I received:

 *** Break *** segmentation violation



===========================================================
There was a crash.
This is the entire stack trace of all threads:
===========================================================
#0  0x00007f508f3c3687 in __GI___waitpid (pid=9510, stat_loc=stat_loc
entry=0x7ffd5de6a368, options=options
entry=0) at ../sysdeps/unix/sysv/linux/waitpid.c:30
#1  0x00007f508f32e067 in do_system (line=<optimized out>) at ../sysdeps/posix/system.c:149
#2  0x00007f508ffd75f3 in TUnixSystem::Exec (shellcmd=<optimized out>, this=0x55beae7bd7c0) at /home/katherine/root/core/unix/src/TUnixSystem.cxx:2119
#3  TUnixSystem::StackTrace (this=0x55beae7bd7c0) at /home/katherine/root/core/unix/src/TUnixSystem.cxx:2413
#4  0x00007f508ffd9fe4 in TUnixSystem::DispatchSignals (this=0x55beae7bd7c0, sig=kSigSegmentationViolation) at /home/katherine/root/core/unix/src/TUnixSystem.cxx:3644
#5  <signal handler called>
#6  0x00007f50907b42e3 in ?? ()
#7  0x000055beae88e160 in ?? ()
#8  0x00007ffd5de6cf20 in ?? ()
#9  0x00007ffd5de6cea0 in ?? ()
#10 0x00007ffd5de6cd58 in ?? ()
#11 0x000055beae858150 in ?? ()
#12 0x000055beaf57050a in ?? ()
#13 0x000055beaf564ec0 in ?? ()
#14 0x00007ffd5de6cd50 in ?? ()
#15 0x00007ffd5de6cd4f in ?? ()
#16 0x000055beaf242610 in ?? ()
#17 0x000055beae88e370 in ?? ()
#18 0x000055beaf2ed0d0 in ?? ()
#19 0x000055beae7f82f0 in ?? ()
#20 0x000055beae7fc2f0 in ?? ()
#21 0x7641ca25e94c9a4f in ?? ()
#22 0x000055beae858150 in ?? ()
#23 0x0000000000000000 in ?? ()
===========================================================


The lines below might hint at the cause of the crash.
You may get help by asking at the ROOT forum http://root.cern.ch/forum
Only if you are really convinced it is a bug in ROOT then please submit a
report at http://root.cern.ch/bugs Please post the ENTIRE stack trace
from above as an attachment in addition to anything else
that might help us fixing this issue.
===========================================================
#6  0x00007f50907b42e3 in ?? ()
#7  0x000055beae88e160 in ?? ()
#8  0x00007ffd5de6cf20 in ?? ()
#9  0x00007ffd5de6cea0 in ?? ()
#10 0x00007ffd5de6cd58 in ?? ()
#11 0x000055beae858150 in ?? ()
#12 0x000055beaf57050a in ?? ()
#13 0x000055beaf564ec0 in ?? ()
#14 0x00007ffd5de6cd50 in ?? ()
#15 0x00007ffd5de6cd4f in ?? ()
#16 0x000055beaf242610 in ?? ()
#17 0x000055beae88e370 in ?? ()
#18 0x000055beaf2ed0d0 in ?? ()
#19 0x000055beae7f82f0 in ?? ()
#20 0x000055beae7fc2f0 in ?? ()
#21 0x7641ca25e94c9a4f in ?? ()
#22 0x000055beae858150 in ?? ()
#23 0x0000000000000000 in ?? ()
===========================================================

Any help would be greatly appreciated!
Thank you :slight_smile:

Hi,

it is not possible to understand what went wrong from this information. Could you share a reproducer?

Cheers,
D

Try:

if (histogramname) histogramname->Draw();
else std::cout << "The histogramname pointer is NULL." << std::endl;

BTW. When you post “source code” or “output” here, do remember to enclose them into two lines which contain just three characters ``` (see how your post has been edited above).

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.