Bug 757728 - Valgrind: bad alignment value when debugging qemu-kvm
Summary: Valgrind: bad alignment value when debugging qemu-kvm
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: valgrind
Version: 6.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 6.3
Assignee: Jakub Jelinek
QA Contact: qe-baseos-tools-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-28 14:23 UTC by David Jaša
Modified: 2012-06-20 14:34 UTC (History)
1 user (show)

Fixed In Version: valgrind-3.6.0-5.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-06-20 14:34:46 UTC
Target Upstream Version:


Attachments (Terms of Use)
full valgrind log output (21.64 KB, text/plain)
2011-11-28 14:23 UTC, David Jaša
no flags Details
raise alignment limit to 4 MB (654 bytes, patch)
2011-11-28 16:35 UTC, David Jaša
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0936 0 normal SHIPPED_LIVE valgrind bug fix and enhancement update 2012-06-19 21:00:34 UTC

Description David Jaša 2011-11-28 14:23:08 UTC
Created attachment 537488 [details]
full valgrind log output

Description of problem:
SSIA

Version-Release number of selected component (if applicable):
valgrind-3.6.0-4.el6.x86_64

How reproducible:
always

Steps to Reproduce:
1. run qemu-kvm in valgrind
2.
3.
  
Actual results:
process exits in few seconds with bad alignment error

Expected results:


Additional info:
lines around the error:

==7707==    by 0x34EE2077F0: start_thread (in /lib64/libpthread-2.12.so)
==7707==    by 0x34EDAE570C: clone (in /lib64/libc-2.12.so)
==7707== 
VG_(arena_memalign)(0x388BC9D8, 2097152, 524288000)
bad alignment value 2097152
(it is too small, too big, or not a power of two)
valgrind: the 'impossible' happened:
   VG_(arena_memalign)
==7707==    at 0x3802D247: report_and_quit (m_libcassert.c:210)
==7707==    by 0x3802D2AE: panic (m_libcassert.c:294)
==7707==    by 0x3802D308: vgPlain_core_panic_at (m_libcassert.c:299)
==7707==    by 0x3802D31A: vgPlain_core_panic (m_libcassert.c:304)
==7707==    by 0x3803965A: vgPlain_arena_memalign (m_mallocfree.c:1600)
==7707==    by 0x38002D44: vgMemCheck_new_block (mc_malloc_wrappers.c:200)
==7707==    by 0x3800303F: vgMemCheck_memalign (mc_malloc_wrappers.c:267)
==7707==    by 0x380684B4: vgPlain_scheduler (scheduler.c:1410)
==7707==    by 0x380913F4: run_a_thread_NORETURN (syswrap-linux.c:95)

Comment 3 David Jaša 2011-11-28 16:35:13 UTC
Created attachment 537528 [details]
raise alignment limit to 4 MB

Based on advice my mfranc, I've created this patch that fixes the issue for me.

Comment 6 errata-xmlrpc 2012-06-20 14:34:46 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2012-0936.html


Note You need to log in before you can comment on or make changes to this bug.