差分

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

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
softwares:root:errors [2018/09/26 22:01] kobayashsoftwares:root:errors [2018/09/26 22:14] (現在) kobayash
行 48: 行 48:
   * CINT で上で 2 つのマクロを実行する場合、それらのマクロに同じ名前の関数が存在し、それらの引数にデフォルト値が与えられていると、以下のエラーがでる。<code>Error: Redefinition of default argument xxx.C:15:   * CINT で上で 2 つのマクロを実行する場合、それらのマクロに同じ名前の関数が存在し、それらの引数にデフォルト値が与えられていると、以下のエラーがでる。<code>Error: Redefinition of default argument xxx.C:15:
 *** Interpreter error recovered ***</code> *** 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.1537966887.txt.gz · 最終更新: 2018/09/26 22:01 by kobayash
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0