guile-bootstrap@2.2 segfault?

  • Done
  • quality assurance status badge
Details
4 participants
  • Efraim Flashner
  • Ludovic Courtès
  • Maxim Cournoyer
  • zimoun
Owner
unassigned
Submitted by
Efraim Flashner
Severity
important

Debbugs page

E
E
Efraim Flashner wrote on 11 Feb 2019 01:11
(address . bug-guix@gnu.org)
20190211091136.GA3284@macbook41
I'm testing %bootstrap-guile from bootstrap.scm and I'm getting a
segfault when runing guile --version. I've attached an strace of the
process.


--
Efraim Flashner <efraim@flashner.co.il> אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
Attachment: guile_strace
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAlxhPEMACgkQQarn3Mo9
g1G6WRAAtkw4tqxsGQP+q1zxNxkitfjUo/zxmoHlG61f+YIYzLW78SECsQLDjKyw
zg6aKg7fE7tznSqT2XsvJwhkIXRCEUrBVXRVy+vOVAqAwgSILE9i7mmOAj8yXPWq
x2y/WXmTGR/N90ItgSNJhmB+sCDCBG9EkO1wt9gM8PrR1JQ3iT6m5bbRvcERQ23t
AdwIM6a2Lbijtwrhr8ak1EBOxCEQgwhwmdI2N7wcMOQ7hjuHgNm6p/dMoGKFc7ZW
AraaRgO+PgvVQy1anNEvnREB0T9I+iBBwpoDKPJpTEy9mTXqpUMePK0AV8W+Zy62
P6yTmlQ1pKM8ybpDyDwybhavEej59V9uhC26zAcS7UTJ9vZaBmGRXo8y4Fw4Qq8d
Jof73XDVueTVUrN5okqbhxSZh9nl6LsqQdOpT/2Oe7wQe59uzYMRqStxXoKISfDa
Z5Hizu+NsliOlhEP5qSkdJRPa89837F9wvMRNxyZhldTMJx3eU6h7tcsjvbZVDje
2uflaNiGes5mzuUjunD2aBLrzriLPRUndLN1EkofjTknFbSo2z18TsTWdB+/tFTi
C/MxCrc27daaO9NKN6FUFeZJ95cocEaQShNjocMy0T2xFCJmwqidM7unGw70usbk
GkMOf218Y2qxyZj7nhvw62XG/109hRMHMbbhPvTIeQ6o3p04II4=
=O+Lo
-----END PGP SIGNATURE-----


E
E
Efraim Flashner wrote on 12 Feb 2019 01:17
[PATCH] build guile-static with guile-2.0
(address . guix-patches@gnu.org)(address . 34427@debbugs.gnu.org)
20190212091740.GB3284@macbook41
When experimenting I found that using guile@2.0 as a base for
guile-static, the resulting guile-static didn't segfault on the target
architecture.


--
Efraim Flashner <efraim@flashner.co.il> אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAlxijy4ACgkQQarn3Mo9
g1FRzBAApDrqkMANqwivufw3E8YzhhHi4owAMHX65UHLybOzVYJK3cMWJEZhp1pl
TOLtgKfOkv95BA4MR5Ju/DEgwyXgg9Zc2U88PmkpK/7v0MJMAWg24ZeBiZy+p6mO
hgy4F2Wz+oXKa6QsbtqWNUB/h8kS9Y/PZk2+Nk20dISwfQosrJtfZUFBPF6uh/rR
MWRTl/WziLwNIbCzaqJ5DO+qYmyJp7fM6k190vPGNIGwN1id3/bn6gjwyyiqDoHH
W7/jkt/YxLdxopEGVejFgNyjzcenWbkkCEBg3piGzQ6ZjetzpgDlKDttP5oHkCuJ
PbKVbvSfC9sH3YiQfabcBb7Hc4nzpLuEnayKdSzht98PhHV4xAEMgv5sVbJ/oIIl
4BsUk+t+b8FVNE6rHEbt8N2yYfOwbEw6wNSeYJhtcubKYmtguLo0aZzARt1Xv9sM
1LI9p+/AtjBk0CshQqaZsKnmfx60B+nzFq8TR+wkupiV5WTYDORGj2NvCR4dTQ9Q
iCYaVoa2tnn2kCqOPjxTbTXztLLi3QUZa8L2Zzq3Wb0MGie0pLXLWsd9WPhZnhNA
hkSemoVDT+0H9o1KBG4DlkWRrqEElRdaCIk3f8DrPK59nLnpnlKAAvGXIWHcEXq7
nFFMKGNRHiT+gL7//OR9Mp/Zcf9cgAzpVzzNpEzB9QQVDsQSaP0=
=Ztlx
-----END PGP SIGNATURE-----


