From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Linas Vepstas Newsgroups: gmane.lisp.guile.bugs Subject: bug#19180: vacuum_weak_hash_table error Date: Wed, 3 Dec 2014 22:46:25 +0000 (UTC) Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1417649309 9552 80.91.229.3 (3 Dec 2014 23:28:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 3 Dec 2014 23:28:29 +0000 (UTC) To: 19180@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Thu Dec 04 00:28:22 2014 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XwJLJ-000258-JT for guile-bugs@m.gmane.org; Thu, 04 Dec 2014 00:28:21 +0100 Original-Received: from localhost ([::1]:43831 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XwJLJ-0007q5-7I for guile-bugs@m.gmane.org; Wed, 03 Dec 2014 18:28:21 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58258) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XwJL8-0007px-Je for bug-guile@gnu.org; Wed, 03 Dec 2014 18:28:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XwJL0-0007yi-Eo for bug-guile@gnu.org; Wed, 03 Dec 2014 18:28:10 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55867) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XwJL0-0007yc-B9 for bug-guile@gnu.org; Wed, 03 Dec 2014 18:28:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XwJL0-0002Rt-0E for bug-guile@gnu.org; Wed, 03 Dec 2014 18:28:02 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Linas Vepstas Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Wed, 03 Dec 2014 23:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19180 X-GNU-PR-Package: guile X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-guile@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.14176492669390 (code B ref -1); Wed, 03 Dec 2014 23:28:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 3 Dec 2014 23:27:46 +0000 Original-Received: from localhost ([127.0.0.1]:53080 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XwJKj-0002RN-FQ for submit@debbugs.gnu.org; Wed, 03 Dec 2014 18:27:46 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:47392) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XwIkf-0001Xx-Ji for submit@debbugs.gnu.org; Wed, 03 Dec 2014 17:50:30 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XwIkW-0003cB-T2 for submit@debbugs.gnu.org; Wed, 03 Dec 2014 17:50:29 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:39723) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XwIkW-0003bq-Px for submit@debbugs.gnu.org; Wed, 03 Dec 2014 17:50:20 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49064) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XwIkQ-0001bA-1q for bug-guile@gnu.org; Wed, 03 Dec 2014 17:50:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XwIkJ-0003L3-AC for bug-guile@gnu.org; Wed, 03 Dec 2014 17:50:13 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:57665) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XwIkJ-0003H5-3v for bug-guile@gnu.org; Wed, 03 Dec 2014 17:50:07 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XwIkH-00071r-A3 for bug-guile@gnu.org; Wed, 03 Dec 2014 23:50:05 +0100 Original-Received: from www.linas.org ([67.198.37.16]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 03 Dec 2014 23:50:05 +0100 Original-Received: from linasvepstas by www.linas.org with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 03 Dec 2014 23:50:05 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 70 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 67.198.37.16 (Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/38.0.2125.111 Chrome/38.0.2125.111 Safari/537.36) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Mailman-Approved-At: Wed, 03 Dec 2014 18:27:43 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:7659 Archived-At: Anand Mohanadoss gmail.com> writes: > > Hi,We have observed the following error a few times with guile 2.0.11 (32-bit) on x86_64 Linux while processing large binary files (1.5GB+) and comparing messages contained therein.  fish: hashtab.c:137: vacuum_weak_hash_table: Assertion `removed <= len' failed.  I'm seeing the same bug, intermittently, in a unit test. The unit test creates a dozen c++ threads, tries to enter guile in each, and then tries to do racey things. It pounds away at it for 50 seconds, passes, and then maybe 1-of-5 times crashes when calling destructors to shut everything down, including guile. fwiw, this is with stock unmodified guile-2.0.9 as shipped with linux mint qiana 17 (same as ubuntu 14.04) I'm attaching a stack trace here. Ludovic, I will try your patch, might take me a few days. -- Linas #0 0x00007ffff69a7bb9 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56 #1 0x00007ffff69aafc8 in __GI_abort () at abort.c:89 #2 0x00007ffff69a0a76 in __assert_fail_base ( fmt=0x7ffff6af2370 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x7ffff50e0482 "removed <= len", file=file@entry=0x7ffff50e0478 "hashtab.c", line=line@entry=137, function=function@entry=0x7ffff50e0ba0 "vacuum_weak_hash_table") at assert.c:92 #3 0x00007ffff69a0b22 in __GI___assert_fail ( assertion=0x7ffff50e0482 "removed <= len", file=0x7ffff50e0478 "hashtab.c", line=137, function=0x7ffff50e0ba0 "vacuum_weak_hash_table") at assert.c:101 #4 0x00007ffff504dd4f in ?? () from /usr/lib/libguile-2.0.so.22 #5 0x00007ffff504de02 in ?? () from /usr/lib/libguile-2.0.so.22 #6 0x00007ffff505056c in scm_c_hook_run () from /usr/lib/libguile- 2.0.so.22 #7 0x00007ffff3dcfc65 in GC_try_to_collect_inner () from /usr/lib/x86_64-linux-gnu/libgc.so.1 #8 0x00007ffff3dcfedc in GC_try_to_collect_general () from /usr/lib/x86_64-linux-gnu/libgc.so.1 #9 0x00007ffff3dcffad in GC_gcollect () from /usr/lib/x86_64-linux- gnu/libgc.so.1 #10 0x00007ffff50440c9 in scm_gc () from /usr/lib/libguile-2.0.so.22 #11 0x00007ffff76be8c9 in opencog::SchemeEval::c_wrap_finish (p=0x80abe0) at /home/linas/src/novamente/src/opencog- git/opencog/guile/SchemeEval.cc:119 #12 0x00007ffff502d2ca in ?? () from /usr/lib/libguile-2.0.so.22 #13 0x00007ffff50bec00 in ?? () from /usr/lib/libguile-2.0.so.22 #14 0x00007ffff5036863 in scm_call_4 () from /usr/lib/libguile-2.0.so.22 #15 0x00007ffff502d9ff in ?? () from /usr/lib/libguile-2.0.so.22 #16 0x00007ffff502da95 in scm_c_with_continuation_barrier () from /usr/lib/libguile-2.0.so.22 #17 0x00007ffff3ddf950 in GC_call_with_gc_active () from /usr/lib/x86_64-linux-gnu/libgc.so.1 #18 0x00007ffff50a67d1 in ?? () from /usr/lib/libguile-2.0.so.22 #19 0x00007ffff3dd9fe2 in GC_call_with_stack_base () from /usr/lib/x86_64-linux-gnu/libgc.so.1 #20 0x00007ffff50a6b48 in scm_with_guile () from /usr/lib/libguile- 2.0.so.22 #21 0x00007ffff76be568 in opencog::SchemeEval::~SchemeEval (this=0x80abe0, __in_chrg=) at /home/linas/src/novamente/src/opencog- git/opencog/guile/SchemeEval.cc:273