Problem with output on OS10.8 from compiled code

Hello,
I’m relatively experience with ROOT but extremely new to running ROOT on a MAC, < 2 weeks. I’m attempting to port several of my compiled analysis codes from Ubuntu to my new MAC and am running in to the attached error during execution. This only occurs if I attempt to output anything from the code via: Print(), Draw(), or Write(). The same code, with minor modification to the main() function will work from the ROOT command line. Most of what I’ve found online about this problem refers to the sudo command and doesn’t help much with this specific problem. Any advice or ideas for resolving this issue would be greatly appreciated.
Thanks

*** Break *** segmentation violation Generating stack trace... dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/atos) has __RESTRICT/__restrict section 0x000000010ed41fed in TMethodCall::InitImplementation(char const*, char const*, char const*, TClass*, void const*) (in libCore.so) + 77 dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/atos) has __RESTRICT/__restrict section 0x000000010ed4225f in TMethodCall::InitWithPrototype(TClass*, char const*, char const*) (in libCore.so) + 111 dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/atos) has __RESTRICT/__restrict section 0x000000010ecadad6 in TPluginHandler::SetupCallEnv() (in libCore.so) + 598 dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/atos) has __RESTRICT/__restrict section 0x000000010ecade63 in TPluginHandler::ExecPlugin(int, ...) (in libCore.so) + 179 dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/atos) has __RESTRICT/__restrict section 0x000000010ec7e99e in TApplication::LoadGraphicsLibs() (in libCore.so) + 622 dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/atos) has __RESTRICT/__restrict section 0x000000010ec7d443 in TApplication::InitializeGraphics() (in libCore.so) + 67 dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/atos) has __RESTRICT/__restrict section 0x000000010ec7d235 in TApplication::TApplication(char const*, int*, char**, void*, int) (in libCore.so) + 853 dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/atos) has __RESTRICT/__restrict section 0x000000010e39eaaa in main (in converttally) (convert_tallies.cc:31) dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/atos) has __RESTRICT/__restrict section 0x00007fff98b087e1 in start (in libdyld.dylib) + 0

Hi,

I think the DYLD_ error messages are a read herring - they are errors triggered by the backtrace printing tool we use (interesting errors, though - I have never seen them before!)

The real question is what is causing the crash that happens before. Running with gdb and doing “bt” when it crashes should help.

Cheers, Axel.