L
L
Ludovic Courtès wrote on 12 Feb 2019 06:27
Re: bug#34427: guile-bootstrap@2.2 segfault?
(name . Efraim Flashner)(address . efraim@flashner.co.il)(address . 34427@debbugs.gnu.org)
87y36ljd46.fsf@gnu.org
Hello Efraim,

Efraim Flashner <efraim@flashner.co.il> skribis:

Toggle quote (4 lines)
> I'm testing %bootstrap-guile from bootstrap.scm and I'm getting a
> segfault when runing guile --version. I've attached an strace of the
> process.

To be clear, I believe this is for a *cross-compiled* Guile, right?

The natively-built binary on x86_64-linux works fine:

Toggle snippet (20 lines)
$ unshare -mrf chroot $(guix build guile-static-stripped) ./bin/guile --version
guile: warning: failed to install locale
GC Warning: pthread_getattr_np or pthread_attr_getstack failed for main thread
GC Warning: Couldn't read /proc/stat
guile (GNU Guile) 2.2.4
Copyright (C) 2018 Free Software Foundation, Inc.

License LGPLv3+: GNU LGPL 3 or later <http://gnu.org/licenses/lgpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
$ guix describe
Generacio 61 Feb 12 2019 11:14:38 (nuna)
guix c86b5f1
repository URL: https://git.savannah.gnu.org/git/guix.git
branch: master
commit: c86b5f1b9bdfdd478ba15804f9343feb8d9c019b
$ uname -m
x86_64

Since I saw a build failure similar to the one you mention when
cross-building for GNU/Hurd, I’m tempted to think this has to do with
cross-compilation.

Thanks,
Ludo’.
E
E
Efraim Flashner wrote on 12 Feb 2019 07:44
(name . Ludovic Courtès)(address . ludo@gnu.org)(address . 34427@debbugs.gnu.org)
20190212154434.GD3284@macbook41
On Tue, Feb 12, 2019 at 03:27:37PM +0100, Ludovic Courtès wrote:
Toggle quote (10 lines)
> Hello Efraim,
>
> Efraim Flashner <efraim@flashner.co.il> skribis:
>
> > I'm testing %bootstrap-guile from bootstrap.scm and I'm getting a
> > segfault when runing guile --version. I've attached an strace of the
> > process.
>
> To be clear, I believe this is for a *cross-compiled* Guile, right?

That's right, %bootstrap-guile is extracted from $(guix build
--target=powerpc-linux-gnu bootstrap-tarballs)

Toggle quote (31 lines)
>
> The natively-built binary on x86_64-linux works fine:
>
> --8<---------------cut here---------------start------------->8---
> $ unshare -mrf chroot $(guix build guile-static-stripped) ./bin/guile --version
> guile: warning: failed to install locale
> GC Warning: pthread_getattr_np or pthread_attr_getstack failed for main thread
> GC Warning: Couldn't read /proc/stat
> guile (GNU Guile) 2.2.4
> Copyright (C) 2018 Free Software Foundation, Inc.
>
> License LGPLv3+: GNU LGPL 3 or later <http://gnu.org/licenses/lgpl.html>.
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.
> $ guix describe
> Generacio 61 Feb 12 2019 11:14:38 (nuna)
> guix c86b5f1
> repository URL: https://git.savannah.gnu.org/git/guix.git
> branch: master
> commit: c86b5f1b9bdfdd478ba15804f9343feb8d9c019b
> $ uname -m
> x86_64
> --8<---------------cut here---------------end--------------->8---
>
> Since I saw a build failure similar to the one you mention when
> cross-building for GNU/Hurd, I’m tempted to think this has to do with
> cross-compilation.
>
> Thanks,
> Ludo’.

