Yes, the ../sniper_output/wool/stress/ directory exists.
(gdb) bt
#0 0x00007fad5226ea75 in raise () from /lib/libc.so.6
#1 0x00007fad522725c0 in abort () from /lib/libc.so.6
#2 0x00007fad52b248c5 in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/libstdc++.so.6
#3 0x00007fad52b22cf6 in ?? () from /usr/lib/libstdc++.so.6
#4 0x00007fad52b22d23 in std::terminate() () from /usr/lib/libstdc++.so.6
#5 0x00007fad52b22e1e in __cxa_throw () from /usr/lib/libstdc++.so.6
#6 0x00007fad52abe987 in std::__throw_logic_error(char const*) () from /usr/lib/libstdc++.so.6
#7 0x00007fad51e2d019 in __gnu_cxx::__sso_string_base<char, std::char_traits<char>, std::allocator<char> >::_M_construct<char const*> (this=0x7fad4fe56000, __beg=0x0, __end=0x6 <Address 0x6 out of bounds>)
at /usr/include/c++/4.4/ext/sso_string_base.h:432
#8 0x00007fad51ed2e85 in _M_construct_aux<char const*> () at /usr/include/c++/4.4/ext/sso_string_base.h:101
#9 _M_construct<char const*> () at /usr/include/c++/4.4/ext/sso_string_base.h:116
#10 __sso_string_base<char const*> () at /usr/include/c++/4.4/ext/sso_string_base.h:374
#11 __versa_string () at /usr/include/c++/4.4/ext/vstring.h:216
#12 HooksPy::setup () at /home/alexandru/sniper/common/scripting/hooks_py.cc:37
#13 0x00007fad51ed3205 in HooksPy::init () at /home/alexandru/sniper/common/scripting/hooks_py.cc:16
#14 0x00007fad51ed1ac9 in HooksManager::init (this=0x6477)
at /home/alexandru/sniper/common/system/hooks_manager_init.cc:46
#15 0x00007fad51e6836c in Simulator::start (this=0x7fad3f64e2e0)
at /home/alexandru/sniper/common/system/simulator.cc:100
#16 0x00007fad51bfb5fa in main (argc=<value optimized out>, argv=<value optimized out>)
at /home/alexandru/sniper/pin/../pin/pin_sim.cc:425
#17 0x00000000307c3940 in LEVEL_INJECTOR::UNIX_INJECTEE::StartTool() ()
#18 0x00000000307c67ee in LEVEL_INJECTOR::UNIX_INJECTEE::RunMainThreadOnPinStack(LEVEL_INJECTOR::UNIX_INJECTEE*) ()
#19 0x000000003053d4bc in CallOnStack ()
#20 0x00000000307c7c66 in void LEVEL_INJECTOR::SwitchToPinStack<void (*)(LEVEL_INJECTOR::UNIX_INJECTEE*), LEVEL_INJECTOR::UNIX_INJECTEE*>(void (*)(LEVEL_INJECTOR::UNIX_INJECTEE*), LEVEL_INJECTOR::UNIX_INJECTEE*) ()
#21 0x00000000307c5dfc in LEVEL_INJECTOR::UNIX_INJECTEE::Run() ()
#22 0x00000000307c8366 in LEVEL_INJECTOR::PIN_UNIX_ENVIRONMENT::LaunchPin() ()
#23 0x00000000307b50ee in LEVEL_INJECTOR::PIN_ENVIRONMENT::Main() ()
#24 0x00000000307c21d1 in main ()
(gdb)
The reason the execution fails can be found in sniper/common/scripting/hooks_py.cc line 37: the GRAPHITE_ROOT variable is not set. If I do an "export GRAPHITE_ROOT=/path_to_sniper" the execution succeeds.
Because is rather inconvenient to run the export command every time I open a new terminal window, where do you think is the best place to define the GRAPHITE_ROOT variable?
Best regards,
Alexandru Iordan