https://bugs.kde.org/show_bug.cgi?id=365750

            Bug ID: 365750
           Summary: Valgrind fails on binary with .text section not in
                    default place
           Product: valgrind
           Version: 3.11.0
          Platform: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: callgrind
          Assignee: josef.weidendor...@gmx.de
          Reporter: janisozaur+...@gmail.com

When I run my program, OpenRCT2, for which we use custom linker script[1] to
move .text section around, valgrind's callgrind fails with following assertion:

valgrind: m_debuginfo/debuginfo.c:552 (check_CFSI_related_invariants):
Assertion 'cfsi_fits' failed

This is a program compiled with -m32 on a 64-bit system. Similar case when
compiling a 64-bit version on 64-bit system.

It works, however, when compiled with .text section set to default on my
system, then mmap-ing sections in their expected place.

[1]
https://github.com/OpenRCT2/OpenRCT2/blob/76cca7a/distribution/linux/ld_script_i386.xc#L54-L56

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to