I saw you mentioned that on IRC.

--
Efraim Flashner <efraim@flashner.co.il> אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAlxi6d0ACgkQQarn3Mo9
g1GHZw/+OnYy6pQGf/tACZ0HfXe1j99FINS1eLuQ6qZs671q728qQxByB2xyy+Kw
HwCyiB4NWhCIdSrpOnWG+Z+F5YrvUvtyEJYYPUkqZhX30R9iS6NsREnuG8oZkY6C
tTVI5LLXVxo5FbKkdKEQu1NT7hLFqXsvm7NSSXCcX+vAOlEVV2XXOnyCQYmaTo5+
yfkEt44409WAMn369P+kMI6cE28pKzR7Jl3xL7WBPQ96IVlzT7GYUUK8PGfBUQhI
9iy5auGdopAuExyw2TOj6na86vAY50Is6GrtupHCOPaz3Uz7619Xu8lyRfP9k119
LQtDDtBZv7LK8gvAr39nMw2gjTM/Z++wO7PsIxT9MsrQ4Us0OZJtyO+ZjNZ71vfH
Sf3ndtIBv2axudkU1L2YhmhuJjmj6qR87o7O/BIPyLIqnuSKi1msCok6qCgFsiYY
Lbfkz6qRKFtlUsBpvjsSjXAFL0A8lbc90u6UjOVOWomfHpqRXevbIjYOixdZ6RjR
10D54g4z4beCzIbpewI4iV/Xi6BTOMooGHw8y/knxDT5QOKH72xE9G9Ait/0kD1r
YgbYwd57yRjCALp+6d9QZWm8e0tgiQy2pqvvAUSpalVMWmzl8zxKKH5w7LFwjgnM
3iUK3iSJk+VJkrzlX5UW0Fkp+f7aGKkxTRdVytzV5dXAAiAjlus=
=yGH5
-----END PGP SIGNATURE-----


L
L
Ludovic Courtès wrote on 16 Feb 2019 08:06
Re: [bug#34453] [PATCH] build guile-static with guile-2.0
(name . Efraim Flashner)(address . efraim@flashner.co.il)
87mumvhg5u.fsf@gnu.org
Hi Efraim,

Efraim Flashner <efraim@flashner.co.il> skribis:

Toggle quote (4 lines)
> When experimenting I found that using guile@2.0 as a base for
> guile-static, the resulting guile-static didn't segfault on the target
> architecture.

As discussed in https://issues.guix.info/issue/34427, I would rather
fix the segfault in 2.2 than move back to 2.0 and effectively delay the
problem.

Ludo’.
L
L
Ludovic Courtès wrote on 6 Mar 2019 13:32
control message for bug #34427
(address . control@debbugs.gnu.org)
87imwveliz.fsf@gnu.org
severity 34427 important
Z
Z
zimoun wrote on 12 Apr 2022 03:10
Re: bug#34453: [PATCH] build guile-static with guile-2.0
(name . Ludovic Courtès)(address . ludo@gnu.org)
86o816394u.fsf_-_@gmail.com
Hi,

What is the status of this old patch #34453?



On Sat, 16 Feb 2019 at 17:06, Ludovic Courtès <ludo@gnu.org> wrote:
Toggle quote (10 lines)
> Efraim Flashner <efraim@flashner.co.il> skribis:
>
>> When experimenting I found that using guile@2.0 as a base for
>> guile-static, the resulting guile-static didn't segfault on the target
>> architecture.
>
> As discussed in <https://issues.guix.info/issue/34427>, I would rather
> fix the segfault in 2.2 than move back to 2.0 and effectively delay the
> problem.

Note that #34427 is still open.


Cheers,
simon
Z
Z
zimoun wrote on 12 Apr 2022 03:12
Re: bug#34427: guile-bootstrap@2.2 segfault?
(name . Efraim Flashner)(address . efraim@flashner.co.il)
86lewa390c.fsf@gmail.com
Hi,

This bug #34427 is marked as important 3 years, 5 weeks, 1 day ago. Is
it important? ;-)


