From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DAA383858C66; Wed, 15 Mar 2023 14:00:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DAA383858C66 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1678888818; bh=VLI10AUUhHO3QfGslu23+XVyN8YyjUDw1RJrUsg8DsU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=IeWFSFW00/xCZooiMCK87gWNe86W/E2DJvtEpV7tneQiKgkpH4gK5VzMXoCRbED/j dBszwuvCH8aymcwZUosnEhlqZHm934R9X/HcNQ7VHPvKKaIPnXc7b6hnb/3KHYuuSE IqpnDN16sJPTro6KoTaquwwqrCqIZ3GMXsn3eYaw= From: "ro at CeBiTec dot Uni-Bielefeld.DE" To: gcc-bugs@gcc.gnu.org Subject: [Bug modula2/109125] [13 regression] SIGBUS in m2pim_ldtoa_ldtoa Date: Wed, 15 Mar 2023 14:00:18 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: modula2 X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ro at CeBiTec dot Uni-Bielefeld.DE X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: gaius at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D109125 --- Comment #6 from ro at CeBiTec dot Uni-Bielefeld.DE --- > --- Comment #5 from Gaius Mulley --- > readreal.mod requires the input file testnumber to be in the same directo= ry as > the executable invocation. > > Or manually create a text file containing: > > cat << EOF > testnumber > 12.3456 > EOF Got it, thanks. It's another unaligned access: Thread 2 received signal SIGBUS, Bus error. [Switching to Thread 1 (LWP 1)] 0x00037a40 in m2pim_dtoa_strtod (s=3D0x54c90 "12.3456", error=3D0xffbfe96f) at /vol/gcc/src/hg/master/local/libgm2/libm2pim/dtoa.cc:124 124 *error =3D (errno !=3D 0); 1: x/i $pc =3D> 0x37a40 : st %g2, [ %i1 ] (gdb) bt #0 0x00037a40 in m2pim_dtoa_strtod (s=3D0x54c90 "12.3456", error=3D0xffbfe= 96f) at /vol/gcc/src/hg/master/local/libgm2/libm2pim/dtoa.cc:124 #1 0x000263b0 in m2iso_RealIO_ReadReal (cid=3D0x594a0, real=3D@0x4e3a8: 0) at /vol/gcc/src/hg/master/local/libgm2/libm2iso/../../gcc/m2/gm2-libs-iso/Real= IO.mod:75 #2 0x00021cac in _M2_readreal_init (argc=3D1, argv=3D0xffbfebcc, envp=3D0x= ffbfebd4) at /vol/gcc/src/hg/master/local/gcc/testsuite/gm2/isolib/run/pass/readreal.mod= :31 #3 0x0002d560 in m2pim_M2Dependent_ConstructModules ( applicationmodule=3D, libname=3D, argc=3D= 1,=20 argv=3D0xffbfebcc, envp=3D0xffbfebd4) at /vol/gcc/src/hg/master/local/libgm2/libm2pim/../../gcc/m2/gm2-libs/M2Depend= ent.mod:813 #4 0x00022660 in _M2_init (argc=3D1, argv=3D0xffbfebcc, envp=3D0xffbfebd4) at /vol/gcc/src/hg/master/local/gcc/testsuite/gm2/isolib/run/pass/readreal.mod= :18 #5 0x000226d8 in main (argc=3D1, argv=3D0xffbfebcc, envp=3D0xffbfebd4) at /vol/gcc/src/hg/master/local/gcc/testsuite/gm2/isolib/run/pass/readreal.mod= :18 (gdb) p/x $i1 $1 =3D 0xffbfe96f=