From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: dsmich@roadrunner.com Newsgroups: gmane.lisp.guile.bugs Subject: bug#40737: Segfault in arm gcc7, thumb2 builroot, with arm patch Date: Thu, 18 Jun 2020 13:49:35 +0000 Message-ID: References: <3583c04a12981cebf9a014b71c2d6f1a27b851af@webmail> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=_f86e5d52d35d2de1ac37001d83e1a740" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="73906"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "'40737@debbugs.gnu.org'" <40737@debbugs.gnu.org> To: "'Ludovic =?UTF-8?Q?Court=C3=A8s'?=" Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Thu Jun 18 15:51:33 2020 Return-path: Envelope-to: guile-bugs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jlux2-000J6h-Rp for guile-bugs@m.gmane-mx.org; Thu, 18 Jun 2020 15:51:32 +0200 Original-Received: from localhost ([::1]:55482 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jlux1-0005cs-QY for guile-bugs@m.gmane-mx.org; Thu, 18 Jun 2020 09:51:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50992) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jluva-0004Cr-N9 for bug-guile@gnu.org; Thu, 18 Jun 2020 09:50:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41687) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jluva-0002z7-Ef for bug-guile@gnu.org; Thu, 18 Jun 2020 09:50:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jluva-0001zI-7x for bug-guile@gnu.org; Thu, 18 Jun 2020 09:50:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <3583c04a12981cebf9a014b71c2d6f1a27b851af@webmail> Resent-From: dsmich@roadrunner.com Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Thu, 18 Jun 2020 13:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40737 X-GNU-PR-Package: guile Original-Received: via spool by 40737-submit@debbugs.gnu.org id=B40737.15924881867612 (code B ref 40737); Thu, 18 Jun 2020 13:50:02 +0000 Original-Received: (at 40737) by debbugs.gnu.org; 18 Jun 2020 13:49:46 +0000 Original-Received: from localhost ([127.0.0.1]:53233 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jluvK-0001yh-Er for submit@debbugs.gnu.org; Thu, 18 Jun 2020 09:49:46 -0400 Original-Received: from p-impout002aa.msg.pkvw.co.charter.net ([47.43.26.133]:57037 helo=p-impout001.msg.pkvw.co.charter.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jluvF-0001yP-Mx for 40737@debbugs.gnu.org; Thu, 18 Jun 2020 09:49:45 -0400 Original-Received: from localhost ([54.243.7.172]) by cmsmtp with ESMTP id luv9jvql1v4w0luv9j146f; Thu, 18 Jun 2020 13:49:36 +0000 X-Authority-Analysis: v=2.3 cv=KaesTjQD c=1 sm=1 tr=0 a=ZhHbwgLlxfPm5G22ibXkng==:117 a=ZhHbwgLlxfPm5G22ibXkng==:17 a=dSg6v7tjMxUA:10 a=doupyKFmAAAA:8 a=mDV3o1hIAAAA:8 a=Yn_N38yXIQDShd9jBFkA:9 a=QEXdDO2ut3YA:10 a=7kCnHHfGwKojwe8DNmgA:9 a=Oh0tMjyWgGnpxlAF:21 a=_W_S_7VecoQA:10 a=PnVOTTmvsOeot2Fdb9eX:22 a=_FVE-zBwftR9WsbkzFJk:22 X-Mailer: Atmail X-Originating-IP: [65.185.85.154] X-Priority: 3 Importance: Normal X-MSMail-Priority: Normal X-CMAE-Envelope: MS4wfBBS7OWFh6Md+CFfOBdRTZj521aCMhE1AUvXCjZorjD/rMsRkweEnDdvj2+5mAG6zRwdr1jNW91BsLd/fknIwAGaCeiJlDsAuBeiZpZn8YNRpNOleh6s 7Q5p+la3Gxgpu+PJLnavmDX4bdLe6vbjXdQt/ziARuRyFKt2CVebsh8b5Tx/LzgBFuJHVVJ1/gtJqg== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.io gmane.lisp.guile.bugs:9804 Archived-At: --=_f86e5d52d35d2de1ac37001d83e1a740 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I'm still seeing segfaults on rasbian on an rpi3. Have not tried=0Abuild= root yet.=0A=0AThat patch *did* fix a boatload of errors on arm, but thi= s segfault is=0Aan unrelated problem I think. Only happens on arm though= .=0A=0AHere is a way to reproduce:=0A=0AIn the test-suite/standalone dir= :=0Awhile GUILE_JIT_THRESHOLD=3D0 make TESTS=3Dtest-language check-TESTS= ; do=0A:;done=0A=0AAnd then:=0A../../meta/uninstalled-env ../../libtool= --mode=3Dexecute gdb=0A../../libguile/guile core=0A=0AProgram terminate= d with signal SIGSEGV, Segmentation fault.=0A#0 0x76f505cc in scm_is_str= ing (x=3D0x0) at strings.h:293=0A293 return SCM_HAS_TYP7 (x, scm_tc7_str= ing);=0A[Current thread is 1 (Thread 0x76fe6010 (LWP 21616))]=0A(gdb) bt= =0A#0 0x76f505cc in scm_is_string (x=3D0x0) at strings.h:293=0A#1 scm_st= ring_to_symbol (string=3D0x0) at symbols.c:361=0A#2 0x722df4cc in ?? ()= =0ABacktrace stopped: previous frame identical to this frame (corrupt=0A= stack?)=0A=0A=09-----------------------------------------From: "Ludovic= Court=C3=A8s" =0ATo: dsmich@roadrunner.com=0ACc: 40737@debbugs.gnu.org= =0ASent: Wednesday June 17 2020 6:36:34PM=0ASubject: Re: bug#40737: Segf= ault in arm gcc7, thumb2 builroot, with=0Aarm patch=0A=0AHi Dale,=0A=0A= dsmich@roadrunner.com skribis:=0A=0A > Here is a backtrace of running g= uile on a builtroot constructed=0A system=0A > for rpi3.=0A > Thumb2 ins= tructions: BR2_ARM_INSTRUCTIONS_THUMB2=3Dy=0A > Gcc 7.5: BR2_GCC_VERSION= =3D"7.5.0"=0A > Glibc.=0A >=0A > Uses the patch from=0A > --=_f86e5d52d35d2de1ac37001d83e1a740 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I'm still seeing segfaults on rasbian on an rpi3.  Have= not tried buildroot yet.

