GNU bug report logs - #34427
guile-bootstrap@2.2 segfault?

Previous Next

Package: guix;

Reported by: Efraim Flashner <efraim <at> flashner.co.il>

Date: Mon, 11 Feb 2019 09:13:01 UTC

Severity: important

Tags: moreinfo

Done: zimoun <zimon.toutoune <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 34427 in the body.
You can then email your comments to 34427 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#34427; Package guix. (Mon, 11 Feb 2019 09:13:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Efraim Flashner <efraim <at> flashner.co.il>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Mon, 11 Feb 2019 09:13:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Efraim Flashner <efraim <at> flashner.co.il>
To: bug-guix <at> gnu.org
Subject: guile-bootstrap <at> 2.2 segfault?
Date: Mon, 11 Feb 2019 11:11:36 +0200
[Message part 1 (text/plain, inline)]
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 <at> 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
[guile_strace (text/plain, attachment)]
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#34427; Package guix. (Tue, 12 Feb 2019 09:18:02 GMT) Full text and rfc822 format available.

Message #8 received at 34427 <at> debbugs.gnu.org (full text, mbox):

From: Efraim Flashner <efraim <at> flashner.co.il>
To: guix-patches <at> gnu.org
Cc: 34427 <at> debbugs.gnu.org
Subject: [PATCH] build guile-static with guile-2.0
Date: Tue, 12 Feb 2019 11:17:40 +0200
[Message part 1 (text/plain, inline)]
When experimenting I found that using guile <at> 2.0 as a base for
guile-static, the resulting guile-static didn't segfault on the target
architecture.


-- 
Efraim Flashner   <efraim <at> 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
[0001-gnu-guile-static-Build-for-guile-2.0.patch (text/plain, attachment)]
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#34427; Package guix. (Tue, 12 Feb 2019 14:28:02 GMT) Full text and rfc822 format available.

Message #11 received at 34427 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Efraim Flashner <efraim <at> flashner.co.il>
Cc: 34427 <at> debbugs.gnu.org
Subject: Re: bug#34427: guile-bootstrap <at> 2.2 segfault?
Date: Tue, 12 Feb 2019 15:27:37 +0100
Hello Efraim,

Efraim Flashner <efraim <at> 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?

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’.




Information forwarded to bug-guix <at> gnu.org:
bug#34427; Package guix. (Tue, 12 Feb 2019 15:45:01 GMT) Full text and rfc822 format available.

Message #14 received at 34427 <at> debbugs.gnu.org (full text, mbox):

From: Efraim Flashner <efraim <at> flashner.co.il>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 34427 <at> debbugs.gnu.org
Subject: Re: bug#34427: guile-bootstrap <at> 2.2 segfault?
Date: Tue, 12 Feb 2019 17:44:34 +0200
[Message part 1 (text/plain, inline)]
On Tue, Feb 12, 2019 at 03:27:37PM +0100, Ludovic Courtès wrote:
> Hello Efraim,
> 
> Efraim Flashner <efraim <at> 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)

> 
> 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 <at> 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
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#34427; Package guix. (Sat, 16 Feb 2019 16:07:01 GMT) Full text and rfc822 format available.

