[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 169505] New: main.c:286 (endOfInstr): Assertion
From:       Sami Liedes <sliedes () cc ! hut ! fi>
Date:       2008-08-20 18:41:28
Message-ID: bug-169505-17878 () http ! bugs ! kde ! org/
[Download RAW message or body]

http://bugs.kde.org/show_bug.cgi?id=169505

           Summary: main.c:286 (endOfInstr): Assertion 'ii->cost_offset ==
                    *cost_offset' failed
           Product: valgrind
           Version: 3.3.1
          Platform: Debian testing
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: crash
          Priority: NOR
         Component: callgrind
        AssignedTo: josef.weidendorfer@gmx.de
        ReportedBy: sliedes@cc.hut.fi


When I try to use --simulate-cache=yes with my software on my amd64 Debian
box, I get the following assertion failure:

------------------------------------------------------------
$ valgrind --tool=callgrind --simulate-cache=yes ./prog
==620== Callgrind, a call-graph generating cache profiler.
==620== Copyright (C) 2002-2007, and GNU GPL'd, by Josef Weidendorfer et al.
==620== Using LibVEX rev 1854, a library for dynamic binary translation.
==620== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
==620== Using valgrind-3.3.1-Debian, a dynamic binary instrumentation
framework.
==620== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al.
==620== For more details, rerun with: -v
==620==
--620-- warning: Unknown Intel cache config value (0x78), ignoring
--620-- warning: L2 cache not installed, ignore L2 results.
==620== For interactive control, run 'callgrind_control -h'.
0x000000000000C2C0
BB# 1750064

Callgrind: main.c:286 (endOfInstr): Assertion 'ii->cost_offset == *cost_offset'
failed.
==620==    at 0x3801940C: report_and_quit (m_libcassert.c:140)
==620==    by 0x3801971A: vgPlain_assert_fail (m_libcassert.c:200)
==620==    by 0x38000C00: endOfInstr (main.c:286)
==620==    by 0x38001065: vgCallgrind_instrument (main.c:619)
==620==    by 0x38082ABE: LibVEX_Translate (vex_main.c:500)
==620==    by 0x38029C65: vgPlain_translate (m_translate.c:1417)
==620==    by 0x3803208F: vgPlain_scheduler (scheduler.c:762)
==620==    by 0x38043373: run_a_thread_NORETURN (syswrap-linux.c:89)

sched status:
  running_tid=1

Thread 1: status = VgTs_Runnable
==620==    at 0x7DF5310: (within /usr/lib/libxcb.so.1.0.0)
==620==    by 0x7DF55BC: (within /usr/lib/libxcb.so.1.0.0)
==620==    by 0x7DF51D1: xcb_connect (in /usr/lib/libxcb.so.1.0.0)
==620==    by 0x792A709: _XConnectXCB (in /usr/lib/libX11.so.6.2.0)
==620==    by 0x79124FC: XOpenDisplay (in /usr/lib/libX11.so.6.2.0)
==620==    by 0x4C5F14D: X11_VideoInit (SDL_x11video.c:572)
==620==    by 0x4C503B3: SDL_VideoInit (SDL_video.c:243)
==620==    by 0x4C27056: SDL_InitSubSystem (SDL.c:70)
==620==    by 0x4C2709E: SDL_Init (SDL.c:162)
==620==    by 0x43B311: init_video() (video.cpp:143)
==620==    by 0x40D69A: main (main.cpp:4063)


Note: see also the FAQ.txt in the source distribution.
It contains workarounds to several common problems.

If that doesn't help, please report this bug to: www.valgrind.org

In the bug report, send all the above text, the valgrind
version, and what Linux distro you are using.  Thanks.
------------------------------------------------------------

Without --simulate-cache=yes, everything works. Manually specifying
cache size does not help, it removes the warnings about cache size but
does not remove the assertion failure.

------------------------------------------------------------
$ cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 15
model name      : Intel(R) Celeron(R) M CPU        530  @ 1.73GHz
stepping        : 10
cpu MHz         : 1729.000
cache size      : 1024 KB
fpu             : yes
fpu_exception   : yes
cpuid level     : 10
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov
pat pse36 clflush dts acpi mmx fxsr sse sse2 ss tm pbe syscall nx lm
constant_tsc arch_perfmon pebs bts rep_good pni monitor ds_cpl tm2 ssse3 cx16
xtpr lahf_lm
bogomips        : 3461.50
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:

$ valgrind --version
valgrind-3.3.1-Debian
------------------------------------------------------------

        Sami


-- 
Configure bugmail: http://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic