|
From: Bart V. A. <bar...@gm...> - 2008-05-02 18:26:50
|
On Fri, May 2, 2008 at 7:57 PM, Nuno Lopes <nun...@sa...> wrote:
>
> Bingo!
> I now get the following:
>
> exp-drd: drd_clientreq.c:102 (highest_used_stack_address): Assertion
> 'VG_(thread_get_stack_max)(vg_tid) - VG_(thread_get_stack_size)(vg_tid) <=
> husa && husa <= VG_(thread_get_stack_max)(vg_tid)' failed.
> ==6340== at 0x3801A708: report_and_quit (m_libcassert.c:140)
> ==6340== by 0x3801AA80: vgPlain_assert_fail (m_libcassert.c:205)
> ==6340== by 0x380077EC: highest_used_stack_address (drd_clientreq.c:100)
> ==6340== by 0x38007DC4: drd_handle_client_request (drd_clientreq.c:130)
> ==6340== by 0x380403D0: do_client_request (scheduler.c:1414)
> ==6340== by 0x38041EA4: vgPlain_scheduler (scheduler.c:1013)
> ==6340== by 0x3805857C: run_a_thread_NORETURN (syswrap-linux.c:89)
>
> sched status:
> running_tid=1
>
> Thread 1: status = VgTs_Runnable
> ==6340== at 0xFF6C498: init (drd_pthread_intercepts.c:244)
> ==6340== by 0xFF6CD94: (within
> /home/avexe/nuno/valgrind/exp-drd/vgpreload_exp-drd-ppc32-linux.so)
> ==6340== by 0xFF65CF8: (within
> /home/avexe/nuno/valgrind/exp-drd/vgpreload_exp-drd-ppc32-linux.so)
> ==6340== by 0xFFBE6F8: call_init (in /lib/ld-2.6.so)
> ==6340== by 0xFFBE87C: _dl_init (in /lib/ld-2.6.so)
> ==6340== by 0xFFC6B70: _start (in /lib/ld-2.6.so)
Hello Julian,
Shouldn't the code below fill in sps[0] and fps[0] ? See also
coregrind/m_stacktrace.c, starting at line 101.
/* Assertion broken before main() is reached in pthreaded programs; the
* offending stack traces only have one item. --njn, 2002-aug-16 */
/* vg_assert(fp_min <= fp_max);*/
if (fp_min + 512 >= fp_max) {
/* If the stack limits look bogus, don't poke around ... but
don't bomb out either. */
ips[0] = ip;
return 1;
}
Bart.
|