On Tue, 12 Feb 2019 at 17:44, Efraim Flashner <efraim@flashner.co.il> wrote:
Toggle quote (6 lines)
> On Tue, Feb 12, 2019 at 03:27:37PM +0100, Ludovic Courtès wrote:

>> Since I saw a build failure similar to the one you mention when
>> cross-building for GNU/Hurd, I’m tempted to think this has to do with
>> cross-compilation.

What is the status of this bug?


Cheers,
simon
L
L
Ludovic Courtès wrote on 12 Apr 2022 09:01
(name . Efraim Flashner)(address . efraim@flashner.co.il)(address . 34427@debbugs.gnu.org)
87sfqicmu4.fsf@gnu.org
Hi,

Efraim Flashner <efraim@flashner.co.il> skribis:

Toggle quote (14 lines)
> On Tue, Feb 12, 2019 at 03:27:37PM +0100, Ludovic Courtès wrote:
>> Hello Efraim,
>>
>> Efraim Flashner <efraim@flashner.co.il> skribis:
>>
>> > I'm testing %bootstrap-guile from bootstrap.scm and I'm getting a
>> > segfault when runing guile --version. I've attached an strace of the
>> > process.
>>
>> To be clear, I believe this is for a *cross-compiled* Guile, right?
>
> That's right, %bootstrap-guile is extracted from $(guix build
> --target=powerpc-linux-gnu bootstrap-tarballs)

Cross-compilation to aarch64-linux-gnu works fine:

Toggle snippet (24 lines)
$ unshare -mrf chroot $(guix build guile-static-stripped --target=aarch64-linux-gnu) /bin/guile
guile: warning: failed to install locale
GC Warning: pthread_getattr_np or pthread_attr_getstack failed for main thread
GC Warning: Couldn't read /proc/stat
warning: failed to install locale: Invalid argument
GNU Guile 3.0.7
Copyright (C) 1995-2021 Free Software Foundation, Inc.

Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
This program is free software, and you are welcome to redistribute it
under certain conditions; type `,show c' for details.

Enter `,help' for help.
scheme@(guile-user)> %host-type
$1 = "aarch64-unknown-linux-gnu"
scheme@(guile-user)> ,q
$ guix describe
Generation 210 Apr 11 2022 09:34:10 (current)
guix 7da907f
repository URL: https://git.savannah.gnu.org/git/guix.git
branch: master
commit: 7da907f90e74a4edf96d76ee457ff958265ef8d4

The problem has to do specifically with powerpc-linux-gnu (this is with
transparent emulation via QEMU+binfmt_misc):

