|
From: Wuweijia <wuw...@hu...> - 2017-06-23 03:20:44
Attachments:
output.log
main.c
|
Hi: I compile the code in x86-64 machine, and run dhat . it is ok. The compile cmd: gcc -g -O0 main.c The dhat cmd valgrind -tool=exp-dhat ./a.out But I compile the same code in the same machine, but another compile cmd, and run dhat. It failed. The compile cmd: gcc -g -O0 -m32 main.c The dhat cmd valgrind -tool=exp-dhat ./a.out I just compile same code into ELF32 mode. The output as below: DHAT: dh_main.c:756 (dh_handle_noninsn_write): the 'impossible' happened. host stacktrace: ==84382== at 0x3800C886: show_sched_status_wrk (m_libcassert.c:343) ==84382== by 0x3800C9C6: report_and_quit (m_libcassert.c:419) ==84382== by 0x3800CAEB: vgPlain_assert_fail (m_libcassert.c:485) ==84382== by 0x38008623: dh_handle_noninsn_write (dh_main.c:756) ==84382== by 0x38010558: final_tidyup (m_main.c:2798) ==84382== by 0x38010A54: shutdown_actions_NORETURN (m_main.c:2564) ==84382== by 0x38078E90: run_a_thread_NORETURN (syswrap-linux.c:199) sched status: running_tid=1 Thread 1: status = VgTs_Runnable (lwpid 84382) ==84382== at 0x402452B: _vgnU_freeres (vg_preloaded.c:59) ==84382== by 0x2: ??? The valgrind version is 3.12.0 root@SZV1000161574:/usr1/code/source/test# gcc --version gcc (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4 Copyright (C) 2013 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is Does dhat support elf32 mode? BR Owen |