https://bugs.kde.org/show_bug.cgi?id=357037
Bug ID: 357037
Summary: Line numbers are occasionally displayed incorrectly in
intel-compiled applications
Product: valgrind
Version: 3.10 SVN
Platform: RedHat RPMs
OS: Linux
Status: UNCONFIRMED
Severity: minor
Priority: NOR
Component: memcheck
Assignee: [email protected]
Reporter: [email protected]
Created attachment 96260
--> https://bugs.kde.org/attachment.cgi?id=96260&action=edit
a reproducer application
If an application is compiled with Intel compiler, line numbers are displayed
incorrectly if the line contains line break.
A reproducer application (line_numbers.c) is attached.
Steps to build and run the test:
icc -O0 -g line_numbers.c -o line_numbers_icc
valgrind -q ./line_numbers_icc
Expected result (reported for gcc-compiled application):
==xxxx== Invalid write of size 4
==xxxx== at 0xxxxxxx: main (line_numbers.c:8)
==xxxx== Address 0xxxxxxxx is 4 bytes inside a block of size 40 free'd
==xxxx== at 0xxxxxxxx: free (vg_replace_malloc.c:530)
==xxxx== by 0xxxxxxx: main (line_numbers.c:7)
==xxxx== Block was alloc'd at
==xxxx== at 0xxxxxxxx: malloc (vg_replace_malloc.c:299)
==xxxx== by 0xxxxxxx: main (line_numbers.c:5)
==xxxx==
Actual result:
==xxxx== Invalid write of size 4
==xxxx== at 0xxxxxxx: main (line_numbers.c:8)
==xxxx== Address 0xxxxxxxx is 4 bytes inside a block of size 40 free'd
==xxxx== at 0xxxxxxxx: free (vg_replace_malloc.c:530)
==xxxx== by 0xxxxxxx: main (line_numbers.c:7)
==xxxx== Block was alloc'd at
==xxxx== at 0xxxxxxxx: malloc (vg_replace_malloc.c:299)
==xxxx== by 0xxxxxxx: main (line_numbers.c:7)
==xxxx==
--
You are receiving this mail because:
You are watching all bug changes.