|
From: Eric P. <eri...@wa...> - 2006-02-11 20:33:28
|
Julian Seward wrote:
>>I slightly changed your test program, to something that's closer to what
>>we do in Wine... and it doesn't work under VG :-(
> Wow. That's a really ugly hack :-)
thanks ;-)
> When you say "valgrind fails", exactly what happens?
test program compiled with the old fashion(linux < 2.4 signal frame)
(NB: using the new rt-signal leads to the same message)
[eric@calliope ~]$ valgrind --tool=none ./vgt
==14133== Nulgrind, a binary JIT-compiler.
==14133== Copyright (C) 2002-2005, and GNU GPL'd, by Nicholas Nethercote.
==14133== Using LibVEX rev 1471, a library for dynamic binary translation.
==14133== Copyright (C) 2004-2005, and GNU GPL'd, by OpenWorks LLP.
==14133== Using valgrind-3.1.0, a dynamic binary instrumentation framework.
==14133== Copyright (C) 2000-2005, and GNU GPL'd, by Julian Seward et al.
==14133== For more details, rerun with: -v
==14133==
before
in handler2, setting EIP to 0x804859e
==14133==
==14133== Process terminating with default action of signal 11 (SIGSEGV)
==14133== Access not within mapped region at address 0xDEADBAC2
==14133== at 0x4063E55: vfprintf (in /lib/tls/libc-2.3.4.so)
==14133== by 0x406C3CF: printf (in /lib/tls/libc-2.3.4.so)
==14133== by 0x80485E1: handler_old (vgt.c:58)
==14133== by 0x40517D7: (within /lib/tls/libc-2.3.4.so)
==14133== by 0x406C3CF: printf (in /lib/tls/libc-2.3.4.so)
==14133== by 0x80485B6: diversion (vgt.c:16)
==14133== by 0xDEADBABD: ???
==14133== by 0x403EE4A: __libc_start_main (in /lib/tls/libc-2.3.4.so)
--14133-- INTERNAL ERROR: Valgrind received a signal 11 (SIGSEGV) - exiting
--14133-- si_code=1; Faulting address: 0xDEADBAB6; sp: 0x62511898
valgrind: the 'impossible' happened:
Killed by fatal signal
==14133== at 0xB0005F4D: vgPlain_arena_free (m_mallocfree.c:181)
==14133== by 0xB0033DC5: free_LDT_or_GDT (syswrap-x86-linux.c:448)
==14133== by 0xB0033EEF: deallocate_LGDTs_for_thread
(syswrap-x86-linux.c:489)
==14133== by 0xB003434C: vgPlain_cleanup_thread (syswrap-x86-linux.c:711)
==14133== by 0xB001C48E: mostly_clear_thread_record (scheduler.c:478)
==14133== by 0xB001BD2E: vgPlain_exit_thread (scheduler.c:258)
==14133== by 0xB0003DF2: shutdown_actions_NORETURN (m_main.c:2581)
==14133== by 0xB002C301: run_a_thread_NORETURN (syswrap-linux.c:138)
sched status:
running_tid=1
Thread 1: status = VgTs_Runnable
==14133== at 0x4063E55: vfprintf (in /lib/tls/libc-2.3.4.so)
==14133== by 0x406C3CF: printf (in /lib/tls/libc-2.3.4.so)
==14133== by 0x80485E1: handler_old (vgt.c:58)
==14133== by 0x40517D7: (within /lib/tls/libc-2.3.4.so)
==14133== by 0x406C3CF: printf (in /lib/tls/libc-2.3.4.so)
==14133== by 0x80485B6: diversion (vgt.c:16)
==14133== by 0xDEADBABD: ???
==14133== by 0x403EE4A: __libc_start_main (in /lib/tls/libc-2.3.4.so)
A+
--
Eric Pouech
|