[Evolution] Bug#521608: libcamel1.2-14: crashes when openning sqlite file

Gustavo Noronha Silva kov at debian.org
Sat Mar 28 22:29:05 UTC 2009


Package: libcamel1.2-14
Version: 2.24.5-3
Severity: important

I'm not sure why this crash happens. It does not happen with the
previous libsqlite3-0 version, only since 3.6.11-2.

(gdb) run
Starting program: /usr/bin/evolution 
[Thread debugging using libthread_db enabled]
warning: Lowest section in /usr/lib/libicudata.so.40 is .hash at 000000b4
[New Thread 0xb52cc9a0 (LWP 16244)]
** (evolution:16244): DEBUG: mailto URL command: evolution %s
** (evolution:16244): DEBUG: mailto URL program: evolution
[New Thread 0xb49eab90 (LWP 16261)]
[Thread 0xb49eab90 (LWP 16261) exited]
[New Thread 0xb49eab90 (LWP 16262)]
[New Thread 0xb41c5b90 (LWP 16263)]
[New Thread 0xb37ffb90 (LWP 16264)]
[New Thread 0xb2ffeb90 (LWP 16265)]
[New Thread 0xb27fdb90 (LWP 16266)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb37ffb90 (LWP 16264)]
0xb7bdcffa in unixCheckReservedLock (id=0x84e4c78, pResOut=0x0) at sqlite3.c:23253
23253	sqlite3.c: No such file or directory.
	in sqlite3.c
(gdb) bt full
#0  0xb7bdcffa in unixCheckReservedLock (id=0x84e4c78, pResOut=0x0) at sqlite3.c:23253
	rc = 0
	reserved = 0
#1  0xb7c06332 in camel_sqlite3_file_xCheckReservedLock (pFile=0x84e52f8) at camel-db.c:283
	__PRETTY_FUNCTION__ = "camel_sqlite3_file_xCheckReservedLock"
#2  0xb7b93685 in sqlite3PagerAcquire (pPager=0x84e5220, pgno=1, ppPage=0xb37fe87c, noContent=0) at sqlite3.c:12943
	pPg = (PgHdr *) 0x0
	rc = <value optimized out>
#3  0xb7b939b4 in sqlite3BtreeGetPage (pBt=0x84f53b8, pgno=1, ppPage=0xb37fe8e8, noContent=0) at sqlite3.c:38534
	rc = <value optimized out>
	pDbPage = (DbPage *) 0x0
#4  0xb7b9bd33 in sqlite3BtreeBeginTrans (p=0x84f5388, wrflag=0) at sqlite3.c:39190
	pBt = (BtShared *) 0x84f53b8
	rc = 0
#5  0xb7b9c175 in sqlite3BtreeCursor (p=0x84f5388, iTable=1, wrFlag=0, pKeyInfo=0x0, pCur=0x85057a0) at sqlite3.c:39293
	rc = 0
#6  0xb7bb00f5 in sqlite3InitOne (db=0x84e9e50, iDb=0, pzErrMsg=0xb37fedf4) at sqlite3.c:73438
	rc = 7
	curMain = (BtCursor *) 0x85057a0
	size = <value optimized out>
	pTab = <value optimized out>
	pDb = (Db *) 0x84e9ff4
	azArg = {0xb7bdefb0 "sqlite_master", 0xb7bdfb77 "1", 
  0xb7be22e0 "CREATE TABLE sqlite_master(\n  type text,\n  name text,\n  tbl_name text,\n  rootpage integer,\n  sql text\n)", 0x0}
	meta = {228, -1283462760, -1212305567, -1212246204, -1212249760, -1283462744, -1212748030, -1212246204, -1212249760, -1283462696}
	initData = {db = 0x84e9e50, iDb = 0, pzErrMsg = 0xb37fedf4, rc = 0}
	zMasterSchema = <value optimized out>
	zMasterName = 0xb7bdefb0 "sqlite_master"
	master_schema = "CREATE TABLE sqlite_master(\n  type text,\n  name text,\n  tbl_name text,\n  rootpage integer,\n  sql text\n)"
	temp_master_schema = "CREATE TEMP TABLE sqlite_temp_master(\n  type text,\n  name text,\n  tbl_name text,\n  rootpage integer,\n  sql text\n)"
#7  0xb7bb053d in sqlite3Init (db=0x84e9e50, pzErrMsg=0xb37fedf4) at sqlite3.c:73617
	i = 0
	rc = 834570592
#8  0xb7bb091a in sqlite3ReadSchema (pParse=0xb37fedec) at sqlite3.c:73653
	rc = <value optimized out>
	db = (sqlite3 *) 0x1
#9  0xb7bb2212 in sqlite3Pragma (pParse=0xb37fedec, pId1=<value optimized out>, pId2=0x8505098, pValue=0x85050b8, minusFlag=0) at sqlite3.c:72427
	zLeft = 0x8504f90 "cache_size"
	zRight = 0x8504f28 "100"
	zDb = 0x0
	pId = (Token *) 0x8505088
	iDb = 0
	db = (sqlite3 *) 0x84e9e50
	pDb = (Db *) 0x84e9ff4
	v = (Vdbe *) 0x85056a8
	getCacheSize = {{opcode = 112 'p', p1 = 0 '\0', p2 = 1 '\001', p3 = 2 '\002'}, {opcode = 127 '\177', p1 = 1 '\001', p2 = 6 '\006', p3 = 0 '\0'}, {opcode = 49 '1', 
    p1 = 0 '\0', p2 = 2 '\002', p3 = 0 '\0'}, {opcode = 84 'T', p1 = 1 '\001', p2 = 2 '\002', p3 = 1 '\001'}, {opcode = 127 '\177', p1 = 1 '\001', p2 = 6 '\006', p3 = 0 '\0'}, {
    opcode = 49 '1', p1 = 0 '\0', p2 = 1 '\001', p3 = 0 '\0'}, {opcode = 91 '[', p1 = 1 '\001', p2 = 1 '\001', p3 = 0 '\0'}}
	azModeName = {0xb7bdf67d "delete", 0xb7be021e "persist", 0xb7be0226 "off", 0xb7be022a "truncate", 0xb7bdee3a "memory"}
	setMeta6 = {{opcode = 103 'g', p1 = 0 '\0', p2 = 1 '\001', p3 = 0 '\0'}, {opcode = 112 'p', p1 = 0 '\0', p2 = 1 '\001', p3 = 3 '\003'}, {opcode = 11 '\v', p1 = 1 '\001', 
    p2 = 0 '\0', p3 = 0 '\0'}, {opcode = 40 '(', p1 = 0 '\0', p2 = 2 '\002', p3 = 0 '\0'}, {opcode = 49 '1', p1 = 0 '\0', p2 = 1 '\001', p3 = 0 '\0'}, {opcode = 4 '\004', 
    p1 = 0 '\0', p2 = 6 '\006', p3 = 1 '\001'}}
	endCode = {{opcode = 43 '+', p1 = 1 '\001', p2 = 0 '\0', p3 = 0 '\0'}, {opcode = 24 '\030', p1 = 1 '\001', p2 = 0 '\0', p3 = 0 '\0'}, {opcode = 93 ']', p1 = 0 '\0', 
    p2 = 3 '\003', p3 = 0 '\0'}, {opcode = 91 '[', p1 = 3 '\003', p2 = 1 '\001', p3 = 0 '\0'}}
	idxErr = {{opcode = 43 '+', p1 = 1 '\001', p2 = -1 '�', p3 = 0 '\0'}, {opcode = 93 ']', p1 = 0 '\0', p2 = 3 '\003', p3 = 0 '\0'}, {opcode = 41 ')', p1 = 1 '\001', 
    p2 = 4 '\004', p3 = 0 '\0'}, {opcode = 93 ']', p1 = 0 '\0', p2 = 5 '\005', p3 = 0 '\0'}, {opcode = 93 ']', p1 = 0 '\0', p2 = 6 '\006', p3 = 0 '\0'}, {opcode = 88 'X', 
    p1 = 4 '\004', p2 = 3 '\003', p3 = 3 '\003'}, {opcode = 88 'X', p1 = 5 '\005', p2 = 3 '\003', p3 = 3 '\003'}, {opcode = 88 'X', p1 = 6 '\006', p2 = 3 '\003', p3 = 3 '\003'}, {
    opcode = 91 '[', p1 = 3 '\003', p2 = 1 '\001', p3 = 0 '\0'}, {opcode = 127 '\177', p1 = 1 '\001', p2 = 0 '\0', p3 = 0 '\0'}, {opcode = 40 '(', p1 = 0 '\0', p2 = 0 '\0', 
    p3 = 0 '\0'}}
	cntIdx = {{opcode = 49 '1', p1 = 0 '\0', p2 = 3 '\003', p3 = 0 '\0'}, {opcode = 120 'x', p1 = 0 '\0', p2 = 0 '\0', p3 = 0 '\0'}, {opcode = 43 '+', p1 = 3 '\003', 
    p2 = 1 '\001', p3 = 0 '\0'}, {opcode = 107 'k', p1 = 0 '\0', p2 = 0 '\0', p3 = 0 '\0'}, {opcode = 73 'I', p1 = 2 '\002', p2 = 0 '\0', p3 = 3 '\003'}, {opcode = 43 '+', 
    p1 = 1 '\001', p2 = -1 '�', p3 = 0 '\0'}, {opcode = 93 ']', p1 = 0 '\0', p2 = 2 '\002', p3 = 0 '\0'}, {opcode = 93 ']', p1 = 0 '\0', p2 = 3 '\003', p3 = 0 '\0'}, {
    opcode = 88 'X', p1 = 3 '\003', p2 = 2 '\002', p3 = 2 '\002'}, {opcode = 91 '[', p1 = 2 '\002', p2 = 1 '\001', p3 = 0 '\0'}}
	encnames = {{zName = 0xb7be01e4 "UTF8", enc = 1 '\001'}, {zName = 0xb7be01e9 "UTF-8", enc = 1 '\001'}, {zName = 0xb7be01ef "UTF-16le", enc = 2 '\002'}, {
    zName = 0xb7be01f8 "UTF-16be", enc = 3 '\003'}, {zName = 0xb7be0201 "UTF16le", enc = 2 '\002'}, {zName = 0xb7be0209 "UTF16be", enc = 3 '\003'}, {zName = 0xb7be0211 "UTF-16", 
    enc = 0 '\0'}, {zName = 0xb7be0218 "UTF16", enc = 0 '\0'}, {zName = 0x0, enc = 0 '\0'}}
	setCookie = {{opcode = 103 'g', p1 = 0 '\0', p2 = 1 '\001', p3 = 0 '\0'}, {opcode = 49 '1', p1 = 0 '\0', p2 = 1 '\001', p3 = 0 '\0'}, {opcode = 4 '\004', p1 = 0 '\0', 
    p2 = 0 '\0', p3 = 1 '\001'}}
	readCookie = {{opcode = 112 'p', p1 = 0 '\0', p2 = 1 '\001', p3 = 0 '\0'}, {opcode = 91 '[', p1 = 1 '\001', p2 = 1 '\001', p3 = 0 '\0'}}
