| Summary: | valgrind: the 'impossible' happened: VG_(arena_memalign) | ||
|---|---|---|---|
| Product: | [Developer tools] valgrind | Reporter: | indy2718 |
| Component: | memcheck | Assignee: | Julian Seward <jseward> |
| Status: | RESOLVED NOT A BUG | ||
| Severity: | crash | CC: | alex.ivershen, njn |
| Priority: | NOR | ||
| Version First Reported In: | 3.5 SVN | ||
| Target Milestone: | --- | ||
| Platform: | Debian testing | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
indy2718
2009-03-21 03:25:15 UTC
I think you've mixed up the order of the arguments to memalign. The alignment is given by the first arg, the size by the second. Valgrind is aborting because 8388608 is an inappropriate alignment value. I've improved the error message to make this clearer. Julian, I ran into the exact same problem, and the arguments to memalign are correct. The particular application has to allocate 8MB-aligned memory segments for DMA to a disk array, and 8M alignment is perfectly appropriate. I modified the source code to check for 8M instead and everything worked. Suggesting increasing the value to 8388608 in the trunk source code. Thanks! / Alex Ivershen Alex, can you please open a new bug with a title something like "increase maximum allowed alignment for memalign()". Thanks. |