From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Bruce Korb" Newsgroups: gmane.lisp.guile.devel Subject: how does one debug a SEGV in scm_threads_prehistory? Date: Wed, 18 Jun 2008 09:37:57 -0700 Message-ID: <668c430c0806180937g7fd824e8m7a871340d480599a@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1213807105 22409 80.91.229.12 (18 Jun 2008 16:38:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 Jun 2008 16:38:25 +0000 (UTC) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Wed Jun 18 18:39:08 2008 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1K90gW-0002p2-0p for guile-devel@m.gmane.org; Wed, 18 Jun 2008 18:39:00 +0200 Original-Received: from localhost ([127.0.0.1]:46377 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K90fh-00084Z-4h for guile-devel@m.gmane.org; Wed, 18 Jun 2008 12:38:09 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K90fe-00082B-Gk for guile-devel@gnu.org; Wed, 18 Jun 2008 12:38:06 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K90fd-00081Y-Vk for guile-devel@gnu.org; Wed, 18 Jun 2008 12:38:06 -0400 Original-Received: from [199.232.76.173] (port=54372 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K90fd-00081O-Su for guile-devel@gnu.org; Wed, 18 Jun 2008 12:38:05 -0400 Original-Received: from yx-out-1718.google.com ([74.125.44.155]:13939) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K90fd-0006Iq-1c for guile-devel@gnu.org; Wed, 18 Jun 2008 12:38:05 -0400 Original-Received: by yx-out-1718.google.com with SMTP id 34so66122yxf.66 for ; Wed, 18 Jun 2008 09:38:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:mime-version:content-type:content-transfer-encoding :content-disposition:x-google-sender-auth; bh=Tlrll+Q2N7SXVvzn+iQOXj5En+W7/eS9BVhBwIaKafE=; b=IrjYCxxcxEsuIxfpC3HHWBJptLh02KwYJsNKI5D4C9HF7qZHyHSVkQDcRUoOAbsrOe g3kASdDvBkjrE+mXGlHy/ysyaH3mblyISyKcXPGNtXNLMuGyGGWX6JaBQCnx5pznNEN/ IJ1P9OMrCF3wAPoQ5zbIYdmritZTxFsHRL7qc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition:x-google-sender-auth; b=YMXMceeal6t/sY2fBrHVqsEUg6h0z299PFvbOrPaLDgp3U9KsKnLNaKb99RTmzVvLw pc6tfsZjB2yt6lq/3WyyUwp65k9AlCrfnDDZ0RcpykiFk9h9eZrgfmTjzxuGvGx9g3I6 IQNPy+XkGXexSbkcrtwlS2DEkr/rassWdcjys= Original-Received: by 10.150.52.2 with SMTP id z2mr1382313ybz.47.1213807077935; Wed, 18 Jun 2008 09:37:57 -0700 (PDT) Original-Received: by 10.150.57.4 with HTTP; Wed, 18 Jun 2008 09:37:57 -0700 (PDT) Content-Disposition: inline X-Google-Sender-Auth: 49ac7e77a5a31250 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:7329 Archived-At: Our main development server was "upgraded" to 64 bits, but mostly still runs 32 bit software, so this is from a 32 bit build on a 64 bit platform. Naturally, this all works on 32 on 32 and on 64 on 64. But with 32 on 64, not so well: Program received signal SIGSEGV, Segmentation fault. 0xb7f482fe in scm_threads_prehistory () from /usr/lib/libguile.so.17 (gdb) bt #0 0xb7f482fe in scm_threads_prehistory () from /usr/lib/libguile.so.17 #1 0xb7f4834b in scm_i_thread_sleep_for_gc () from /usr/lib/libguile.so.17 #2 0xb7f48375 in scm_i_thread_put_to_sleep () from /usr/lib/libguile.so.17 #3 0xb7f2f3e4 in scm_i_string_writable_chars () from /usr/lib/libguile.so.17 #4 0xb7f2f53d in scm_c_string_set_x () from /usr/lib/libguile.so.17 #5 0xb7f23839 in scm_read_token () from /usr/lib/libguile.so.17 #6 0xb7f23fcc in scm_lreadr () from /usr/lib/libguile.so.17 #7 0xb7f23c87 in scm_lreadrecparen () from /usr/lib/libguile.so.17 #8 0xb7f245d8 in scm_lreadr () from /usr/lib/libguile.so.17 #9 0xb7f23cfd in scm_lreadrecparen () from /usr/lib/libguile.so.17 #10 0xb7f245d8 in scm_lreadr () from /usr/lib/libguile.so.17 #11 0xb7f24c43 in scm_read () from /usr/lib/libguile.so.17 #12 0x08056634 in ag_scm_c_eval_string_from_file_line ( pzExpr=0x8075ce0 "(if (> (string-length shell-cleanup) 0) (shell shell-cleanup) )", pzFile=0x8075cc8 "../../agen5/autogen.c", line=237) at ../../agen5/expGuile.c:113 #13 0x0804e03c in doneCheck () at ../../agen5/autogen.c:236 #14 0xb7d053b0 in exit () from /lib/tls/i686/cmov/libc.so.6 #15 0x0804dd56 in inner_main (argc=4, argv=0xbfb38274) at ../../agen5/autogen.c:90 #16 0xb7ef9f72 in gh_enter () from /usr/lib/libguile.so.17 #17 0xb7f06224 in scm_boot_guile () from /usr/lib/libguile.so.17 #18 0xb7ed8bc2 in scm_char_upcase () from /usr/lib/libguile.so.17 #19 0xb7f4a025 in scm_c_catch () from /usr/lib/libguile.so.17 #20 0xb7ed9107 in scm_i_with_continuation_barrier () from /usr/lib/libguile.so.17 #21 0xb7ed91e1 in scm_c_with_continuation_barrier () from /usr/lib/libguile.so.17 #22 0xb7f49309 in scm_i_with_guile_and_parent () from /usr/lib/libguile.so.17 #23 0xb7f4935e in scm_with_guile () from /usr/lib/libguile.so.17 #24 0xb7f061bf in scm_boot_guile () from /usr/lib/libguile.so.17 #25 0xb7ef9f45 in gh_enter () from /usr/lib/libguile.so.17 #26 0x0804de00 in main (argc=4, argv=0xbfb38274) at ../../agen5/autogen.c:115