#10 0xb7bbbf9d in sqlite3Parser (yyp=0x8505048, yymajor=<value optimized out>, yyminor={z = 0x84c70fa "100", dyn = 0, n = 3}, pParse=0xb37fedec) at sqlite3.c:87350
	yyminorunion = {yyinit = 139227386, yy0 = {z = 0x84c70fa "100", dyn = 0, n = 3}, yy64 = {pLimit = 0x84c70fa, pOffset = 0x6}, yy122 = 0x84c70fa, yy159 = 0x84c70fa, 
  yy180 = 0x84c70fa, yy207 = {value = 139227386, mask = 6}, yy318 = {eOperator = {z = 0x84c70fa "100", dyn = 0, n = 3}, not = -1283461736}, yy327 = 0x84c70fa, yy347 = 0x84c70fa, 
  yy392 = 139227386, yy410 = {a = 139227386, b = 0x6}, yy442 = 0x84c70fa}
	yyact = <value optimized out>
#11 0xb7bc08d6 in sqlite3RunParser (pParse=0xb37fedec, zSql=0x84c70e8 "PRAGMA cache_size=100", pzErrMsg=0xb37fefa8) at sqlite3.c:88489
	nErr = <value optimized out>
	i = 21
	tokenType = 129
	lastTokenParsed = 129
	db = (sqlite3 *) 0x84e9e50
	mxSqlLen = 1000000000
