GNU bug report logs -
#23911
Cat broken pipe segmentation fault when building Guile
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 23911 in the body.
You can then email your comments to 23911 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guile <at> gnu.org
:
bug#23911
; Package
guile
.
(Thu, 07 Jul 2016 16:31:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
"Stewart, Adam James" <ajstewart <at> anl.gov>
:
New bug report received and forwarded. Copy sent to
bug-guile <at> gnu.org
.
(Thu, 07 Jul 2016 16:31:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hello,
I'm trying to install Guile 2.0.11 but I'm running into problems. Make crashes with this error message:
cat: write error: Broken pipe
/bin/sh: line 1: 53341 Done(1) cat alist.doc arbiters.doc array-handle.doc array-map.doc arrays.doc async.doc backtrace.doc boolean.doc bitvectors.doc bytevectors.doc chars.doc control.doc continuations.doc debug.doc deprecated.doc deprecation.doc dynl.doc dynwind.doc eq.doc error.doc eval.doc evalext.doc expand.doc extensions.doc feature.doc filesys.doc fluids.doc foreign.doc fports.doc gc-malloc.doc gc.doc gettext.doc generalized-arrays.doc generalized-vectors.doc goops.doc gsubr.doc guardians.doc hash.doc hashtab.doc hooks.doc i18n.doc init.doc ioext.doc keywords.doc list.doc load.doc macros.doc mallocs.doc memoize.doc modules.doc numbers.doc objprop.doc options.doc pairs.doc ports.doc print.doc procprop.doc procs.doc promises.doc r6rs-ports.doc random.doc rdelim.doc read.doc root.doc rw.doc scmsigs.doc script.doc simpos.doc smob.doc sort.doc srcprop.doc srfi-1.doc srfi-4.doc srfi-13.doc srfi-14.doc srfi-60.doc stackchk.doc stacks.doc stime.doc strings.doc strorder.doc strports.doc struct.doc symbols.doc threads.doc throw.doc trees.doc uniform.doc values.doc variable.doc vectors.doc version.doc vports.doc weaks.doc dynl.doc posix.doc net_db.doc socket.doc regex-posix.doc
53342 Segmentation fault (core dumped) | GUILE_INSTALL_LOCALE=1 GUILE_AUTO_COMPILE=0 ../meta/uninstalled-env guild snarf-check-and-output-texi > guile-procedures.texi
make[3]: *** [guile-procedures.texi] Error 1
make[3]: Leaving directory `/scratch/ajstewart/spack-stage/spack-stage-7gx45p/guile-2.0.11/libguile'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/scratch/ajstewart/spack-stage/spack-stage-7gx45p/guile-2.0.11/libguile'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/scratch/ajstewart/spack-stage/spack-stage-7gx45p/guile-2.0.11'
make: *** [all] Error 2
Let me know if you would like the rest of my build output or the config.log.
Adam J. Stewart
Assistant Systems Administrator
Laboratory Computing Resource Center
Computing, Environment and Life Sciences
Argonne National Laboratory
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-guile <at> gnu.org
:
bug#23911
; Package
guile
.
(Sun, 10 Jul 2016 12:43:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 23911 <at> debbugs.gnu.org (full text, mbox):
Hi,
Thanks for the note. Can you please include the full config.log, the
full make log, and also a report of your environment variables as given
by "env"? Thanks :)
Note that there is a prerelease for Guile 2.0.12 which we should be
releasing shortly. Testing is welcome of this tarball:
https://hydra.nixos.org/build/37517801/download/4/guile-2.0.11.224-5b7b5.tar.xz
Regards,
Andy
On Thu 07 Jul 2016 18:03, "Stewart, Adam James" <ajstewart <at> anl.gov> writes:
> Hello,
>
> I'm trying to install Guile 2.0.11 but I'm running into problems. Make
> crashes with this error message:
>
> cat: write error: Broken pipe
> /bin/sh: line 1: 53341 Done(1) cat alist.doc arbiters.doc
> array-handle.doc array-map.doc arrays.doc async.doc backtrace.doc
> boolean.doc bitvectors.doc bytevectors.doc chars.doc control.doc
> continuations.doc debug.doc deprecated.doc deprecation.doc dynl.doc
> dynwind.doc eq.doc error.doc eval.doc evalext.doc expand.doc
> extensions.doc feature.doc filesys.doc fluids.doc foreign.doc
> fports.doc gc-malloc.doc gc.doc gettext.doc generalized-arrays.doc
> generalized-vectors.doc goops.doc gsubr.doc guardians.doc hash.doc
> hashtab.doc hooks.doc i18n.doc init.doc ioext.doc keywords.doc
> list.doc load.doc macros.doc mallocs.doc memoize.doc modules.doc
> numbers.doc objprop.doc options.doc pairs.doc ports.doc print.doc
> procprop.doc procs.doc promises.doc r6rs-ports.doc random.doc
> rdelim.doc read.doc root.doc rw.doc scmsigs.doc script.doc simpos.doc
> smob.doc sort.doc srcprop.doc srfi-1.doc srfi-4.doc srfi-13.doc
> srfi-14.doc srfi-60.doc stackchk.doc stacks.doc stime.doc strings.doc
> strorder.doc strports.doc struct.doc symbols.doc threads.doc throw.doc
> trees.doc uniform.doc values.doc variable.doc vectors.doc version.doc
> vports.doc weaks.doc dynl.doc posix.doc net_db.doc socket.doc
> regex-posix.doc
> 53342 Segmentation fault (core dumped) | GUILE_INSTALL_LOCALE=1
> GUILE_AUTO_COMPILE=0 ../meta/uninstalled-env guild
> snarf-check-and-output-texi > guile-procedures.texi
> make[3]: *** [guile-procedures.texi] Error 1
> make[3]: Leaving directory
> `/scratch/ajstewart/spack-stage/spack-stage-7gx45p/guile-2.0.11/libguile'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory
> `/scratch/ajstewart/spack-stage/spack-stage-7gx45p/guile-2.0.11/libguile'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory
> `/scratch/ajstewart/spack-stage/spack-stage-7gx45p/guile-2.0.11'
> make: *** [all] Error 2
>
> Let me know if you would like the rest of my build output or the
> config.log.
>
> Adam J. Stewart
> Assistant Systems Administrator
> Laboratory Computing Resource Center
> Computing, Environment and Life Sciences
> Argonne National Laboratory
Information forwarded
to
bug-guile <at> gnu.org
:
bug#23911
; Package
guile
.
(Mon, 11 Jul 2016 15:56:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 23911 <at> debbugs.gnu.org (full text, mbox):
On Mon 11 Jul 2016 15:05, "Stewart, Adam James" <ajstewart <at> anl.gov> writes:
> I just tried the prerelease tarball you suggested but am getting the
> same problem. My config.log, build output, and build environment
> variables are attached.
Thanks; all looked fine except that `environ_locale_charset' thing;
dunno.
Would you mind getting a backtrace from the core to see what happened?
It says "core dumped" so assuming you can find the core then you do "gdb
libguile/.libs/guile libguile/core" (assuming the core file is dumped in
the libguile directory), then "bt".
Cheers,
Andy
Information forwarded
to
bug-guile <at> gnu.org
:
bug#23911
; Package
guile
.
(Mon, 11 Jul 2016 19:37:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 23911 <at> debbugs.gnu.org (full text, mbox):
Hi,
Please keep the debbugs link in Cc. Thanks :)
On Mon 11 Jul 2016 18:36, "Stewart, Adam James" <ajstewart <at> anl.gov> writes:
> I tried your suggestion for getting the backtrace but I'm not sure if I did it correctly:
>
> $ gdb libguile/.libs/guile libguile/core-lt-guile-11-7459-3024-47528-1468254675
> Reading symbols from /scratch/ajstewart/spack-stage/spack-stage-6loD5i/guile-2.0.11.224-5b7b5/libguile/.libs/guile...done.
> (gdb) bt
> No stack.
> (gdb)
Weird. I guess this meant that nothing else had debug symbols, only
Guile.
How about running:
GUILE_AUTO_COMPILE=0 meta/guile
What does that print out?
Andy
Information forwarded
to
bug-guile <at> gnu.org
:
bug#23911
; Package
guile
.
(Wed, 13 Jul 2016 17:01:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 23911 <at> debbugs.gnu.org (full text, mbox):
Andy,
$ GUILE_AUTO_COMPILE=0 meta/guile
Segmentation fault (core dumped)
$ gdb libguile/.libs/guile libguile/core-lt-guile-11-7459-3024-47618-1468428920
Reading symbols from /scratch/ajstewart/spack-stage/spack-stage-c8z012/guile-2.0.11/libguile/.libs/guile...done.
(gdb) bt
No stack.
(gdb) quit
$ gdb libguile/.libs/guile core-lt-guile-11-7459-3024-47708-1468428949
Reading symbols from /scratch/ajstewart/spack-stage/spack-stage-c8z012/guile-2.0.11/libguile/.libs/guile...done.
(gdb) bt
No stack.
(gdb)
Those were the only two *core* files in my build root directory.
I'm currently building all of Guile's dependencies by hand, so there is always a chance there's an error in one of those libraries. I'm going to try building with as many of the system libraries as I can. Maybe I'll discover a bug in one of my installs.
Adam J. Stewart
Assistant Systems Administrator
Laboratory Computing Resource Center
Computing, Environment and Life Sciences
Argonne National Laboratory
________________________________________
From: Stewart, Adam James
Sent: Monday, July 11, 2016 11:36 AM
To: Andy Wingo
Subject: RE: bug#23911: Cat broken pipe segmentation fault when building Guile
Andy,
I tried unsetting LANG and LC_ALL but that didn't help. Nor did setting them to C instead of en_US.UTF-8. If you have any more locale suggestions I can try them.
I tried your suggestion for getting the backtrace but I'm not sure if I did it correctly:
$ gdb libguile/.libs/guile libguile/core-lt-guile-11-7459-3024-47528-1468254675
Reading symbols from /scratch/ajstewart/spack-stage/spack-stage-6loD5i/guile-2.0.11.224-5b7b5/libguile/.libs/guile...done.
(gdb) bt
No stack.
(gdb)
I've used gdb before, but I don't normally debug core dumps, so you may have to give me some pointers.
Adam J. Stewart
Assistant Systems Administrator
Laboratory Computing Resource Center
Computing, Environment and Life Sciences
Argonne National Laboratory
________________________________________
From: Andy Wingo [wingo <at> pobox.com]
Sent: Monday, July 11, 2016 10:55 AM
To: Stewart, Adam James
Cc: 23911 <at> debbugs.gnu.org
Subject: Re: bug#23911: Cat broken pipe segmentation fault when building Guile
On Mon 11 Jul 2016 15:05, "Stewart, Adam James" <ajstewart <at> anl.gov> writes:
> I just tried the prerelease tarball you suggested but am getting the
> same problem. My config.log, build output, and build environment
> variables are attached.
Thanks; all looked fine except that `environ_locale_charset' thing;
dunno.
Would you mind getting a backtrace from the core to see what happened?
It says "core dumped" so assuming you can find the core then you do "gdb
libguile/.libs/guile libguile/core" (assuming the core file is dumped in
the libguile directory), then "bt".
Cheers,
Andy
Information forwarded
to
bug-guile <at> gnu.org
:
bug#23911
; Package
guile
.
(Wed, 13 Jul 2016 20:46:01 GMT)
Full text and
rfc822 format available.
Message #20 received at 23911 <at> debbugs.gnu.org (full text, mbox):
Andy,
I finally have success! I think the problem was that I was building guile, gettext, and libunistring with my own libiconv. When I stopped building with libiconv and just used the system version, everything worked. The build passes make check and make installcheck now.
I'm not sure if there's a way for guile to detect whether or not libiconv is built properly. It would be nice if configure crashed with a useful error message instead of this core dump. But I'm satisfied now. Thanks for your help!
Adam J. Stewart
Assistant Systems Administrator
Laboratory Computing Resource Center
Computing, Environment and Life Sciences
Argonne National Laboratory
________________________________________
From: Stewart, Adam James
Sent: Wednesday, July 13, 2016 12:00 PM
To: Andy Wingo
Cc: 23911 <at> debbugs.gnu.org
Subject: RE: bug#23911: Cat broken pipe segmentation fault when building Guile
Andy,
$ GUILE_AUTO_COMPILE=0 meta/guile
Segmentation fault (core dumped)
$ gdb libguile/.libs/guile libguile/core-lt-guile-11-7459-3024-47618-1468428920
Reading symbols from /scratch/ajstewart/spack-stage/spack-stage-c8z012/guile-2.0.11/libguile/.libs/guile...done.
(gdb) bt
No stack.
(gdb) quit
$ gdb libguile/.libs/guile core-lt-guile-11-7459-3024-47708-1468428949
Reading symbols from /scratch/ajstewart/spack-stage/spack-stage-c8z012/guile-2.0.11/libguile/.libs/guile...done.
(gdb) bt
No stack.
(gdb)
Those were the only two *core* files in my build root directory.
I'm currently building all of Guile's dependencies by hand, so there is always a chance there's an error in one of those libraries. I'm going to try building with as many of the system libraries as I can. Maybe I'll discover a bug in one of my installs.
Adam J. Stewart
Assistant Systems Administrator
Laboratory Computing Resource Center
Computing, Environment and Life Sciences
Argonne National Laboratory
________________________________________
From: Stewart, Adam James
Sent: Monday, July 11, 2016 11:36 AM
To: Andy Wingo
Subject: RE: bug#23911: Cat broken pipe segmentation fault when building Guile
Andy,
I tried unsetting LANG and LC_ALL but that didn't help. Nor did setting them to C instead of en_US.UTF-8. If you have any more locale suggestions I can try them.
I tried your suggestion for getting the backtrace but I'm not sure if I did it correctly:
$ gdb libguile/.libs/guile libguile/core-lt-guile-11-7459-3024-47528-1468254675
Reading symbols from /scratch/ajstewart/spack-stage/spack-stage-6loD5i/guile-2.0.11.224-5b7b5/libguile/.libs/guile...done.
(gdb) bt
No stack.
(gdb)
I've used gdb before, but I don't normally debug core dumps, so you may have to give me some pointers.
Adam J. Stewart
Assistant Systems Administrator
Laboratory Computing Resource Center
Computing, Environment and Life Sciences
Argonne National Laboratory
________________________________________
From: Andy Wingo [wingo <at> pobox.com]
Sent: Monday, July 11, 2016 10:55 AM
To: Stewart, Adam James
Cc: 23911 <at> debbugs.gnu.org
Subject: Re: bug#23911: Cat broken pipe segmentation fault when building Guile
On Mon 11 Jul 2016 15:05, "Stewart, Adam James" <ajstewart <at> anl.gov> writes:
> I just tried the prerelease tarball you suggested but am getting the
> same problem. My config.log, build output, and build environment
> variables are attached.
Thanks; all looked fine except that `environ_locale_charset' thing;
dunno.
Would you mind getting a backtrace from the core to see what happened?
It says "core dumped" so assuming you can find the core then you do "gdb
libguile/.libs/guile libguile/core" (assuming the core file is dumped in
the libguile directory), then "bt".
Cheers,
Andy
Information forwarded
to
bug-guile <at> gnu.org
:
bug#23911
; Package
guile
.
(Thu, 14 Jul 2016 10:12:01 GMT)
Full text and
rfc822 format available.
Message #23 received at 23911 <at> debbugs.gnu.org (full text, mbox):
On Wed 13 Jul 2016 22:45, "Stewart, Adam James" <ajstewart <at> anl.gov> writes:
> I finally have success! I think the problem was that I was building
> guile, gettext, and libunistring with my own libiconv. When I stopped
> building with libiconv and just used the system version, everything
> worked. The build passes make check and make installcheck now.
>
> I'm not sure if there's a way for guile to detect whether or not
> libiconv is built properly. It would be nice if configure crashed with
> a useful error message instead of this core dump. But I'm satisfied
> now. Thanks for your help!
Yeah what a mess! We have historically had problems making sure that
libunistring was compiled with iconv support, but I didn't hear about
this particular one. Strange. I guess I will close this one though :)
Cheers,
Andy
Reply sent
to
Andy Wingo <wingo <at> pobox.com>
:
You have taken responsibility.
(Wed, 01 Mar 2017 08:14:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
"Stewart, Adam James" <ajstewart <at> anl.gov>
:
bug acknowledged by developer.
(Wed, 01 Mar 2017 08:14:01 GMT)
Full text and
rfc822 format available.
Message #28 received at 23911-done <at> debbugs.gnu.org (full text, mbox):
close
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 29 Mar 2017 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 8 years and 85 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.