bug#34427: guile-bootstrap@2.2 segfault?

2022-10-19 Thread zimoun
Hi,


On Tue, 18 Oct 2022 at 16:22, Efraim Flashner  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#34427: guile-bootstrap@2.2 segfault?

2022-10-18 Thread Efraim Flashner
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  wrote:
>Hi,
>
>It is about this old report #34427x [1].
>
>1: 
>
>On Thu, 23 Jun 2022 at 10:17, zimoun  wrote:
>> On Fri, 15 Apr 2022 at 09:45, 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
>
>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.





bug#34427: guile-bootstrap@2.2 segfault?

2022-10-18 Thread zimoun
Hi,

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

1: 

On Thu, 23 Jun 2022 at 10:17, zimoun  wrote:
> On Fri, 15 Apr 2022 at 09:45, 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

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

Cheers,
simon





bug#34427: guile-bootstrap@2.2 segfault?

2022-10-07 Thread Maxim Cournoyer
tags 34427 -important
thanks

Hi,

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





bug#34427: guile-bootstrap@2.2 segfault?

2022-06-23 Thread zimoun
Hi Efraim,

On Fri, 15 Apr 2022 at 09:45, 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

Efraim, friendly ping. :-)


Cheers,
simon





bug#34427: guile-bootstrap@2.2 segfault?

2022-04-15 Thread Ludovic Courtès
Hi,

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





bug#34427: guile-bootstrap@2.2 segfault?

2022-04-13 Thread Efraim Flashner
On Tue, Apr 12, 2022 at 06:01:39PM +0200, Ludovic Courtès wrote:
> Hi,
> 
> Efraim Flashner  skribis:
> 
> > On Tue, Feb 12, 2019 at 03:27:37PM +0100, Ludovic Courtès wrote:
> >> Hello Efraim,
> >> 
> >> Efraim Flashner  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.
28071 
execve("/gnu/store/imbgn3if51jxi1nhwwdb5q9dpkhz9aff-guile-static-stripped-3.0.7/bin/guile",
 ["/gnu/store/imbgn3if51jxi1nhwwdb5"...], 0xaf88c21c /* 30 vars */) = 0