#12 0xb7bc4963 in sqlite3Prepare (db=0x84e9e50, zSql=0x84c70e8 "PRAGMA cache_size=100", nBytes=-1, saveSqlFlag=0, ppStmt=0xb37ff034, pzTail=0xb37ff038) at sqlite3.c:73794
	sParse = {db = 0x84e9e50, rc = 0, zErrMsg = 0x0, pVdbe = 0x85056a8, colNamesSet = 0 '\0', nameClash = 0 '\0', checkSchema = 0 '\0', nested = 0 '\0', parseError = 0 '\0', 
  nTempReg = 0 '\0', nTempInUse = 0 '\0', aTempReg = {0, 0, 0, 0, 0, 0, 0, 0}, nRangeReg = 0, iRangeReg = 0, nErr = 0, nTab = 0, nMem = 2, nSet = 0, ckBase = 0, 
  disableColCache = 0, nColCache = 0, iColCache = 0, aColCache = {{iTable = 0, iColumn = 0, affChange = 0 '\0', iReg = 0}, {iTable = 0, iColumn = 0, affChange = 0 '\0', iReg = 0}, {
      iTable = 0, iColumn = 0, affChange = 0 '\0', iReg = 0}, {iTable = 0, iColumn = 0, affChange = 0 '\0', iReg = 0}, {iTable = 0, iColumn = 0, affChange = 0 '\0', iReg = 0}, {
      iTable = 0, iColumn = 0, affChange = 0 '\0', iReg = 0}, {iTable = 0, iColumn = 0, affChange = 0 '\0', iReg = 0}, {iTable = 0, iColumn = 0, affChange = 0 '\0', iReg = 0}, {
      iTable = 0, iColumn = 0, affChange = 0 '\0', iReg = 0}, {iTable = 0, iColumn = 0, affChange = 0 '\0', iReg = 0}}, writeMask = 0, cookieMask = 0, cookieGoto = 0, 
  cookieValue = {0 <repeats 12 times>}, nTableLock = 0, aTableLock = 0x0, regRowid = 0, regRoot = 0, nVar = 0, nVarExpr = 0, nVarExprAlloc = 0, apVarExpr = 0x0, nAlias = 0, 
  nAliasAlloc = 0, aAlias = 0x0, explain = 0 '\0', sErrToken = {z = 0x0, dyn = 0, n = 0}, sNameToken = {z = 0x0, dyn = 0, n = 0}, sLastToken = {z = 0x84c70fa "100", dyn = 0, 
    n = 3}, zSql = 0x84c70e8 "PRAGMA cache_size=100", zTail = 0x84c70e8 "PRAGMA cache_size=100", pNewTable = 0x0, pNewTrigger = 0x0, trigStack = 0x0, zAuthContext = 0x0, sArg = {
    z = 0x0, dyn = 0, n = 0}, declareVtab = 0 '\0', nVtabLock = 0, apVtabLock = 0x0, nHeight = 0, pZombieTab = 0x0}
	zErrMsg = 0x0
	rc = <value optimized out>
	i = 2
#13 0xb7bc500e in sqlite3LockAndPrepare (db=0x84e9e50, zSql=0x84c70e8 "PRAGMA cache_size=100", nBytes=-1, saveSqlFlag=0, ppStmt=0xb37ff034, pzTail=0xb37ff038) at sqlite3.c:73875
	rc = <value optimized out>
#14 0xb7bc974e in sqlite3_exec (db=0x84e9e50, zSql=0x84c70e8 "PRAGMA cache_size=100", xCallback=0, pArg=0x0, pzErrMsg=0xb37ff078) at sqlite3.c:70703
	nCol = 139370064
	azVals = (char **) 0xb6b64ff4
	rc = 0
	zLeftover = 0xb6b64ff4 "|�\025"
	pStmt = (sqlite3_stmt *) 0x0
	azCols = (char **) 0x8
	nRetry = 0
	nCallback = 1
#15 0xb7c049e0 in cdb_sql_exec (db=0x84e9e50, stmt=0x84c70e8 "PRAGMA cache_size=100", ex=0x0) at camel-db.c:432
	errmsg = 0x0
	ret = 1
#16 0xb7c051af in camel_db_command (cdb=0x84c7a68, stmt=0x84c70e8 "PRAGMA cache_size=100", ex=0x0) at camel-db.c:555
	ret = 1
#17 0xb7c0690d in camel_db_open (path=0x84e4c30 "/home/kov/.evolution/mail/imap/debian at kov.eti.br/folders.db", ex=0xb37ff204) at camel-db.c:496
	cdb = (CamelDB *) 0x84c7a68
	db = (sqlite3 *) 0x84e9e50
	cache = 0x84c70e8 "PRAGMA cache_size=100"
	ret = <value optimized out>