Message #17 received at 34427 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Efraim Flashner <efraim <at> flashner.co.il>
Cc: 34453 <at> debbugs.gnu.org, 34427 <at> debbugs.gnu.org
Subject: Re: [bug#34453] [PATCH] build guile-static with guile-2.0
Date: Sat, 16 Feb 2019 17:06:05 +0100
Hi Efraim,

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

> When experimenting I found that using guile <at> 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’.




Severity set to 'important' from 'normal' Request was from Ludovic Courtès <ludo <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 06 Mar 2019 21:33:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-guix <at> gnu.org:
bug#34427; Package guix. (Tue, 12 Apr 2022 10:15:03 GMT) Full text and rfc822 format available.

Message #22 received at 34427 <at> debbugs.gnu.org (full text, mbox):

From: zimoun <zimon.toutoune <at> gmail.com>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 34453 <at> debbugs.gnu.org, 34427 <at> debbugs.gnu.org,
 Efraim Flashner <efraim <at> flashner.co.il>
Subject: Re: bug#34453: [PATCH] build guile-static with guile-2.0
Date: Tue, 12 Apr 2022 12:10:09 +0200
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 <at> gnu.org> wrote:
> Efraim Flashner <efraim <at> flashner.co.il> skribis:
>
>> When experimenting I found that using guile <at> 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




Information forwarded to bug-guix <at> gnu.org:
bug#34427; Package guix. (Tue, 12 Apr 2022 10:15:03 GMT) Full text and rfc822 format available.

Message #25 received at 34427 <at> debbugs.gnu.org (full text, mbox):

From: zimoun <zimon.toutoune <at> gmail.com>
To: Efraim Flashner <efraim <at> flashner.co.il>
Cc: 34427 <at> debbugs.gnu.org, Ludovic Courtès <ludo <at> gnu.org>
Subject: Re: bug#34427: guile-bootstrap <at> 2.2 segfault?
Date: Tue, 12 Apr 2022 12:12:51 +0200
Hi,

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

http://issues.guix.gnu.org/issue/34427

On Tue, 12 Feb 2019 at 17:44, Efraim Flashner <efraim <at> flashner.co.il> wrote:
> 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




Information forwarded to bug-guix <at> gnu.org:
bug#34427; Package guix. (Tue, 12 Apr 2022 16:02:01 GMT) Full text and rfc822 format available.

Message #28 received at 34427 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Efraim Flashner <efraim <at> flashner.co.il>
Cc: 34427 <at> debbugs.gnu.org
Subject: Re: bug#34427: guile-bootstrap <at> 2.2 segfault?
Date: Tue, 12 Apr 2022 18:01:39 +0200
Hi,

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

> On Tue, Feb 12, 2019 at 03:27:37PM +0100, Ludovic Courtès wrote:
>> Hello Efraim,
>> 
>> Efraim Flashner <efraim <at> 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’.




Information forwarded to bug-guix <at> gnu.org:
bug#34427; Package guix. (Wed, 13 Apr 2022 21:03:02 GMT) Full text and rfc822 format available.

Message #31 received at 34427 <at> debbugs.gnu.org (full text, mbox):

From: Efraim Flashner <efraim <at> flashner.co.il>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 34427 <at> debbugs.gnu.org
Subject: Re: bug#34427: guile-bootstrap <at> 2.2 segfault?
Date: Thu, 14 Apr 2022 00:01:34 +0300
[Message part 1 (text/plain, inline)]
On Tue, Apr 12, 2022 at 06:01:39PM +0200, Ludovic Courtès wrote:
> Hi,
> 
> Efraim Flashner <efraim <at> flashner.co.il> skribis:
> 
> > On Tue, Feb 12, 2019 at 03:27:37PM +0100, Ludovic Courtès wrote:
> >> Hello Efraim,
> >> 
> >> Efraim Flashner <efraim <at> 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.
[guile-bootstrap-strace.log (text/plain, attachment)]
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#34427; Package guix. (Wed, 13 Apr 2022 21:08:01 GMT) Full text and rfc822 format available.

Message #34 received at 34427 <at> debbugs.gnu.org (full text, mbox):

From: Efraim Flashner <efraim <at> flashner.co.il>
To: zimoun <zimon.toutoune <at> gmail.com>
Cc: 34453 <at> debbugs.gnu.org, 34427 <at> debbugs.gnu.org,
 Ludovic Courtès <ludo <at> gnu.org>
Subject: Re: bug#34453: [PATCH] build guile-static with guile-2.0
Date: Thu, 14 Apr 2022 00:07:07 +0300
[Message part 1 (text/plain, inline)]
On Tue, Apr 12, 2022 at 12:10:09PM +0200, zimoun wrote:
> 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 <at> gnu.org> wrote:
> > Efraim Flashner <efraim <at> flashner.co.il> skribis:
> >
> >> When experimenting I found that using guile <at> 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 <at> 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
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#34427; Package guix. (Fri, 15 Apr 2022 07:46:02 GMT) Full text and rfc822 format available.

Message #37 received at 34427 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Efraim Flashner <efraim <at> flashner.co.il>
Cc: 34427 <at> debbugs.gnu.org
Subject: Re: bug#34427: guile-bootstrap <at> 2.2 segfault?
Date: Fri, 15 Apr 2022 09:45:02 +0200
Hi,

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

> On Tue, Apr 12, 2022 at 06:01:39PM +0200, Ludovic Courtès 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

TIA,
Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#34427; Package guix. (Thu, 23 Jun 2022 08:24:01 GMT) Full text and rfc822 format available.

Message #40 received at 34427 <at> debbugs.gnu.org (full text, mbox):

From: zimoun <zimon.toutoune <at> gmail.com>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 34427 <at> debbugs.gnu.org, Efraim Flashner <efraim <at> flashner.co.il>
Subject: Re: bug#34427: guile-bootstrap <at> 2.2 segfault?
Date: Thu, 23 Jun 2022 10:17:11 +0200
Hi Efraim,

On Fri, 15 Apr 2022 at 09:45, Ludovic Courtès <ludo <at> 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

Efraim, friendly ping. :-)