That patch *did* fix a boatload of erro= rs on arm, but this segfault is an unrelated problem I think.  Only= happens on arm though.

Here is a way to reproduce:

In the= test-suite/standalone dir:
while GUILE_JIT_THRESHOLD=3D0 make TESTS= =3Dtest-language check-TESTS; do :;done

And then:
../../meta/u= ninstalled-env ../../libtool --mode=3Dexecute gdb ../../libguile/guile c= ore

Program terminated with signal SIGSEGV, Segmentation fault.#0  0x76f505cc in scm_is_string (x=3D0x0) at strings.h:293
293=        return SCM_HAS_TYP7 (x, scm_tc7_str= ing);
[Current thread is 1 (Thread 0x76fe6010 (LWP 21616))]
(gdb)= bt
#0  0x76f505cc in scm_is_string (x=3D0x0) at strings.h:293#1  scm_string_to_symbol (string=3D0x0) at symbols.c:361
#2&nb= sp; 0x722df4cc in ?? ()
Backtrace stopped: previous frame identical t= o this frame (corrupt stack?)




-----------------------------------------

From:= "Ludovic Court=C3=A8s"
To: dsmich@roadrunner.com
C= c: 40737@debbugs.gnu.org
Sent: Wednesday June 17 2020 6:36:34PM
Su= bject: Re: bug#40737: Segfault in arm gcc7, thumb2 builroot, with arm pa= tch

Hi Dale,
=0A
=0A dsmich@roadrunner.com skribis:
=0A<= br>=0A > Here is a backtrace of running guile on a builtroot construc= ted
=0Asystem
=0A > for rpi3.
=0A > Thumb2 instructions:= BR2_ARM_INSTRUCTIONS_THUMB2=3Dy
=0A > Gcc 7.5: BR2_GCC_VERSION=3D= "7.5.0"
=0A > Glibc.
=0A >
=0A > Uses the patch from=0A >
--=_f86e5d52d35d2de1ac37001d83e1a740--