差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
次のリビジョン
前のリビジョン
softwares:root:errors [2018/09/05 16:56] kobayashsoftwares:root:errors [2018/09/26 22:14] (現在) kobayash
行 19: 行 19:
  
  *** Break *** segmentation violation  *** Break *** segmentation violation
- 
- 
  
 =========================================================== ===========================================================
行 34: 行 32:
 #4  <signal handler called> #4  <signal handler called>
 #5  0x00007f2a4d32588d in G__destroy_upto () from /home/kobayash/cern/root_v5.34.36/lib/root/libCint.so #5  0x00007f2a4d32588d in G__destroy_upto () from /home/kobayash/cern/root_v5.34.36/lib/root/libCint.so
-#6  0x00007f2a4d32642c in G__scratch_globals_upto () from /home/kobayash/cern/root_v5.34.36/lib/root/libCint.so +...
-#7  0x00007f2a4e90b450 in TCint::ResetGlobals() () from /home/kobayash/cern/root_v5.34.36/lib/root/libCore.so +
-#8  0x00007f2a4e88f741 in TROOT::EndOfProcessCleanups(bool) () from /home/kobayash/cern/root_v5.34.36/lib/root/libCore.so +
-#9  0x00007f2a4e942720 in TUnixSystem::Exit(int, bool) () from /home/kobayash/cern/root_v5.34.36/lib/root/libCore.so +
-#10 0x00007f2a29c75932 in G__histbrowser_C_ACLiC_dict_3035_0_2(G__value*, char const*, G__param*, int) () from /home/kobayash/ana/koba/GRUTinizer/./kobamac/root/histbrowser_C.so +
-#11 0x00007f2a4d3846fb in Cint::G__CallFunc::Execute(void*) () from /home/kobayash/cern/root_v5.34.36/lib/root/libCint.so +
-#12 0x00007f2a4e90d04c in TCint::CallFunc_Exec(void*, void*) const () from /home/kobayash/cern/root_v5.34.36/lib/root/libCore.so +
-#13 0x00007f2a4e8895c4 in TQConnection::ExecuteMethod() () from /home/kobayash/cern/root_v5.34.36/lib/root/libCore.so +
-#14 0x00007f2a4e8e192f in TQObject::Emit(char const*) () from /home/kobayash/cern/root_v5.34.36/lib/root/libCore.so +
-#15 0x00007f2a3fc67498 in TGMainFrame::HandleClientMessage(Event_t*) () from /home/kobayash/cern/root_v5.34.36/lib/root/libGui.so +
-#16 0x00007f2a3fc75060 in TGFrame::HandleEvent(Event_t*) () from /home/kobayash/cern/root_v5.34.36/lib/root/libGui.so +
-#17 0x00007f2a3fccba78 in TGClient::HandleEvent(Event_t*) () from /home/kobayash/cern/root_v5.34.36/lib/root/libGui.so +
-#18 0x00007f2a3fccbd2d in TGClient::ProcessOneEvent() () from /home/kobayash/cern/root_v5.34.36/lib/root/libGui.so +
-#19 0x00007f2a3fccbd8d in TGClient::HandleInput() () from /home/kobayash/cern/root_v5.34.36/lib/root/libGui.so +
-#20 0x00007f2a4e947b48 in TUnixSystem::DispatchOneEvent(bool) () from /home/kobayash/cern/root_v5.34.36/lib/root/libCore.so +
-#21 0x00007f2a4e894cd6 in TSystem::InnerLoop() () from /home/kobayash/cern/root_v5.34.36/lib/root/libCore.so +
-#22 0x00007f2a4e895880 in TSystem::Run() () from /home/kobayash/cern/root_v5.34.36/lib/root/libCore.so +
-#23 0x00007f2a4e8aa54f in TApplication::Run(bool) () from /home/kobayash/cern/root_v5.34.36/lib/root/libCore.so+
 #24 0x00007f2a4e4d2ba7 in TRint::Run(bool) () from /home/kobayash/cern/root_v5.34.36/lib/root/libRint.so #24 0x00007f2a4e4d2ba7 in TRint::Run(bool) () from /home/kobayash/cern/root_v5.34.36/lib/root/libRint.so
 #25 0x0000000000401028 in main () #25 0x0000000000401028 in main ()
 =========================================================== ===========================================================
- 
  
 The crash is most likely caused by a problem in your script. The crash is most likely caused by a problem in your script.
行 64: 行 44:
 that might help us fixing this issue. that might help us fixing this issue.
  
 +Root > </code> 具体的には fit_eg.C を4回以上CINTで実行すると起こった。TH1D.h のインクルードをやめ、#include "TH1.h" とすると、問題がおきなくなった。なんで? 
  
-Root > </code> 具体的には fit_eg.C を4回以上CINTで実行すると起こったTH1D.インクルードをやめ#include "TH1D.h" とると、問題がおきくなったなん? +  * CINT で上で 2 つのマクロを実行する場合、それらのマクロに同じ名前の関数が存在し、それらの引数にデフォルト値が与えられていると、以下のエラーがでる<code>Error: Redefinition of default argument xxx.C:15: 
 +*** Interpreter error recovered ***</code> 
 +  * 以下ようなコードをマクロに書き<code>  if (gDirectory->IsWritable()) { 
 +<code>    grng->Write(); 
 +    tf1->Write(); 
 +    ghst->Write(); 
 +    ginteg->Write("ginteg",TObject::kOverwrite); 
 +    garea->Write("garea",TObject::kOverwrite); 
 +  }</code> そのマクロを CINT で複数回実行したあ、TBrowser を閉じると <code> 
 +   
 +   *** Break *** segmentation violation 
 + 
 +=========================================================== 
 +There was a crash. 
 +This is the entire stack trace of all threads: 
 +=========================================================== 
 +#0  0x00007fe5bf07127c in __libc_waitpid (pid=14124, stat_loc=stat_loc 
 +entry=0x7ffc853e4920, options=options 
 +entry=0) at ../sysdeps/unix/sysv/linux/waitpid.c:31 
 +#1  0x00007fe5beff4c72 in do_system (line=<optimized out>) at ../sysdeps/posix/system.c:148 
 +#2  0x00007fe5bfd25cb9 in TUnixSystem::StackTrace() () from /home/kobayash/cern/root_v5.34.36/lib/root/libCore.so</code>Write をマクロ使う時は注意。
  
 +  
softwares/root/errors.1536134205.txt.gz · 最終更新: 2018/09/05 16:56 by kobayash
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0