Cheers,
simon




Added tag(s) moreinfo. Request was from Maxim Cournoyer <maxim.cournoyer <at> gmail.com> to control <at> debbugs.gnu.org. (Sat, 08 Oct 2022 02:45:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-guix <at> gnu.org:
bug#34427; Package guix. (Sat, 08 Oct 2022 02:47:02 GMT) Full text and rfc822 format available.

Message #45 received at 34427 <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: Efraim Flashner <efraim <at> flashner.co.il>
Cc: 34427 <at> debbugs.gnu.org, Ludovic Courtès <ludo <at> gnu.org>,
 GNU Debbugs <control <at> debbugs.gnu.org>
Subject: Re: bug#34427: guile-bootstrap <at> 2.2 segfault?
Date: Fri, 07 Oct 2022 22:46:39 -0400
tags 34427 -important
thanks

Hi,

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

[...]

>> 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




Information forwarded to bug-guix <at> gnu.org:
bug#34427; Package guix. (Tue, 18 Oct 2022 16:21:02 GMT) Full text and rfc822 format available.

Message #48 received at 34427 <at> debbugs.gnu.org (full text, mbox):

From: zimoun <zimon.toutoune <at> gmail.com>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 34427 <at> debbugs.gnu.org, Efraim Flashner <efraim <at> flashner.co.il>
Subject: Re: bug#34427: guile-bootstrap <at> 2.2 segfault?
Date: Tue, 18 Oct 2022 18:14:32 +0200
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 <at> gmail.com> wrote:
> On Fri, 15 Apr 2022 at 09:45, Ludovic Courtès <ludo <at> 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




Information forwarded to bug-guix <at> gnu.org:
bug#34427; Package guix. (Tue, 18 Oct 2022 16:23:02 GMT) Full text and rfc822 format available.

Message #51 received at 34427 <at> debbugs.gnu.org (full text, mbox):

From: Efraim Flashner <efraim <at> flashner.co.il>
To: zimoun <zimon.toutoune <at> gmail.com>,
 Ludovic Courtès <ludo <at> gnu.org>
Cc: 34427 <at> debbugs.gnu.org
Subject: Re: bug#34427: guile-bootstrap <at> 2.2 segfault?
Date: Tue, 18 Oct 2022 16:22:27 +0000
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 <at> gmail.com> wrote:
>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 <at> gmail.com> wrote:
>> On Fri, 15 Apr 2022 at 09:45, Ludovic Courtès <ludo <at> 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.




Reply sent to zimoun <zimon.toutoune <at> gmail.com>:
You have taken responsibility. (Wed, 19 Oct 2022 10:42:02 GMT) Full text and rfc822 format available.

Notification sent to Efraim Flashner <efraim <at> flashner.co.il>:
bug acknowledged by developer. (Wed, 19 Oct 2022 10:42:02 GMT) Full text and rfc822 format available.

Message #56 received at 34427-done <at> debbugs.gnu.org (full text, mbox):

From: zimoun <zimon.toutoune <at> gmail.com>
To: Efraim Flashner <efraim <at> flashner.co.il>
Cc: Ludovic Courtès <ludo <at> gnu.org>, 34427-done <at> debbugs.gnu.org,
 Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
Subject: Re: bug#34427: guile-bootstrap <at> 2.2 segfault?
Date: Wed, 19 Oct 2022 12:40:23 +0200
Hi,


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

> 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




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 16 Nov 2022 12:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 227 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.