From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bake Timmons Newsgroups: gmane.lisp.guile.bugs Subject: bug#9829: [bug #34616] Segfault when building against debug version of bdw-gc (patch offered) Date: Sat, 22 Oct 2011 03:48:59 +0000 Message-ID: <20111022-034858.sv66629.51424@savannah.gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain;charset=UTF-8 X-Trace: dough.gmane.org 1319254915 28344 80.91.229.12 (22 Oct 2011 03:41:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 22 Oct 2011 03:41:55 +0000 (UTC) To: b3timmons@speedymail.org, 9829@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Sat Oct 22 05:41:51 2011 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RHST0-0005i5-MD for guile-bugs@m.gmane.org; Sat, 22 Oct 2011 05:41:51 +0200 Original-Received: from localhost ([::1]:46618 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RHST0-0008SV-8N for guile-bugs@m.gmane.org; Fri, 21 Oct 2011 23:41:50 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:58580) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RHSSx-0008R8-10 for bug-guile@gnu.org; Fri, 21 Oct 2011 23:41:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RHSSv-0005Bw-Kl for bug-guile@gnu.org; Fri, 21 Oct 2011 23:41:46 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57230) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RHSSv-0005Bp-Dw for bug-guile@gnu.org; Fri, 21 Oct 2011 23:41:45 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RHSUA-0000wl-JW for bug-guile@gnu.org; Fri, 21 Oct 2011 23:43:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Bake Timmons Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-guile@gnu.org Resent-Date: Sat, 22 Oct 2011 03:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 9829 X-GNU-PR-Package: guile X-GNU-PR-Keywords: X-Debbugs-Original-To: Bake Timmons , bug-guile@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.13192549293578 (code B ref -1); Sat, 22 Oct 2011 03:43:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 22 Oct 2011 03:42:09 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RHSTJ-0000ve-0P for submit@debbugs.gnu.org; Fri, 21 Oct 2011 23:42:09 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RHSTF-0000v9-HL for submit@debbugs.gnu.org; Fri, 21 Oct 2011 23:42:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RHSRt-00053f-Kq for submit@debbugs.gnu.org; Fri, 21 Oct 2011 23:40:42 -0400 Original-Received: from lists.gnu.org ([140.186.70.17]:39463) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RHSRt-00053b-J5 for submit@debbugs.gnu.org; Fri, 21 Oct 2011 23:40:41 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:58164) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RHSRs-000876-6B for bug-guile@gnu.org; Fri, 21 Oct 2011 23:40:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RHSRq-000535-KB for bug-guile@gnu.org; Fri, 21 Oct 2011 23:40:40 -0400 Original-Received: from savannah.gnu.org ([140.186.70.70]:34508 helo=frontend.savannah.gnu.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RHSRq-00052w-GW for bug-guile@gnu.org; Fri, 21 Oct 2011 23:40:38 -0400 Original-Received: from www-data by frontend.savannah.gnu.org with local (Exim 4.72) (envelope-from ) id 1RHSZv-0004Dj-6t; Sat, 22 Oct 2011 03:48:59 +0000 X-PHP-Originating-Script: 0:sendmail.php X-Savane-Server: savannah.gnu.org:80 [140.186.70.70] X-Savane-Project: guile X-Savane-Tracker: bugs X-Savane-Item-ID: 34616 User-Agent: w3m/0.5.3 X-Apparently-From: 4.248.249.80 (Savane authenticated user bt3) Original-References: In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 21 Oct 2011 23:43:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:5871 Archived-At: URL: Summary: Segfault when building against debug version of bdw-gc (patch offered) Project: Guile Submitted by: bt3 Submitted on: Sat 22 Oct 2011 03:48:58 AM GMT Category: None Severity: 3 - Normal Item Group: None Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any _______________________________________________________ Details: After installing a debugging version of bdwgc, I tried installing Guile from trunk. After running autogen.sh and configure, I added #define GC_DEBUG 1 to config.h Running make resulted in /bin/bash: line 1: 8365 Broken pipe cat alist.doc arbiters.doc array-handle.doc array-map.doc arrays.doc async.doc backtrace.doc boolean.doc bitvectors.doc bytevectors.doc chars.doc control.doc continuations.doc debug.doc deprecated.doc deprecation.doc dynl.doc dynwind.doc eq.doc error.doc eval.doc evalext.doc expand.doc extensions.doc feature.doc filesys.doc fluids.doc foreign.doc fports.doc gc-malloc.doc gc.doc gettext.doc generalized-arrays.doc generalized-vectors.doc goops.doc gsubr.doc guardians.doc hash.doc hashtab.doc hooks.doc i18n.doc init.doc ioext.doc keywords.doc list.doc load.doc macros.doc mallocs.doc memoize.doc modules.doc numbers.doc objprop.doc options.doc pairs.doc ports.doc print.doc procprop.doc procs.doc promises.doc r6rs-ports.doc random.doc rdelim.doc read.doc root.doc rw.doc scmsigs.doc script.doc simpos.doc smob.doc sort.doc srcprop.doc srfi-1.doc srfi-4.doc srfi-13.doc srfi-14.doc srfi-60.doc stackchk.doc stacks.doc stime.doc strings.doc strorder.doc strports.doc struct.doc symbols.doc threads.doc throw.doc trees.doc uniform.doc values.doc variable.doc vectors.doc version.doc vports.doc weaks.doc dynl.doc posix.doc net_db.doc socket.doc regex-posix.doc 8366 Segmentation fault | GUILE_AUTO_COMPILE=0 ../meta/uninstalled-env guild snarf-check-and-output-texi > guile-procedures.texi make[3]: *** [guile-procedures.texi] Error 1 The backtrace of running meta/gdb-uninstalled-guile : (gdb) bt #0 0x00000000 in ?? () #1 0xb7f471d8 in scm_c_get_internal_run_time () at stime.c:269 #2 0xb7ee5111 in start_gc_timer (hook_data=, fn_data=, data=) at gc.c:717 #3 start_gc_timer (hook_data=0x0, fn_data=0x0, data=0x0) at gc.c:712 #4 0xb7ef2c73 in scm_c_hook_run (hook=0xb7fdc5fc, data=0x0) at hooks.c:103 #5 0xb7ee4dc8 in run_before_gc_c_hook () at gc.c:204 #6 0xb7c8d63e in GC_notify_full_gc () at alloc.c:334 #7 0xb7c8d848 in GC_try_to_collect_inner (stop_func=0xb7c8d1ae ) at alloc.c:429 #8 0xb7c8eb6e in GC_collect_or_expand (needed_blocks=1, ignore_off_page=0, retry=0) at alloc.c:1215 #9 0xb7c8ee57 in GC_allocobj (gran=9, kind=1) at alloc.c:1302 #10 0xb7c94cca in GC_generic_malloc_inner (lb=72, k=1) at malloc.c:121 #11 0xb7c9031f in GC_debug_generic_malloc_inner (lb=12, k=1) at dbg_mlc.c:526 #12 0xb7c91d96 in GC_general_register_disappearing_link (link=0x813db50, obj=0x8146a00) at finalize.c:175 #13 0xb7f6c6e8 in scm_weak_car_pair (car=0x8146a38, cdr=0x904) at weaks.c:66 #14 0xb7ef0a5d in scm_hash_fn_create_handle_x (table=0x80c2fd8, obj=0x8146a38, init=0x904, hash_fn=0xb7f4fc40 , assoc_fn=0xb7f50390 , closure=0x0) at hashtab.c:720 #15 0xb7f4fd8f in intern_symbol (symbol=0x8146a38) at symbols.c:195 #16 scm_i_str2symbol (str=0xb7fbf1c0) at symbols.c:218 #17 0xb7f702fc in scm_init_posix () at ../libguile/posix.x:47 #18 0xb7ef64ff in scm_i_init_guile (base=0xbffff418) at init.c:454 #19 0xb7f51e88 in scm_i_init_thread_for_guile (base=0xbffff418, parent=) at threads.c:795 #20 scm_i_init_thread_for_guile (base=0xbffff418, parent=0x0) at threads.c:774 #21 0xb7f51ed8 in with_guile_and_parent (base=0xbffff418, data=0xbffff444) at threads.c:861 #22 0xb7c9b1f6 in GC_call_with_stack_base (fn=0xb7f51eb0 , arg=0xbffff444) at misc.c:1535 #23 0xb7f51863 in scm_i_with_guile_and_parent (func=, data=, parent=0x0) at threads.c:911 #24 0xb7ef635f in scm_boot_guile (argc=1, argv=0xbffff554, main_func=0x8048790 , closure=0x0) at init.c:319 #25 0x0804870b in main (argc=1, argv=0xbffff554) at guile.c:70 scm_c_get_internal_run_time tries to run get_internal_run_time before get_internal_run_time has been initialized w/ a value (a pointer to a function). There is no crash after moving the scm_init_stime call in init.c to run before the scm_init_posix call. Further (standard, non-debugging) builds of Guile trunk have also succeeded after moving up the scm_init_stime call in init.c . _______________________________________________________ File Attachments: ------------------------------------------------------- Date: Sat 22 Oct 2011 03:48:58 AM GMT Name: guile-gc-debug-patch Size: 652B By: bt3 Patch and commit message attached ------------------------------------------------------- Date: Sat 22 Oct 2011 03:48:58 AM GMT Name: guile-gc-debug-patch.log Size: 295B By: bt3 Patch and commit message attached _______________________________________________________ Reply to this item at: _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/