|
From: Julian S. <js...@ac...> - 2006-01-12 18:12:45
|
Cancel that last message - I didn't read the backtrace carefully
enough. It's handling a read syscall, but what _seems_ (note,
superficial analysis :-) to be happening is that the kernel is
saying the syscall succeeded and read -7002 bytes of data. Cool.
The immediate trigger of the problem is this
POST(sys_read)
{
vg_assert(SUCCESS);
POST_MEM_WRITE( ARG2, RES );
}
(syswrap-generic.c:4785). What happens if you change "RES" to
"0x7FFFFFFF & (RES)" ?
J
> > Memcheck: mc_main.c:584 (set_address_range_perms): the 'impossible'
> > happened. ==2272== at 0x70015010: report_and_quit (m_libcassert.c:136)
> > ==2272== by 0x70015260: vgPlain_assert_fail (m_libcassert.c:199)
> > ==2272== by 0x70003E7C: set_address_range_perms (mc_main.c:573)
> > ==2272== by 0x7004E448: vgSysWrap_generic_sys_read_after
> > (priv_types_n_macros.h:249)
> > ==2272== by 0x7005236C: vgPlain_post_syscall (syswrap-main.c:934)
> > ==2272== by 0x7005213C: vgPlain_client_syscall (syswrap-main.c:860)
> > ==2272== by 0x7003D268: handle_syscall (scheduler.c:624)
> > ==2272== by 0x7003D670: vgPlain_scheduler (scheduler.c:725)
> > ==2272== by 0x700533E0: thread_wrapper (syswrap-linux.c:86)
> > ==2272== by 0x70053514: run_a_thread_NORETURN (syswrap-linux.c:119)
> > ==2272== by 0x70053664: vgModuleLocal_start_thread_NORETURN
>
> Well, umm. The problem is certainly syscall related, but this stack
> trace lacks the critical frame which would indicate which syscall it
> is. (What was really called from syswrap-main.c:934?)
>
> Can you rerun with --trace-syscalls=yes. This should give an
> strace-style log of syscalls. Just send the couple of lines
> prior to the "Warning" line.
>
> J
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log
> files for problems? Stop! Download the new AJAX search engine that makes
> searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
> http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
> _______________________________________________
> Valgrind-users mailing list
> Val...@li...
> https://lists.sourceforge.net/lists/listinfo/valgrind-users
|