Author: sewardj Date: 2007-11-15 22:33:32 +0000 (Thu, 15 Nov 2007) New Revision: 7159
Log: Add a regression test for #152022. Added: trunk/memcheck/tests/x86/bug152022.c trunk/memcheck/tests/x86/bug152022.stderr.exp trunk/memcheck/tests/x86/bug152022.stdout.exp trunk/memcheck/tests/x86/bug152022.vgtest Modified: trunk/memcheck/tests/x86/Makefile.am Modified: trunk/memcheck/tests/x86/Makefile.am =================================================================== --- trunk/memcheck/tests/x86/Makefile.am 2007-11-14 15:53:11 UTC (rev 7158) +++ trunk/memcheck/tests/x86/Makefile.am 2007-11-15 22:33:32 UTC (rev 7159) @@ -6,6 +6,7 @@ EXTRA_DIST = $(noinst_SCRIPTS) \ bug133694.vgtest bug133694.stderr.exp bug133694.stdout.exp \ + bug152022.vgtest bug152022.stderr.exp bug152022.stdout.exp \ espindola2.vgtest espindola2.stderr.exp \ fpeflags.stderr.exp fpeflags.vgtest \ $(addsuffix .stderr.exp,$(INSN_TESTS)) \ @@ -31,6 +32,7 @@ check_PROGRAMS = \ bug133694 \ + bug152022 \ espindola2 \ int3-x86 \ scalar_exit_group scalar_fork scalar_supp scalar_vfork \ Added: trunk/memcheck/tests/x86/bug152022.c =================================================================== --- trunk/memcheck/tests/x86/bug152022.c (rev 0) +++ trunk/memcheck/tests/x86/bug152022.c 2007-11-15 22:33:32 UTC (rev 7159) @@ -0,0 +1,22 @@ + +/* As discussed on valgrind-users in the thread + http://comments.gmane.org/gmane.comp.debugging.valgrind/7535 + valgrinding Wine running a large win32 app (Picasa) fails with the message + + vex: priv/host-x86/isel.c:510 (doHelperCall): Assertion + `typeOfIRExpr(env->type_env, args[i]) == Ity_I32' failed. + + See http://bugs.kde.org/show_bug.cgi?id=152022 + +This little fragment used to cause Memcheck to assert, so if the +program runs to completion without dying, the test is passed. +*/ + + +int main ( void ) { + __asm__ __volatile__( "subw $0x28, %%sp\n" + "movl $0, 0(%%esp)\n" + "addw $0x28, %%sp" : : : "memory" ); + return 0; +} + Added: trunk/memcheck/tests/x86/bug152022.stderr.exp =================================================================== --- trunk/memcheck/tests/x86/bug152022.stderr.exp (rev 0) +++ trunk/memcheck/tests/x86/bug152022.stderr.exp 2007-11-15 22:33:32 UTC (rev 7159) @@ -0,0 +1,7 @@ + + +ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) +malloc/free: in use at exit: 0 bytes in 0 blocks. +malloc/free: 0 allocs, 0 frees, 0 bytes allocated. +For a detailed leak analysis, rerun with: --leak-check=yes +For counts of detected errors, rerun with: -v Added: trunk/memcheck/tests/x86/bug152022.stdout.exp =================================================================== Added: trunk/memcheck/tests/x86/bug152022.vgtest =================================================================== --- trunk/memcheck/tests/x86/bug152022.vgtest (rev 0) +++ trunk/memcheck/tests/x86/bug152022.vgtest 2007-11-15 22:33:32 UTC (rev 7159) @@ -0,0 +1 @@ +prog: bug152022 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Valgrind-developers mailing list Valgrind-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/valgrind-developers