From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 039B1431FD0 for ; Thu, 29 Dec 2011 16:57:29 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.799 X-Spam-Level: X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FUSPuI-FfdtP for ; Thu, 29 Dec 2011 16:57:28 -0800 (PST) Received: from mail-tul01m020-f181.google.com (mail-tul01m020-f181.google.com [209.85.214.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 62F95431FB6 for ; Thu, 29 Dec 2011 16:57:28 -0800 (PST) Received: by obbup6 with SMTP id up6so11549735obb.26 for ; Thu, 29 Dec 2011 16:57:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=wzxpweb9134wHq1ywIP91AFu35cgxpuaLjNKZqPWFew=; b=i4pICZ+OZKw1MHsPt+4E1wiSU1wDega6cCIi2zG7n38Fq3OjcVOv1SX7kjqwph0xxa 6HVpvg5GBm1BCDqV+DJz5a/1re+saCPFiKTL8EXPnKG/FZL/xarI1keC6EhK/llqmM+V ABso1Np9JfBkL8vlP33UyOVvDN7hIjVC3Xa6c= MIME-Version: 1.0 Received: by 10.182.167.36 with SMTP id zl4mr28095577obb.54.1325206647891; Thu, 29 Dec 2011 16:57:27 -0800 (PST) Received: by 10.182.137.9 with HTTP; Thu, 29 Dec 2011 16:57:27 -0800 (PST) Date: Thu, 29 Dec 2011 22:57:27 -0200 Message-ID: Subject: Segmentation fault at gmime-iconv with python binding From: Kazuo Teramoto To: notmuch@notmuchmail.org Content-Type: multipart/mixed; boundary=e89a8f83972f80650404b544b781 X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Dec 2011 00:57:29 -0000 --e89a8f83972f80650404b544b781 Content-Type: text/plain; charset=UTF-8 Hi! When I try to run the attached test.py after adding the attached email (4EFC743A.3060609_april.org) to notmuch db I got a segmentation fault (gdb bt attached). This is what I think a relevant part of it: ~~~~~~~~ (gdb) frame 1 #1 0x00007ffff5f2759c in g_mime_iconv_open (to=0x761ef0 "UTF-8", from=0x83d590 "iso-8859-1") at gmime-iconv.c:261 261 if ((node = (IconvCacheNode *) cache_node_lookup (iconv_cache, key, TRUE))) { (gdb) list 256 key = g_alloca (strlen (from) + strlen (to) + 2); 257 sprintf (key, "%s:%s", from, to); 258 259 ICONV_CACHE_LOCK (); 260 261 if ((node = (IconvCacheNode *) cache_node_lookup (iconv_cache, key, TRUE))) { 262 if (node->used) { 263 if ((cd = iconv_open (to, from)) == (iconv_t) -1) 264 goto exception; 265 } else { (gdb) print iconv_cache $1 = (Cache *) 0x0 (gdb) ~~~~~~~~ iconv_cache is initialized in g_mime_iconv_init() that is called by g_mime_init(). notmuch CLI show the message correct. I know nothing about gmime or notmuch code, but can this be the case of the python bindings not calling g_mime_init() correctly? Regards, Kazuo Teramoto --e89a8f83972f80650404b544b781 Content-Type: text/x-python; charset=US-ASCII; name="test.py" Content-Disposition: attachment; filename="test.py" Content-Transfer-Encoding: base64 X-Attachment-Id: f_gwshrcwg0 IyEvdXNyL2Jpbi9lbnYgcHl0aG9uMgppbXBvcnQgbm90bXVjaApkYiA9IG5vdG11Y2guRGF0YWJh c2UobW9kZT1ub3RtdWNoLkRhdGFiYXNlLk1PREUuUkVBRF9XUklURSkKcV9uZXcgPSBub3RtdWNo LlF1ZXJ5KGRiLCAnaWQ6IjRFRkM3NDNBLjMwNjA2MDlAYXByaWwub3JnIicpCmZvciB0IGluIHFf bmV3LnNlYXJjaF90aHJlYWRzKCk6CiAgICBwYXNzCg== --e89a8f83972f80650404b544b781 Content-Type: application/vnd.lotus-organizer; name="4EFC743A.3060609_april.org" Content-Disposition: attachment; filename="4EFC743A.3060609_april.org" Content-Transfer-Encoding: base64 X-Attachment-Id: f_gwshroqq1 TWVzc2FnZS1JRDogPDRFRkM3NDNBLjMwNjA2MDlAYXByaWwub3JnPgpEYXRlOiBUaHUsIDI5IERl YyAyMDExIDE1OjA3OjU0ICswMTAwCkZyb206ICI9P0lTTy04ODU5LTE/UT9GcmFuPUU3b2lzX0Jv dWxvZ25lPz0iIDxib3Vsb2duZS5mQGdtYWlsLmNvbT4KVXNlci1BZ2VudDogTW96aWxsYS81LjAg KFgxMTsgTGludXggaTY4NjsKIHJ2OjkuMCkgR2Vja28vMjAxMTEyMjQgVGh1bmRlcmJpcmQvOS4w LjEKTUlNRS1WZXJzaW9uOiAxLjAKVG86IEFsbGFuIE1jUmFlIDxhbGxhbkBhcmNobGludXgub3Jn PiwgCiAiRGlzY3Vzc2lvbiBhYm91dCB0aGUgQXJjaCBVc2VyIFJlcG9zaXRvcnkgKEFVUikiIDxh dXItZ2VuZXJhbEBhcmNobGludXgub3JnPgpSZWZlcmVuY2VzOiA8NEVGQzM5MzEuNjAzMDAwN0Bh cHJpbC5vcmc+IDw0RUZDM0Q2Mi40MDMwMjAyQGFyY2hsaW51eC5vcmc+CkluLVJlcGx5LVRvOiA8 NEVGQzNENjIuNDAzMDIwMkBhcmNobGludXgub3JnPgpDb250ZW50LVR5cGU6IHRleHQvcGxhaW47 IGNoYXJzZXQ9SVNPLTg4NTktMQpDb250ZW50LVRyYW5zZmVyLUVuY29kaW5nOiA4Yml0ClN1Ympl Y3Q6IFJlOiBbYXVyLWdlbmVyYWxdIEd1aWRlbGluZXM6IGNwLCBta2RpciB2cyBpbnN0YWxsCgpM ZSAyOS8xMi8yMDExIDExOjEzLCBBbGxhbiBNY1JhZSBhIOljcml0IDoKPiBPbiAyOS8xMi8xMSAx OTo1NiwgRnJhbudvaXMgQm91bG9nbmUgd3JvdGU6Cj4+IEhpLAo+Pgo+PiBMb29raW5nIHRvIGlt cHJvdmUgdGhlIHF1YWxpdHkgb2YgbXkgcGFja2FnZXMsIEkgcmVhZCBhZ2FpbiB0aGUgZ3VpZGVs aW5lcy4KPj4gaHR0cHM6Ly93aWtpLmFyY2hsaW51eC5vcmcvaW5kZXgucGhwL0FyY2hfUGFja2Fn aW5nX1N0YW5kYXJkcwo+Pgo+PiBIb3dldmVyLCBpdCBkb24ndCBzZWUgYW55dGhpbmcgYWJvdXQg dGhlIGluc3RhbGwgY29tbWFuZCBsaWtlCj4+IGluc3RhbGwgLWQgJHBrZ2Rpci91c3Ive2Jpbixz aGFyZS9tYW4vbWFuMSxzaGFyZS9sb2NhbGV9Cj4+Cj4+IFNvbWUgY29udHJpYnV0b3JzIG9uIEFV UiB1c2UgY3Agb3IgbWtkaXIgdG8gaW5zdGFsbCBmaWxlcy9kaXIgKHdoZW4gbm8KPj4gbWFrZWZp bGUgaXMgcHJvdmlkZWQpIGFuZCBvdGhlcnMgdXNlIGluc3RhbGwgY29tbWFuZC4KPj4KPj4gV2hh dCdzIHRoZSBvcGluaW9uIG9mIFRVIG9uIHRoaXMgcG9pbnQ/Cj4+Cj4gCj4gVXNlIGluc3RhbGwg d2l0aCAtbSBzcGVjaWZ5aW5nIHRoZSBjb3JyZWN0IHBlcm1pc3Npb25zCj4gCgpUaGFuayB5b3Ug QWxsYW4KCgotLSAKRnJhbudvaXMgQm91bG9nbmUuCmh0dHBzOi8vd3d3LnNjaXVudG8ub3JnCg== --e89a8f83972f80650404b544b781 Content-Type: application/octet-stream; name="notmuch_py_gmime.gdb_bt" Content-Disposition: attachment; filename="notmuch_py_gmime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