Closed Bug 709000 Opened 13 years ago Closed 13 years ago

Segfault in sqlite3_db_status

Categories

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

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 708248

People

(Reporter: protz, Unassigned)

Details

Attachments

(1 file)

Attached file bt full
So I initially had the problem that my addon wasn't closing its sqlite connections properly, but I fixed that (I think), and now it shouldn't be a problem anymore. Attached is a gdb bt after it happened. Please note that this didn't happen a week ago or so. (gdb) up #1 0x00007ffa91fa46d5 in mozilla::storage::StorageSQLiteMultiReporter::doConnMeasurement (this=<optimized out>, aCallback=0x7ffa52295730, aClosure=0x7ffa6c82e340, aConn=0x0, aPathHead=<optimized out>, aKind=<optimized out>, aDesc=..., aOption=3) at /home/jonathan/Sources/comm-central/mozilla/storage/src/mozStorageService.cpp:263 263 int rc = ::sqlite3_db_status(aConn, aOption, &curr, &max, 0); (gdb) l 258 nsCString path(aPathHead); 259 path.Append(aKind); 260 path.AppendLiteral("-used"); 261 262 int curr = 0, max = 0; 263 int rc = ::sqlite3_db_status(aConn, aOption, &curr, &max, 0); 264 nsresult rv = convertResultCode(rc); 265 NS_ENSURE_SUCCESS(rv, rv); 266 267 aCallback->Callback(NS_LITERAL_CSTRING(""), path, (gdb) p path $2 = {<nsACString_internal> = { mData = 0x7ffa653eaeb8 "explicit/storage/sqlite/simple_storage.sqlite/stmt-used", mLength = 55, mFlags = 5}, <No data fields>} (gdb) p aConn $3 = (sqlite3 *) 0x0 (gdb) p aOption $4 = 3 (gdb) p curr $5 = 0 (gdb) p max $6 = 0 (gdb)
Also, here's what call DumpJSStack() gave 0 gatherMemory() ["file:///home/jonathan/Sources/objdir-comm-central/mozilla/dist/bin/components/TelemetryPing.js":298] explicit = undefined e = [xpconnect wrapped nsISimpleEnumerator] mgr = [xpconnect wrapped nsIMemoryReporterManager] this = [object Object] 1 anonymous(aData = null, aTopic = "cycle-collector-begin", aSubject = null) ["file:///home/jonathan/Sources/objdir-comm-central/mozilla/dist/bin/components/TelemetryPing.js":450] server = "https://data.mozilla.com" this = [object Object] 0 gatherMemory() ["file:///home/jonathan/Sources/objdir-comm-central/mozilla/dist/bin/components/TelemetryPing.js":298] explicit = undefined e = [xpconnect wrapped nsISimpleEnumerator] mgr = [xpconnect wrapped nsIMemoryReporterManager] this = [object Object] 1 anonymous(aData = null, aTopic = "cycle-collector-begin", aSubject = null) ["file:///home/jonathan/Sources/objdir-comm-central/mozilla/dist/bin/components/TelemetryPing.js":450] server = "https://data.mozilla.com" this = [object Object] /home/nas/gallium/protzenk/bin/thunderbird: line 1: 4519 Killed
Note that I did fix the problem with my addons 6 months ago, and the crashes stopped at that time, and now the crashes in sqlite are back, which makes me think it's a different problem.
Version: 1.9.2 Branch → Trunk
I think this is just a dupe of bug 708248.
Yes, it's a duplicate. Thanks for reporting!
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
Product: Toolkit → Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: