# Error of \*\*\*Break\*\*\*Segmentation violation

**URL:** <https://root-forum.cern.ch/t/error-of-break-segmentation-violation/49373>\
**Category:** Newbie\
**Created:** [March 27, 2022, 9:23pm UTC](https://root-forum.cern.ch/t/error-of-break-segmentation-violation/49373 "2022-03-27T21:23:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roy](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/roy/32/30362_2.png) [@Roy](https://root-forum.cern.ch/u/Roy)\
**Post date:** [March 27, 2022, 9:23pm UTC](https://root-forum.cern.ch/t/error-of-break-segmentation-violation/49373/1 "2022-03-27T21:23:49Z")

</div>

my code shows an error;  
Thanks for help.

```auto
***Break*** segmentation violation

[/usr/lib/system/libsystem_platform.dylib] _sigtramp (no debug info)

[<unknown binary>] (no debug info)

[<unknown binary>] (no debug info)

[<unknown binary>] (no debug info)

[/opt/homebrew/Cellar/root/6.24.06_2/lib/root/libCling.so] cling::IncrementalExecutor::executeWrapper(llvm::StringRef, cling::Value*) const (no debug info)

[/opt/homebrew/Cellar/root/6.24.06_2/lib/root/libCling.so] cling::Interpreter::RunFunction(clang::FunctionDecl const*, cling::Value*) (no debug info)

[/opt/homebrew/Cellar/root/6.24.06_2/lib/root/libCling.so] cling::Interpreter::EvaluateInternal(std:: __1::basic_string<char, std::__ 1::char_traits<char>, std::__1::allocator<char> > const&, cling::CompilationOptions, cling::Value*, cling::Transaction**, unsigned long) (no debug info)

[/opt/homebrew/Cellar/root/6.24.06_2/lib/root/libCling.so] cling::MetaSema::actOnxCommand(llvm::StringRef, llvm::StringRef, cling::Value*) (no debug info)

[/opt/homebrew/Cellar/root/6.24.06_2/lib/root/libCling.so] cling::MetaParser::isXCommand(cling::MetaSema::ActionResult&, cling::Value*) (no debug info)

[/opt/homebrew/Cellar/root/6.24.06_2/lib/root/libCling.so] cling::MetaParser::isCommand(cling::MetaSema::ActionResult&, cling::Value*) (no debug info)

[/opt/homebrew/Cellar/root/6.24.06_2/lib/root/libCling.so] cling::MetaProcessor::process(llvm::StringRef, cling::Interpreter::CompilationResult&, cling::Value*, bool) (no debug info)

[/opt/homebrew/Cellar/root/6.24.06_2/lib/root/libCling.so] HandleInterpreterException(cling::MetaProcessor*, char const*, cling::Interpreter::CompilationResult&, cling::Value*) (no debug info)

[/opt/homebrew/Cellar/root/6.24.06_2/lib/root/libCling.so] TCling::ProcessLine(char const*, TInterpreter::EErrorCode*) (no debug info)

[/opt/homebrew/Cellar/root/6.24.06_2/lib/root/libCling.so] TCling::ProcessLineSynch(char const*, TInterpreter::EErrorCode*) (no debug info)

[/opt/homebrew/Cellar/root/6.24.06_2/lib/root/libCore.so] TApplication::ExecuteFile(char const*, int*, bool) (no debug info)

[/opt/homebrew/Cellar/root/6.24.06_2/lib/root/libRint.so] TRint::ProcessLineNr(char const*, char const*, int*) (no debug info)

[/opt/homebrew/Cellar/root/6.24.06_2/lib/root/libRint.so] TRint::HandleTermInput() (no debug info)

[/opt/homebrew/Cellar/root/6.24.06_2/lib/root/libCore.so] TUnixSystem::CheckDescriptors() (no debug info)

[/opt/homebrew/Cellar/root/6.24.06_2/lib/root/libCore.so] TMacOSXSystem::DispatchOneEvent(bool) (no debug info)

[/opt/homebrew/Cellar/root/6.24.06_2/lib/root/libCore.so] TSystem::InnerLoop() (no debug info)

[/opt/homebrew/Cellar/root/6.24.06_2/lib/root/libCore.so] TSystem::Run() (no debug info)

[/opt/homebrew/Cellar/root/6.24.06_2/lib/root/libCore.so] TApplication::Run(bool) (no debug info)

[/opt/homebrew/Cellar/root/6.24.06_2/lib/root/libRint.so] TRint::Run(bool) (no debug info)

[/opt/homebrew/Cellar/root/6.24.06_2/bin/root.exe] main (no debug info)

[/usr/lib/dyld] start (no debug info)

```

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [March 28, 2022, 6:35am UTC](https://root-forum.cern.ch/t/error-of-break-segmentation-violation/49373/2 "2022-03-28T06:35:20Z")

</div>

Can you post a small piece of code reproducing this error ?

---

<div class="post-metadata">

**Author:** ![jalopezg](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/jalopezg/32/25844_2.png) [@jalopezg](https://root-forum.cern.ch/u/jalopezg)\
**Post date:** [March 28, 2022, 7:46am UTC](https://root-forum.cern.ch/t/error-of-break-segmentation-violation/49373/3 "2022-03-28T07:46:01Z")

</div>

Hi @Roy,

As I replied in the other topic, this might perfectly be related to your code performing an illegal memory access. As @couet said, could you please post a reproducer?

Cheers,  
J.
