Callgrind は malloc でアサーション違反を報告しましたが、memcheck と通常の実行ではエラーは明らかになりません。
stp: malloc.c:3096: sYSMALLOc: アサーション `(old_top == (((mbinptr) (((char *) &((av)->bins[((1) - 1) * 2])) - __builtin_offsetof (struct malloc_chunk, fd)))) && old_size == 0) || ((unsigned long) (old_size) >= (unsigned long)((((__builtin_offsetof (struct malloc_chunk, fd_nextsize))+((2 * (sizeof(size_t))) - 1)) & ~(((2 * (sizeof) (size_t))) - 1))) && ((old_top)->size & 0x1) && ((unsigned long)old_end & pagemask) == 0)' が失敗しました。
実行コマンドは次のとおりです。
taskset -c 7 valgrind --main-stacksize=256768768 --tool=callgrind no-asserts-no-cbitp/stp ~/profiling-stp/python-samples-without-const-arr/*.smt
プログラムは -O2 -g オプションでビルドされます。valgrind を実行する前に、「ulimit -s unlimited」が呼び出されます。
Callgrind によって報告されたエラーのスタック トレースを取得することは可能ですか? そうでない場合 - デバッグ方法のアイデアはありますか?
ありがとう!