From unknown Sun Aug 17 09:10:44 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#9829 <9829@debbugs.gnu.org> To: bug#9829 <9829@debbugs.gnu.org> Subject: Status: [bug #34616] Segfault when building against debug version of bdw-gc (patch offered) Reply-To: bug#9829 <9829@debbugs.gnu.org> Date: Sun, 17 Aug 2025 16:10:44 +0000 retitle 9829 [bug #34616] Segfault when building against debug version of b= dw-gc (patch offered) reassign 9829 guile submitter 9829 Bake Timmons severity 9829 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 21 23:42:09 2011 Received: (at submit) by debbugs.gnu.org; 22 Oct 2011 03:42:09 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: ** X-Spam-Status: No, score=2.8 required=5.0 tests=BAYES_00,HELO_NO_DOMAIN, HS_INDEX_PARAM,RCVD_IN_PBL,RCVD_IN_SORBS_DUL,RDNS_NONE autolearn=no version=3.3.1 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 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 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 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 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 Date: Sat, 22 Oct 2011 03:48:59 +0000 To: Bake Timmons , bug-guile@gnu.org Subject: [bug #34616] Segfault when building against debug version of bdw-gc (patch offered) X-PHP-Originating-Script: 0:sendmail.php From: Bake Timmons X-Savane-Server: savannah.gnu.org:80 [140.186.70.70] MIME-Version: 1.0 Content-Type: text/plain;charset=UTF-8 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) Message-Id: <20111022-034858.sv66629.51424@savannah.gnu.org> 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-Received-From: 140.186.70.17 X-Spam-Score: -6.6 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) 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/ From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 10 16:13:52 2013 Received: (at 9829-close) by debbugs.gnu.org; 10 Mar 2013 20:13:52 +0000 Received: from localhost ([127.0.0.1]:44421 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UEmcu-0005T3-FY for submit@debbugs.gnu.org; Sun, 10 Mar 2013 16:13:52 -0400 Received: from a-pb-sasl-quonix.pobox.com ([208.72.237.25]:40641 helo=sasl.smtp.pobox.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UEmcr-0005Su-Mk for 9829-close@debbugs.gnu.org; Sun, 10 Mar 2013 16:13:46 -0400 Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 8D224BC4C for <9829-close@debbugs.gnu.org>; Sun, 10 Mar 2013 16:12:54 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=sasl; bh=GpLahKVD5jUB vlgBbf829sjn5sc=; b=h0aXbIljimKgzcTAjhGN5AsP560PK/fWAr6/sbvAIofw 00qGeYlnjhzww23mdwf8IO/nZiee2B/TF8karYi7VEvwJIaNFU7YFEBtT40F189m v+G37SiXalem30/MwSfYVUeqPF4cFMllIJRG6lZz1PyphgXHyPRyNU7As3d3Ers= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:subject :references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; q=dns; s=sasl; b=igmmb+ yMjeYZNXetK1KD6/rv5SiAu79uFeQHNoPzXR92Oe2HOreHEm/+UWYCbbEDHGZYKv gVWYpZOF0I8gAe1CPlWIH1vaEx1jdMnlwGdmgQbGqj4wPqcFAzbrpWrwzd0GtSKd otQATDcD2VAOe94XFPIXnIlqLx9MNy+OMFqwY= Received: from a-pb-sasl-quonix.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 8682DBC4B for <9829-close@debbugs.gnu.org>; Sun, 10 Mar 2013 16:12:54 -0400 (EDT) Received: from badger (unknown [88.160.190.192]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id 0A744BC4A for <9829-close@debbugs.gnu.org>; Sun, 10 Mar 2013 16:12:53 -0400 (EDT) From: Andy Wingo To: 9829-close@debbugs.gnu.org Subject: Re: bug#9829: [bug #34616] Segfault when building against debug version of bdw-gc (patch offered) References: <20111022-034858.sv66629.51424@savannah.gnu.org> Date: Sun, 10 Mar 2013 21:12:51 +0100 In-Reply-To: <20111022-034858.sv66629.51424@savannah.gnu.org> (Bake Timmons's message of "Sat, 22 Oct 2011 03:48:59 +0000") Message-ID: <87oberui7w.fsf@pobox.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Pobox-Relay-ID: E44EF92E-89BE-11E2-843D-59240E5B5709-02397024!a-pb-sasl-quonix.pobox.com X-Spam-Score: -2.4 (--) X-Debbugs-Envelope-To: 9829-close X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.3 (----) This was fixed and closed in the savannah bug tracker: commit 80fc43f2cf12c7a21a0533cc84e91059ef9d8170 Author: Ludovic Court=C3=A8s Date: Sat Oct 22 13:25:11 2011 +0200 Initialize `get_internal_run_time' before it is used. =20=20=20=20 * libguile/init.c (scm_i_init_guile): Call `scm_init_stime' before `scm_init_gc'. Fixes reported by Bake Timmons. --=20 http://wingolog.org/ From unknown Sun Aug 17 09:10:44 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 08 Apr 2013 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator