Closed Bug 519781 Opened 17 years ago Closed 8 years ago

Purify ABR warnings in sqlite when visiting intranet.mozilla.org

Categories

(Core :: SQLite and Embedded Database Bindings, defect)

x86
Windows Server 2003
defect
Not set
normal

Tracking

()

RESOLVED INACTIVE

People

(Reporter: sayrer, Unassigned)

Details

Attachments

(1 file)

will attach log
Version: unspecified → Trunk
Attached file purify log —
The important bits: [E] ABR: Array bounds read in memcmp {15 occurrences} Reading 11 bytes from 0x1b5d8718 (3 bytes at 0x1b5d8720 illegal) Address 0x1b5d8718 is argument #1 of memcmp Address 0x1b5d8718 is 56 bytes into a 64 byte block at 0x1b5d86e0 Address 0x1b5d8718 points to a malloc'd block in heap 0x06f40000 Thread ID: 0xed0 Error location memcmp [F:\SP\vctools\crt_bld\SELF_X86\crt\src\intel\llshl.asm] sqlite3ExprAssignVarNumber [c:\dev\tracemonkey\db\sqlite3\src\sqlite3.c:59217] yy_reduce [c:\dev\tracemonkey\db\sqlite3\src\sqlite3.c:23204] sqlite3Parser [c:\dev\tracemonkey\db\sqlite3\src\sqlite3.c:23835] sqlite3RunParser [c:\dev\tracemonkey\db\sqlite3\src\sqlite3.c:24666] sqlite3Prepare [c:\dev\tracemonkey\db\sqlite3\src\sqlite3.c:9582] sqlite3LockAndPrepare [c:\dev\tracemonkey\db\sqlite3\src\sqlite3.c:9672] sqlite3_prepare_v2 [c:\dev\tracemonkey\db\sqlite3\src\sqlite3.c:9747] mozilla::storage::Statement::initialize(Connection::storage::mozilla *,nsACString_internal const&) [c:\dev\tracemonkey\storage\src\mozstoragestatement.cpp:200] mozilla::storage::Connection::CreateStatement(nsACString_internal const&,mozIStorageStatement * *) [c:\dev\tracemonkey\storage\src\mozstorageconnection.cpp:617] Allocation location malloc [f:\sp\vctools\crt_bld\self_x86\crt\src\dbgheap.c:153] sqlite3MemMalloc [c:\dev\tracemonkey\db\sqlite3\src\sqlite3.c:12269] sqlite3Malloc [c:\dev\tracemonkey\db\sqlite3\src\sqlite3.c:15504] sqlite3DbMallocRaw [c:\dev\tracemonkey\db\sqlite3\src\sqlite3.c:15813] sqlite3DbMallocZero [c:\dev\tracemonkey\db\sqlite3\src\sqlite3.c:15764] sqlite3ExprAlloc [c:\dev\tracemonkey\db\sqlite3\src\sqlite3.c:59030] sqlite3PExpr [c:\dev\tracemonkey\db\sqlite3\src\sqlite3.c:59121] spanExpr [c:\dev\tracemonkey\db\sqlite3\src\sqlite3.c:20693] yy_reduce [c:\dev\tracemonkey\db\sqlite3\src\sqlite3.c:23203] sqlite3Parser [c:\dev\tracemonkey\db\sqlite3\src\sqlite3.c:23835]
Can't reproduce using Valgrind (on Wine on Linux) using debug build of m-c on WinXP. If I had to guess, Purify is not correctly handling an optimised/vectorised memcmp correctly; but that's only a guess. sqlite3.c looks pretty cross platform to me, so we should also see this on Linux/MacOS if it was real.
Per policy at https://wiki.mozilla.org/Bug_Triage/Projects/Bug_Handling/Bug_Husbandry#Inactive_Bugs. If this bug is not an enhancement request or a bug not present in a supported release of Firefox, then it may be reopened.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → INACTIVE
Product: Toolkit → Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: