On Fri, Jul 31, 2009 at 2:56 AM, Nick Savoiu<[email protected]> wrote: > > I'm trying to run valgrind on a SystemC executable but I'm running into some > trouble. > > First, I get lots of errors when running even a simple hello-world > application. My guess is that the stack-switching that SystemC trips Valgrind. > > ==25253== Warning: client switching stacks? SP change: 0xFEFF0E2C --> > 0x53E0570 > ==25253== to suppress, use: --max-stackframe=104789828 or greater > > I've tried the suggestion but then I got > > Memcheck: the 'impossible' happened: > create_MC_Chunk: shadow area is accessible > ==2093== at 0x380194FB: report_and_quit (m_libcassert.c:140) > ==2093== by 0x38019793: panic (m_libcassert.c:210) > ==2093== by 0x38019862: vgPlain_tool_panic (m_libcassert.c:225) > ==2093== by 0x380017DB: create_MC_Chunk (mc_malloc_wrappers.c:148) > ==2093== by 0x380018D0: vgMemCheck_new_block (mc_malloc_wrappers.c:211) > ==2093== by 0x38001A69: vgMemCheck_malloc (mc_malloc_wrappers.c:226) > ==2093== by 0x38037587: do_client_request (scheduler.c:1269) > ==2093== by 0x38036CE3: vgPlain_scheduler (scheduler.c:979) > ==2093== by 0x38039E4F: thread_wrapper (syswrap-linux.c:89) > ==2093== by 0x38039FAF: run_a_thread_NORETURN (syswrap-linux.c:122) > > Is there something I need to do to cleanly run valgrind on SystemC > executables?
Sounds like a Valgrind bug. Can you file a bug report (see http://www.valgrind.org/support/bug_reports.html) explaining how to reproduce it? As a temporary hack, you could try disabling that assertion and see how far it gets you... you might get lucky. Nick ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Valgrind-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/valgrind-users