28071 brk(NULL) = 0x10849000
28071 brk(0x108498d8)   = 0x108498d8
28071 uname({sysname="Linux", nodename="g4", ...}) = 0
28071 set_tid_address(0x10849068)   = 28071
28071 set_robust_list(0x10849070, 12)   = 0
28071 rt_sigaction(SIGRTMIN, {sa_handler=0x101154ac, sa_mask=[], 
sa_flags=SA_SIGINFO}, NULL, 8) = 0
28071 rt_sigaction(SIGRT_1, {sa_handler=0x1011558c, sa_mask=[], 
sa_flags=SA_RESTART|SA_SIGINFO}, NULL, 8) = 0
28071 rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
28071 ugetrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0
28071 readlink("/proc/self/exe", "/gnu/store/imbgn3if51jxi1nhwwdb5"..., 4096) = 
81
28071 brk(0x1086a8d8)   = 0x1086a8d8
28071 brk(0x1086b000)   = 0x1086b000
28071 mprotect(0x1037f000, 4096, PROT_READ) = 0
28071 openat(AT_FDCWD, "/run/current-system/locale/2.33/locale-archive", 
O_RDONLY|O_LARGEFILE|O_CLOEXEC) = -1 ENOENT (No such file or directory)
28071 openat(AT_FDCWD, 
"/gnu/store/-glibc-cross-powerpc-linux-gnu-2.33/share/locale/locale.alias",
 O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
28071 openat(AT_FDCWD, 
"/run/current-system/locale/2.33/en_US.UTF-8/LC_IDENTIFICATION", 
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
28071 openat(AT_FDCWD, 
"/run/current-system/locale/2.33/en_US.utf8/LC_IDENTIFICATION", 
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
28071 openat(AT_FDCWD, 
"/run/current-system/locale/2.33/en_US/LC_IDENTIFICATION", O_RDONLY|O_CLOEXEC) 
= -1 ENOENT (No such file or directory)
28071 openat(AT_FDCWD, 
"/run/current-system/locale/2.33/en.UTF-8/LC_IDENTIFICATION", 
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
28071 openat(AT_FDCWD, 
"/run/current-system/locale/2.33/en.utf8/LC_IDENTIFICATION", 
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
28071 openat(AT_FDCWD, "/run/current-system/locale/2.33/en/LC_IDENTIFICATION", 

bug#34427: guile-bootstrap@2.2 segfault?

2022-04-12 Thread Ludovic Courtès
Hi,

Efraim Flashner  skribis:

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





bug#34427: guile-bootstrap@2.2 segfault?

2022-04-12 Thread zimoun
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  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





bug#34427: guile-bootstrap@2.2 segfault?

2019-02-12 Thread Efraim Flashner
On Tue, Feb 12, 2019 at 03:27:37PM +0100, Ludovic Courtès wrote:
> Hello Efraim,
> 
> Efraim Flashner  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 .
> 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  אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted


signature.asc
Description: PGP signature


bug#34427: guile-bootstrap@2.2 segfault?

2019-02-12 Thread Ludovic Courtès
Hello Efraim,

Efraim Flashner  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 .
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 61Feb 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’.





bug#34427: guile-bootstrap@2.2 segfault?

2019-02-11 Thread Efraim Flashner
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  אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
16301 
execve("/gnu/store/m7xa9rd869yrd88x6x7ri6wnan4f7yl4-guile-bootstrap-2.0/bin/guile",
 ["/gnu/store/m7xa9rd869yrd88x6x7ri"..., "--version"], 0xbf8fd040 /* 27 vars 
*/) = 0
16301 brk(NULL) = 0x106cc000
16301 brk(0x106ccd4c)   = 0x106ccd4c
16301 uname({sysname="Linux", nodename="g4", ...}) = 0
16301 set_tid_address(0x106cc068)   = 16301
16301 set_robust_list(0x106cc070, 12)   = 0
16301 rt_sigaction(SIGRTMIN, {sa_handler=0x100f0748, sa_mask=[], 
sa_flags=SA_SIGINFO}, NULL, 8) = 0
16301 rt_sigaction(SIGRT_1, {sa_handler=0x100f0828, sa_mask=[], 
sa_flags=SA_RESTART|SA_SIGINFO}, NULL, 8) = 0
16301 rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
16301 ugetrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0
16301 readlink("/proc/self/exe", "/gnu/store/m7xa9rd869yrd88x6x7ri"..., 4096) = 
73
16301 brk(0x106edd4c)   = 0x106edd4c
16301 brk(0x106ee000)   = 0x106ee000
16301 openat(AT_FDCWD, "/run/current-system/locale/2.28/locale-archive", 
O_RDONLY|O_LARGEFILE|O_CLOEXEC) = -1 ENOENT (No such file or directory)
16301 openat(AT_FDCWD, 
"/gnu/store/-glibc-cross-powerpc-linux-gnu-2.28/share/locale/locale.alias",
 O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
16301 openat(AT_FDCWD, 
"/run/current-system/locale/2.28/en_IL/LC_IDENTIFICATION", O_RDONLY|O_CLOEXEC) 
= -1 ENOENT (No such file or directory)
16301 openat(AT_FDCWD, "/run/current-system/locale/2.28/en/LC_IDENTIFICATION", 
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
16301 write(2, "guile: warning: failed to instal"..., 41) = 41
16301 futex(0x1036dd44, FUTEX_WAKE_PRIVATE, 2147483647) = 0
16301 openat(AT_FDCWD, "/proc/self/maps", O_RDONLY|O_CLOEXEC) = 3
16301 ugetrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0
16301 fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
16301 read(3, "0010-00103000 r-xp  "..., 1024) = 456
16301 close(3)  = 0
16301 sched_getaffinity(16301, 32, [0]) = 4
16301 brk(0x106fe000)   = 0x106fe000
16301 brk(0x1070e000)   = 0x1070e000
16301 brk(0x1071e000)   = 0x1071e000
16301 brk(0x1072e000)   = 0x1072e000
16301 brk(0x1073e000)   = 0x1073e000
16301 rt_sigaction(SIGPWR, {sa_handler=0x100e1514, sa_mask=~[INT QUIT ABRT TERM 
RTMIN RT_1], sa_flags=SA_RESTART|SA_SIGINFO}, NULL, 8) = 0
16301 rt_sigaction(SIGXCPU, {sa_handler=0x100e1200, sa_mask=~[INT QUIT ABRT 
TERM RTMIN RT_1], sa_flags=SA_RESTART}, NULL, 8) = 0
16301 rt_sigprocmask(SIG_UNBLOCK, [XCPU PWR], NULL, 8) = 0
16301 openat(AT_FDCWD, "/proc/stat", O_RDONLY) = 3
16301 read(3, "cpu  79046 1474 32444 6400729 91"..., 4096) = 1308
16301 close(3)  = 0
16301 swapcontext(0xbfd68968, 0)= 0
16301 brk(0x107be000)   = 0x107be000
16301 pipe2([3, 4], O_CLOEXEC)  = 0
16301 futex(0x1036dc98, FUTEX_WAKE_PRIVATE, 2147483647) = 0
16301 clock_gettime(CLOCK_REALTIME, {tv_sec=1549875824, tv_nsec=168848026}) = 0
16301 clock_gettime(CLOCK_PROCESS_CPUTIME_ID, {tv_sec=0, tv_nsec=7758656}) = 0
16301 openat(AT_FDCWD, 
"/gnu/store/-glibc-cross-powerpc-linux-gnu-2.28/lib/gconv/gconv-modules.cache",
 O_RDONLY) = -1 ENOENT (No such file or directory)
16301 openat(AT_FDCWD, 
"/gnu/store/-glibc-cross-powerpc-linux-gnu-2.28/lib/gconv/gconv-modules",
 O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
16301 futex(0x10380884, FUTEX_WAKE_PRIVATE, 2147483647) = 0
16301 openat(AT_FDCWD, "/dev/urandom", O_RDONLY|O_LARGEFILE) = 5
16301 fstat64(5, {st_mode=S_IFCHR|0666, st_rdev=makedev(0x1, 0x9), ...}) = 0
16301 ioctl(5, TCGETS, 0xbfd68ec8)  = -1 EINVAL (Invalid argument)
16301 read(5, 
"U\254.\237\4u\321\354\272\36e\316\7%\262\230\31A\2373\372p\313V7Le\325s\32\351\225"...,
 4096) = 4096
16301 close(5)  = 0
16301 brk(0x107ce000)   = 0x107ce000
16301 ioctl(0, TCGETS, {B38400 opost isig icanon echo ...}) = 0
16301 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) 
= 0xb7b6e000
16301 fcntl64(0, F_GETFL)   = 0x2 (flags O_RDWR)
16301 _llseek(0, 0, 0xbfd68a38, SEEK_CUR) = -1 ESPIPE (Illegal seek)
16301 ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
16301 fcntl64(1, F_GETFL)   = 0x2 (flags O_RDWR)
16301 _llseek(1, 0, 0xbfd68a38, SEEK_CUR) = -1 ESPIPE (Illegal seek)
16301 ioctl(2, TCGETS, {B38400 opost isig icanon echo ...}) = 0
16301 fcntl64(2, F_GETFL)   = 0x2 (flags O_RDWR)
16301