#18 0xb7e6f4cd in construct (service=0x84b6d10, session=0x8374478, provider=0xb41e9e20, url=0x8436380, ex=0xb37ff204) at camel-store.c:238
	store_db_path = 0x84e4c30 "/home/kov/.evolution/mail/imap/debian at kov.eti.br/folders.db"
	store_path = 0x84e4cb0 "("
#19 0xb7e5bd8a in offline_store_construct (service=0x84b6d10, session=0x8374478, provider=0xb41e9e20, url=0x8436380, ex=0xb37ff204) at camel-offline-store.c:97
No locals.
#20 0xb41e0b9d in construct (service=0x84b6d10, session=0x8374478, provider=0xb41e9e20, url=0x8436380, ex=0xb37ff204) at camel-imap-store.c:243
	summary_url = <value optimized out>
#21 0xb7e673d5 in camel_service_construct (service=0x84b6d10, session=0x8374478, provider=0xb41e9e20, url=0x8436380, ex=0xb37ff204) at camel-service.c:315
	__PRETTY_FUNCTION__ = "camel_service_construct"
#22 0xb7e68fcf in get_service (session=0x8374478, 
    url_string=0xb3800870 "imap://debian@kov.eti.br/;imap_custom_headers;filter_junk_inbox;check_all;use_ssl=when-possible;command=ssh%20-C%20-l%20%25u%20%25h%20exec%20/usr/sbin/imapd;filter_junk", type=CAMEL_PROVIDER_STORE, ex=0x83df844) at camel-session.c:198
	url = (CamelURL *) 0x8436380
	provider = (CamelProvider *) 0xb41e9e20
	service = (CamelService *) 0x84b6d10
	internal_ex = {id = CAMEL_EXCEPTION_NONE, desc = 0x0}
#23 0xb7e68724 in camel_session_get_service (session=0x8374478, 
    url_string=0xb3800870 "imap://debian@kov.eti.br/;imap_custom_headers;filter_junk_inbox;check_all;use_ssl=when-possible;command=ssh%20-C%20-l%20%25u%20%25h%20exec%20/usr/sbin/imapd;filter_junk", type=CAMEL_PROVIDER_STORE, ex=0x83df844) at camel-session.c:243
	service = <value optimized out>
	__PRETTY_FUNCTION__ = "camel_session_get_service"
#24 0xb4dac380 in get_store_exec (m=0x83df830) at mail-ops.c:1350
No locals.
#25 0xb4dab219 in mail_msg_proxy (msg=0x83df830) at mail-mt.c:520
No locals.
#26 0xb6bce496 in g_thread_pool_thread_proxy (data=0x843e9d8) at /build/buildd-glib2.0_2.20.0-2-i386-rcJiVy/glib2.0-2.20.0/glib/gthreadpool.c:265
	task = (gpointer) 0x83df830
	pool = (GRealThreadPool *) 0x843e9d8
#27 0xb6bcce2f in g_thread_create_proxy (data=0xb3800920) at /build/buildd-glib2.0_2.20.0-2-i386-rcJiVy/glib2.0-2.20.0/glib/gthread.c:635
	__PRETTY_FUNCTION__ = "g_thread_create_proxy"
#28 0xb79864e5 in start_thread () from /lib/i686/cmov/libpthread.so.0


-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.29-1-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libcamel1.2-14 depends on:
ii  libc6            2.9-6                   GNU C Library: Shared libraries
ii  libcomerr2       1.41.3-1                common error description library
ii  libedataserver1. 2.24.5-3                Utility library for evolution data
ii  libglib2.0-0     2.20.0-2                The GLib library of C routines
ii  libgssapi-krb5-2 1.6.dfsg.4~beta1-12     MIT Kerberos runtime libraries - k
ii  libk5crypto3     1.6.dfsg.4~beta1-12     MIT Kerberos runtime libraries - C
ii  libkrb5-3        1.6.dfsg.4~beta1-12     MIT Kerberos runtime libraries
ii  libnspr4-0d      4.7.1-4                 NetScape Portable Runtime Library
ii  libnss3-1d       3.12.2.with.ckbi.1.73-1 Network Security Service libraries
ii  libsqlite3-0     3.6.11-2                SQLite 3 shared library
ii  zlib1g           1:1.2.3.3.dfsg-13       compression library - runtime

libcamel1.2-14 recommends no packages.

libcamel1.2-14 suggests no packages.

-- no debconf information





More information about the Pkg-evolution-maintainers mailing list