Toggle snippet (8 lines)
$ unshare -mrf chroot $(guix build guile-static-stripped --target=powerpc-linux-gnu) /bin/guile
guile: warning: failed to install locale
GC Warning: pthread_getattr_np or pthread_attr_getstack failed for main thread
GC Warning: Couldn't read /proc/stat
Pre-boot error; key: wrong-type-arg, args: (#f "Wrong type to apply: ~S" (#f) (#f))qemu: uncaught target signal 6 (Aborted) - core dumped
Aborted

Unfortunately I fail to get a backtrace from that core dump.

Efraim, could you get a backtrace on the bare metal?

Besides, if PPC32 is the only platform that has a problem, I think this
bug should not be a blocker.

WDYT?

Ludo’.
E
E
Efraim Flashner wrote on 13 Apr 2022 14:01
(name . Ludovic Courtès)(address . ludo@gnu.org)(address . 34427@debbugs.gnu.org)
Ylc6LgVZ80CupiQ2@pbp
On Tue, Apr 12, 2022 at 06:01:39PM +0200, Ludovic Courtès wrote:
Toggle quote (68 lines)
> Hi,
>
> Efraim Flashner <efraim@flashner.co.il> skribis:
>
> > On Tue, Feb 12, 2019 at 03:27:37PM +0100, Ludovic Courtès wrote:
> >> Hello Efraim,
> >>
> >> Efraim Flashner <efraim@flashner.co.il> skribis:
> >>
> >> > I'm testing %bootstrap-guile from bootstrap.scm and I'm getting a
> >> > segfault when runing guile --version. I've attached an strace of the
> >> > process.
> >>
> >> To be clear, I believe this is for a *cross-compiled* Guile, right?
> >
> > That's right, %bootstrap-guile is extracted from $(guix build
> > --target=powerpc-linux-gnu bootstrap-tarballs)
>
> Cross-compilation to aarch64-linux-gnu works fine:
>
> --8<---------------cut here---------------start------------->8---
> $ unshare -mrf chroot $(guix build guile-static-stripped --target=aarch64-linux-gnu) /bin/guile
> guile: warning: failed to install locale
> GC Warning: pthread_getattr_np or pthread_attr_getstack failed for main thread
> GC Warning: Couldn't read /proc/stat
> warning: failed to install locale: Invalid argument
> GNU Guile 3.0.7
> Copyright (C) 1995-2021 Free Software Foundation, Inc.
>
> Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
> This program is free software, and you are welcome to redistribute it
> under certain conditions; type `,show c' for details.
>
> Enter `,help' for help.
> scheme@(guile-user)> %host-type
> $1 = "aarch64-unknown-linux-gnu"
> scheme@(guile-user)> ,q
> $ guix describe
> Generation 210 Apr 11 2022 09:34:10 (current)
> guix 7da907f
> repository URL: https://git.savannah.gnu.org/git/guix.git
> branch: master
> commit: 7da907f90e74a4edf96d76ee457ff958265ef8d4
> --8<---------------cut here---------------end--------------->8---
>
> The problem has to do specifically with powerpc-linux-gnu (this is with
> transparent emulation via QEMU+binfmt_misc):
>
> --8<---------------cut here---------------start------------->8---
> $ unshare -mrf chroot $(guix build guile-static-stripped --target=powerpc-linux-gnu) /bin/guile
> guile: warning: failed to install locale
> GC Warning: pthread_getattr_np or pthread_attr_getstack failed for main thread
> GC Warning: Couldn't read /proc/stat
> Pre-boot error; key: wrong-type-arg, args: (#f "Wrong type to apply: ~S" (#f) (#f))qemu: uncaught target signal 6 (Aborted) - core dumped
> Aborted
> --8<---------------cut here---------------end--------------->8---
>
> Unfortunately I fail to get a backtrace from that core dump.
>
> Efraim, could you get a backtrace on the bare metal?
>
> Besides, if PPC32 is the only platform that has a problem, I think this
> bug should not be a blocker.
>
> WDYT?
>
> Ludo’.

Here's what I get from strace when running on bare metal. I agree, if
it's only affecting ppc32 we shouldn't have it be a blocker.
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmJXOiUACgkQQarn3Mo9
g1G8YBAApL6O9MImW2kqrRN9K7ymvf49rtKXwy99dO62k6K+n64y8L2SwQgz3HNX
MkDIuVknQVM7xV9GEy9GVEQEWYy4Axoo8sL2ywl0KQj3zAM2cXTm6nkaCPsslphq
fdl24PVBVqZZOvxkAZCHJsurfTTnM7IHjJan0ztlGsDdVNXXojlfc5pTyDWhdYW5
LwXJqa05Sb1/bqzgKnQb9YOZm36nCOun2WFju2StpqNmIpSL3DcaKyIWxsRXe9IK
2Y1WB0P7CiQ/iMA3bAhAUYap7g+spqnSLd+kDuFAMFUsqWVLsrlIO2CrNmai97xk
4/A9cIn2935BeuegevP1oibLVWmEe5Lre77GGfJE142VpbRdg9IyuithqhKt8RoT
zpCotl4yr5VrMeuQFF2SaX7rd5Qk7dAkQuLQj7gM5FZsKZlvkyTHze+kAptyW7Sk
nvB4XAZM9JO1zxuxJ0sHgvTwhTxPZVJHyhhYjUzIZ2x1vtw5zW7S7bV53U7TEfJu
uYOx8dRRgGRRJiN4gxBOc7BZcJ7H/EoEEVUY1TD6HwIMOdy2k03Op4UbT8wSA5qr
cg2B3S2haZcO1mJ3kgAtc4WEc0TkqcO2YmrJDAKijycBBX8s1NbkkNkSyrXVsycm
Ib0HVZGC95Caz5Um0dF4LNK6mvkN4RhMZllSHrPPtuElUuLR1fg=
=dwtT
-----END PGP SIGNATURE-----


E
E
Efraim Flashner wrote on 13 Apr 2022 14:07
Re: bug#34453: [PATCH] build guile-static with guile-2.0
(name . zimoun)(address . zimon.toutoune@gmail.com)
Ylc7ezs6vG2ee5LE@pbp
On Tue, Apr 12, 2022 at 12:10:09PM +0200, zimoun wrote:
Toggle quote (20 lines)
> Hi,
>
> What is the status of this old patch #34453?
>
> http://issues.guix.gnu.org/issue/34453
>
>
> On Sat, 16 Feb 2019 at 17:06, Ludovic Courtès <ludo@gnu.org> wrote:
> > Efraim Flashner <efraim@flashner.co.il> skribis:
> >
> >> When experimenting I found that using guile@2.0 as a base for
> >> guile-static, the resulting guile-static didn't segfault on the target
> >> architecture.
> >
> > As discussed in <https://issues.guix.info/issue/34427>, I would rather
> > fix the segfault in 2.2 than move back to 2.0 and effectively delay the
> > problem.
>
> Note that #34427 is still open.

We can probably drop it. We'll pick it back up again if/when it comes up
again.

--
Efraim Flashner <efraim@flashner.co.il> אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmJXO3UACgkQQarn3Mo9
g1HwMA//f9hAjbYjSkH1gzCJsBBTo2jaCC1GuxpQ33pW6xlqcxTx2zXr76FTbL0s
k/KZ84iMffe/DKB6JgUQsfskiLb+GsDjR06j3QfTuzt5xj+pgqv3mMYRGemlsRq0
EDQGzTk/zA/9YqxQQcTYcP25dSocA8zq5HII2Ki2rnI9Y/FjBXrJpDd9vcdcSlQa
UMunCFENqjTHFEnRkylgYufTmiGIwx3ZcyGZUcr4nUKa0YXLzaOohPDoQlfVFH2t
AnBMCkUGTzi7ZizKPulQg286DCfNxCdWoGjmD69PJyvhD/tOmwWnLZFzVgbLPCpi
OqbiiqCUpLBzv6D4nfdkdhuz72BOPQ6Bjo/D3mUIT0x27hiONdtZymx06buFk+Yw
+cD1Lknstc+hiZsEfY0dOfnZtgYhoxesbjMrjsvALBynrZVtjYz7qsRZ9XqcrW9j
6dvZsn3JHf7pcAwKZfEau1AJr/JRcwglt17yMTJJLDUdZ2AQu5xgJ4hCiJKR5PVu
AURl0wIrbN4ugFUZDevELQIbUaNCHw6yLus8+oVEsgF8cqvsItLoVlJZHucqH/M4
dUsMhqmAzlzSi/+gWWmYNWO+eaRmZI1qfEG6kPf8pnj5zldajpdp2BMuPHxmF6Dh
z1uuXETSnz3FZMpMUgDarFyICY/6NdF7haV/nnV1lXxHpJb7Yeo=
=gEp1
-----END PGP SIGNATURE-----


L
L
Ludovic Courtès wrote on 15 Apr 2022 00:45
Re: bug#34427: guile-bootstrap@2.2 segfault?
(name . Efraim Flashner)(address . efraim@flashner.co.il)(address . 34427@debbugs.gnu.org)
87lew67ptt.fsf@gnu.org
Hi,

Efraim Flashner <efraim@flashner.co.il> skribis:

Toggle quote (2 lines)
> On Tue, Apr 12, 2022 at 06:01:39PM +0200, Ludovic Courtès wrote:

[...]

Toggle quote (16 lines)
>> The problem has to do specifically with powerpc-linux-gnu (this is with
>> transparent emulation via QEMU+binfmt_misc):
>>
>> --8<---------------cut here---------------start------------->8---
>> $ unshare -mrf chroot $(guix build guile-static-stripped --target=powerpc-linux-gnu) /bin/guile
>> guile: warning: failed to install locale
>> GC Warning: pthread_getattr_np or pthread_attr_getstack failed for main thread
>> GC Warning: Couldn't read /proc/stat
>> Pre-boot error; key: wrong-type-arg, args: (#f "Wrong type to apply: ~S" (#f) (#f))qemu: uncaught target signal 6 (Aborted) - core dumped
>> Aborted
>> --8<---------------cut here---------------end--------------->8---
>>
>> Unfortunately I fail to get a backtrace from that core dump.
>>
>> Efraim, could you get a backtrace on the bare metal?

Sorry I wasn’t clear; could you get a backtrace from GDB, as in:

…/bin/guile
# segfault
gdb …/bin/guile core

and then at the GDB prompt:

bt

TIA,
Ludo’.
Z
Z
zimoun wrote on 23 Jun 2022 01:17
(name . Ludovic Courtès)(address . ludo@gnu.org)
86tu8b94l4.fsf@gmail.com
Hi Efraim,

On Fri, 15 Apr 2022 at 09:45, Ludovic Courtès <ludo@gnu.org> wrote:

Toggle quote (26 lines)
>>> The problem has to do specifically with powerpc-linux-gnu (this is with
>>> transparent emulation via QEMU+binfmt_misc):
>>>
>>> --8<---------------cut here---------------start------------->8---
>>> $ unshare -mrf chroot $(guix build guile-static-stripped --target=powerpc-linux-gnu) /bin/guile
>>> guile: warning: failed to install locale
>>> GC Warning: pthread_getattr_np or pthread_attr_getstack failed for main thread
>>> GC Warning: Couldn't read /proc/stat
>>> Pre-boot error; key: wrong-type-arg, args: (#f "Wrong type to apply: ~S" (#f) (#f))qemu: uncaught target signal 6 (Aborted) - core dumped
>>> Aborted
>>> --8<---------------cut here---------------end--------------->8---
>>>
>>> Unfortunately I fail to get a backtrace from that core dump.
>>>
>>> Efraim, could you get a backtrace on the bare metal?
>
> Sorry I wasn’t clear; could you get a backtrace from GDB, as in:
>
> …/bin/guile
> # segfault
> gdb …/bin/guile core
>
> and then at the GDB prompt:
>
> bt

Efraim, friendly ping. :-)


Cheers,
simon
M
M
Maxim Cournoyer wrote on 7 Oct 2022 19:44
control message for bug #34427
(address . control@debbugs.gnu.org)
87edvj3uga.fsf@gmail.com
tags 34427 + moreinfo
quit
M
M
Maxim Cournoyer wrote on 7 Oct 2022 19:46
Re: bug#34427: guile-bootstrap@2.2 segfault?
(name . Efraim Flashner)(address . efraim@flashner.co.il)
87a6673ucw.fsf@gmail.com
tags 34427 -important
thanks

Hi,

Efraim Flashner <efraim@flashner.co.il> writes:

[...]

Toggle quote (10 lines)
>> Besides, if PPC32 is the only platform that has a problem, I think this
>> bug should not be a blocker.
>>
>> WDYT?
>>
>> Ludo’.
>
> Here's what I get from strace when running on bare metal. I agree, if
> it's only affecting ppc32 we shouldn't have it be a blocker.

I'd removing the important flag since this appears to affect only ppc32
architecture and has been dormant for years.

Thanks,

Maxim
Z
Z
zimoun wrote on 18 Oct 2022 09:14
(name . Ludovic Courtès)(address . ludo@gnu.org)
86o7u9xg5z.fsf@gmail.com
Hi,

It is about this old report #34427x [1].


On Thu, 23 Jun 2022 at 10:17, zimoun <zimon.toutoune@gmail.com> wrote:
Toggle quote (29 lines)
> On Fri, 15 Apr 2022 at 09:45, Ludovic Courtès <ludo@gnu.org> wrote:
>
>>>> The problem has to do specifically with powerpc-linux-gnu (this is with
>>>> transparent emulation via QEMU+binfmt_misc):
>>>>
>>>> --8<---------------cut here---------------start------------->8---
>>>> $ unshare -mrf chroot $(guix build guile-static-stripped --target=powerpc-linux-gnu) /bin/guile
>>>> guile: warning: failed to install locale
>>>> GC Warning: pthread_getattr_np or pthread_attr_getstack failed for main thread
>>>> GC Warning: Couldn't read /proc/stat
>>>> Pre-boot error; key: wrong-type-arg, args: (#f "Wrong type to apply: ~S"
>>>> (#f) (#f))qemu: uncaught target signal 6 (Aborted) - core dumped
>>>> Aborted
>>>> --8<---------------cut here---------------end--------------->8---
>>>>
>>>> Unfortunately I fail to get a backtrace from that core dump.
>>>>
>>>> Efraim, could you get a backtrace on the bare metal?
>>
>> Sorry I wasn’t clear; could you get a backtrace from GDB, as in:
>>
>> …/bin/guile
>> # segfault
>> gdb …/bin/guile core
>>
>> and then at the GDB prompt:
>>
>> bt

What is the status? Since a release is maybe coming, it could be the
opportunity to tackle it… or not. :-)

Cheers,
simon
E
E
Efraim Flashner wrote on 18 Oct 2022 09:22
(address . 34427@debbugs.gnu.org)
754B74E1-0E20-41E7-9394-8562D0BAA030@flashner.co.il
We've moved the bootstrap guile to 3.0 for riscv64 and haven't seen any problems. I think we can just close this one and we'll revisit it if someone else decides to use guile-2.2 for a bootstrap guile and runs into this issue.


On October 18, 2022 4:14:32 PM UTC, zimoun <zimon.toutoune@gmail.com> wrote:
Toggle quote (42 lines)
>Hi,
>
>It is about this old report #34427x [1].
>
>1: <http://issues.guix.gnu.org/issue/34427>
>
>On Thu, 23 Jun 2022 at 10:17, zimoun <zimon.toutoune@gmail.com> wrote:
>> On Fri, 15 Apr 2022 at 09:45, Ludovic Courtès <ludo@gnu.org> wrote:
>>
>>>>> The problem has to do specifically with powerpc-linux-gnu (this is with
>>>>> transparent emulation via QEMU+binfmt_misc):
>>>>>
>>>>> --8<---------------cut here---------------start------------->8---
>>>>> $ unshare -mrf chroot $(guix build guile-static-stripped --target=powerpc-linux-gnu) /bin/guile
>>>>> guile: warning: failed to install locale
>>>>> GC Warning: pthread_getattr_np or pthread_attr_getstack failed for main thread
>>>>> GC Warning: Couldn't read /proc/stat
>>>>> Pre-boot error; key: wrong-type-arg, args: (#f "Wrong type to apply: ~S"
>>>>> (#f) (#f))qemu: uncaught target signal 6 (Aborted) - core dumped
>>>>> Aborted
>>>>> --8<---------------cut here---------------end--------------->8---
>>>>>
>>>>> Unfortunately I fail to get a backtrace from that core dump.
>>>>>
>>>>> Efraim, could you get a backtrace on the bare metal?
>>>
>>> Sorry I wasn’t clear; could you get a backtrace from GDB, as in:
>>>
>>> …/bin/guile
>>> # segfault
>>> gdb …/bin/guile core
>>>
>>> and then at the GDB prompt:
>>>
>>> bt
>
>What is the status? Since a release is maybe coming, it could be the
>opportunity to tackle it… or not. :-)
>
>Cheers,
>simon

--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
Z
Z
zimoun wrote on 19 Oct 2022 03:40
(name . Efraim Flashner)(address . efraim@flashner.co.il)
86zgdsnlk8.fsf@gmail.com
Hi,


On Tue, 18 Oct 2022 at 16:22, Efraim Flashner <efraim@flashner.co.il> wrote:

Toggle quote (5 lines)
> We've moved the bootstrap guile to 3.0 for riscv64 and haven't seen
> any problems. I think we can just close this one and we'll revisit it
> if someone else decides to use guile-2.2 for a bootstrap guile and
> runs into this issue.

Therefore, I am closing. Feel free to reopen if I missed something.


Cheers,
simon
Closed
?
Your comment

This issue is archived.

To comment on this conversation send an email to 34427@patchwise.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 34427
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch