unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#23581: Grafted binaries crash
@ 2016-05-19  8:18 Ludovic Courtès
  2016-05-19  9:12 ` Ludovic Courtès
  2016-05-20 22:19 ` Ludovic Courtès
  0 siblings, 2 replies; 5+ messages in thread
From: Ludovic Courtès @ 2016-05-19  8:18 UTC (permalink / raw)
  To: 23581

Hello!

After an update to roughly 1c29f3ef8452860c4301d7ae57c89ac5956d1663, I
notice that several binaries crash, notably Evince and Conkeror:

Here’s an example:

--8<---------------cut here---------------start------------->8---
ludo@pluto ~$ guix build evince --no-grafts
/gnu/store/6d1az58r5bldgwjrg3n417359g1ixh2b-evince-3.20.0
ludo@pluto ~$ /gnu/store/6d1az58r5bldgwjrg3n417359g1ixh2b-evince-3.20.0/bin/evince

** (evince:16436): WARNING **: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files

(evince:16436): Gtk-WARNING **: Theme parsing error: <data>:56:20: The 'gtk-key-bindings' property has been renamed to '-gtk-key-bindings'

(Works fine.)

ludo@pluto ~$ guix build evince 
/gnu/store/kj8hfbwwg6vpzf1ryzdl514xbziml7y6-evince-3.20.0
ludo@pluto ~$ ulimit -c unlimited
ludo@pluto ~$ /gnu/store/kj8hfbwwg6vpzf1ryzdl514xbziml7y6-evince-3.20.0/bin/evince

** (evince:16467): WARNING **: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files

(evince:16467): Gtk-WARNING **: Theme parsing error: <data>:56:20: The 'gtk-key-bindings' property has been renamed to '-gtk-key-bindings'
Bus-eraro(nekropsio elŝutita)
ludo@pluto ~$ gdb /gnu/store/kj8hfbwwg6vpzf1ryzdl514xbziml7y6-evince-3.20.0/bin/.evince-real core 
GNU gdb (GDB) 7.11
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
[<gdb.printing.RegexpCollectionPrettyPrinter object at 0x7f69057d4438>, <function lookup_function at 0x7f69057d2ea0>]
Reading symbols from /gnu/store/kj8hfbwwg6vpzf1ryzdl514xbziml7y6-evince-3.20.0/bin/.evince-real...(no debugging symbols found)...done.
[New LWP 16480]
[New LWP 16470]
[New LWP 16467]
[New LWP 16473]
[New LWP 16479]
[New LWP 16474]
[New LWP 16471]
[New LWP 16478]
[New LWP 16475]
[New LWP 16472]
[New LWP 16476]
[New LWP 16477]

warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/gnu/store/8m00x5x8ykmar27s9248cmhnkdb2n54a-glibc-2.22/lib/libthread_db.so.1".
Core was generated by `/gnu/store/kj8hfbwwg6vpzf1ryzdl514xbziml7y6-evince-3.20.0/bin/evince'.
Program terminated with signal SIGBUS, Bus error.
#0  0x00007f8372c1315a in memset () from /gnu/store/8m00x5x8ykmar27s9248cmhnkdb2n54a-glibc-2.22/lib/ld-linux-x86-64.so.2
[Current thread is 1 (Thread 0x7f8353fff700 (LWP 16480))]
(gdb) bt
#0  0x00007f8372c1315a in memset () from /gnu/store/8m00x5x8ykmar27s9248cmhnkdb2n54a-glibc-2.22/lib/ld-linux-x86-64.so.2
#1  0x00007f8372c00ced in _dl_map_object_from_fd () from /gnu/store/8m00x5x8ykmar27s9248cmhnkdb2n54a-glibc-2.22/lib/ld-linux-x86-64.so.2
#2  0x00007f8372c0244e in _dl_map_object () from /gnu/store/8m00x5x8ykmar27s9248cmhnkdb2n54a-glibc-2.22/lib/ld-linux-x86-64.so.2
#3  0x00007f8372c069e2 in openaux () from /gnu/store/8m00x5x8ykmar27s9248cmhnkdb2n54a-glibc-2.22/lib/ld-linux-x86-64.so.2
#4  0x00007f8372c08f34 in _dl_catch_error () from /gnu/store/8m00x5x8ykmar27s9248cmhnkdb2n54a-glibc-2.22/lib/ld-linux-x86-64.so.2
#5  0x00007f8372c06c40 in _dl_map_object_deps () from /gnu/store/8m00x5x8ykmar27s9248cmhnkdb2n54a-glibc-2.22/lib/ld-linux-x86-64.so.2
#6  0x00007f8372c0d3e4 in dl_open_worker () from /gnu/store/8m00x5x8ykmar27s9248cmhnkdb2n54a-glibc-2.22/lib/ld-linux-x86-64.so.2
#7  0x00007f8372c08f34 in _dl_catch_error () from /gnu/store/8m00x5x8ykmar27s9248cmhnkdb2n54a-glibc-2.22/lib/ld-linux-x86-64.so.2
#8  0x00007f8372c0cd33 in _dl_open () from /gnu/store/8m00x5x8ykmar27s9248cmhnkdb2n54a-glibc-2.22/lib/ld-linux-x86-64.so.2
#9  0x00007f836ff2bfb9 in dlopen_doit () from /gnu/store/8m00x5x8ykmar27s9248cmhnkdb2n54a-glibc-2.22/lib/libdl.so.2
#10 0x00007f8372c08f34 in _dl_catch_error () from /gnu/store/8m00x5x8ykmar27s9248cmhnkdb2n54a-glibc-2.22/lib/ld-linux-x86-64.so.2
#11 0x00007f836ff2c589 in _dlerror_run () from /gnu/store/8m00x5x8ykmar27s9248cmhnkdb2n54a-glibc-2.22/lib/libdl.so.2
#12 0x00007f836ff2c051 in dlopen@@GLIBC_2.2.5 () from /gnu/store/8m00x5x8ykmar27s9248cmhnkdb2n54a-glibc-2.22/lib/libdl.so.2
#13 0x00007f836f117a32 in g_module_open () from /gnu/store/3yq04ykz98s4yli05nq5qvwaqya7ni9p-glib-2.48.0/lib/libgmodule-2.0.so.0
#14 0x00007f83729daeb9 in ev_module_load () from /gnu/store/kj8hfbwwg6vpzf1ryzdl514xbziml7y6-evince-3.20.0/lib/libevdocument3.so.4
#15 0x00007f836cbb3981 in g_type_module_use () from /gnu/store/3yq04ykz98s4yli05nq5qvwaqya7ni9p-glib-2.48.0/lib/libgobject-2.0.so.0
#16 0x00007f83729d6fa5 in ev_document_factory_new_document_for_mime_type () from /gnu/store/kj8hfbwwg6vpzf1ryzdl514xbziml7y6-evince-3.20.0/lib/libevdocument3.so.4
#17 0x00007f83729d71f5 in new_document_for_uri () from /gnu/store/kj8hfbwwg6vpzf1ryzdl514xbziml7y6-evince-3.20.0/lib/libevdocument3.so.4
#18 0x00007f83729d7460 in ev_document_factory_get_document () from /gnu/store/kj8hfbwwg6vpzf1ryzdl514xbziml7y6-evince-3.20.0/lib/libevdocument3.so.4
#19 0x00007f8372787a7f in ev_job_load_run () from /gnu/store/kj8hfbwwg6vpzf1ryzdl514xbziml7y6-evince-3.20.0/lib/libevview3.so.3
#20 0x00007f8372788f8a in ev_job_thread_proxy () from /gnu/store/kj8hfbwwg6vpzf1ryzdl514xbziml7y6-evince-3.20.0/lib/libevview3.so.3
#21 0x00007f836c8dfd45 in g_thread_proxy () from /gnu/store/3yq04ykz98s4yli05nq5qvwaqya7ni9p-glib-2.48.0/lib/libglib-2.0.so.0
#22 0x00007f836f685464 in start_thread () from /gnu/store/8m00x5x8ykmar27s9248cmhnkdb2n54a-glibc-2.22/lib/libpthread.so.0
#23 0x00007f836be875cd in clone () from /gnu/store/8m00x5x8ykmar27s9248cmhnkdb2n54a-glibc-2.22/lib/libc.so.6
(gdb) p (void*)$rdi
$1 = (void *) 0x7f83583f8728
(gdb) p (int)$rsi
$2 = 0
(gdb) p (int)$rdx
$3 = 1480558376
--8<---------------cut here---------------end--------------->8---

Ludo’.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#23581: Grafted binaries crash
  2016-05-19  8:18 bug#23581: Grafted binaries crash Ludovic Courtès
@ 2016-05-19  9:12 ` Ludovic Courtès
  2016-05-20 22:19 ` Ludovic Courtès
  1 sibling, 0 replies; 5+ messages in thread
From: Ludovic Courtès @ 2016-05-19  9:12 UTC (permalink / raw)
  To: 23581

ludo@gnu.org (Ludovic Courtès) skribis:

> ludo@pluto ~$ guix build evince 
> /gnu/store/kj8hfbwwg6vpzf1ryzdl514xbziml7y6-evince-3.20.0

This Evince has 3 grafts applied:

--8<---------------cut here---------------start------------->8---
ludo@pluto ~/src/guix$ grep '(replacement [a-z]' gnu/packages/*.scm
gnu/packages/backup.scm:    (replacement libarchive/fixed)
gnu/packages/openldap.scm:   (replacement openldap-2.4.44)
gnu/packages/pcre.scm:   (replacement pcre-fixed)
gnu/packages/tls.scm:    (replacement libtasn1/fixed)
gnu/packages/tls.scm:   (replacement openssl/fixed)
ludo@pluto ~/src/guix$ guix gc -R /gnu/store/kj8hfbwwg6vpzf1ryzdl514xbziml7y6-evince-3.20.0 |grep -E '(tasn|openldap|pcre|libarchive|openssl)'
/gnu/store/8abg63ynmsq2yxdk4zzhljj20436zvwq-openssl-1.0.2g
/gnu/store/yvbr4gi6phn3rnwvynscwgcddqf9cd8f-pcre-8.38
/gnu/store/r9swffa651bgq4cvjgh81h6aqqzgwkjf-libtasn1-4.7
/gnu/store/grv5viahihlzfc7cr86ryzhfyipj7qyh-pcre-8.38
ludo@pluto ~/src/guix$ guix build pcre
/gnu/store/grv5viahihlzfc7cr86ryzhfyipj7qyh-pcre-8.38
/gnu/store/1f9mp79lrqnivsrx7pjiwiqk85pphiag-pcre-8.38-doc
ludo@pluto ~/src/guix$ guix build pcre --no-grafts
/gnu/store/yvbr4gi6phn3rnwvynscwgcddqf9cd8f-pcre-8.38
/gnu/store/lk98q534cylzsydcpcwfix78jyiiizwr-pcre-8.38-doc
--8<---------------cut here---------------end--------------->8---

That we see 2 PCREs is due to <http://bugs.gnu.org/23132> and might
explain the problem.

Ludo’.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#23581: Grafted binaries crash
  2016-05-19  8:18 bug#23581: Grafted binaries crash Ludovic Courtès
  2016-05-19  9:12 ` Ludovic Courtès
@ 2016-05-20 22:19 ` Ludovic Courtès
  2016-05-21  1:44   ` Leo Famulari
  2016-05-24 21:58   ` Ludovic Courtès
  1 sibling, 2 replies; 5+ messages in thread
From: Ludovic Courtès @ 2016-05-20 22:19 UTC (permalink / raw)
  To: 23581

ludo@gnu.org (Ludovic Courtès) skribis:

> Bus-eraro(nekropsio elŝutita)

I was able to reproduce the bus error by grafting in ENOSPC conditions:

--8<---------------cut here---------------start------------->8---
@ build-started /gnu/store/dc8pxfdmmp35cpivsr78bwfp15ppx5ih-icecat-38.8.0-gnu1.drv - x86_64-linux /var/log/guix/drvs/dc//8pxfdmmp35cpivsr78bwfp15ppx5ih-icecat-38.8.0-gnu1.drv.bz2
grafting '/gnu/store/5z1q4zw73r8cx409qbmh7abhd6llm31c-icecat-38.8.0-gnu1' -> '/gnu/store/yahn165sj4ajx0zklgql6s4yiadmdpay-icecat-38.8.0-gnu1'...
In thread:
ERROR: In procedure scm_flush: No space left on device
In thread:
ERROR: In procedure scm_flush: No space left on device
Backtrace:
In unknown file:
   ?: 2 [apply-smob/1 #<catch-closure 8c96e0> quit #<unspecified>]
In ice-9/boot-9.scm:
 157: 1 [catch #t #<catch-closure 1d54ce0> ...]
In unknown file:
   ?: 0 [apply-smob/1 #<catch-closure 1d54ce0>]

ERROR: In procedure apply-smob/1:
ERROR: In procedure scm_flush: No space left on device
@ build-succeeded /gnu/store/dc8pxfdmmp35cpivsr78bwfp15ppx5ih-icecat-38.8.0-gnu1.drv -
@ build-started /gnu/store/3phgf8166l7dahscy5si13cky49yfwp7-conkeror-1.0pre1.20150730.drv - x86_64-linux /var/log/guix/drvs/3p//hgf8166l7dahscy5si13cky49yfwp7-conkeror-1.0pre1.20150730.drv.bz2
grafting '/gnu/store/19hbrx9nhr9g5a2am8yxhd7i7rn778j5-conkeror-1.0pre1.20150730' -> '/gnu/store/n5swnzg1gr48x53q3hjn953nph4vbz1l-conkeror-1.0pre1.20150730'...
@ build-succeeded /gnu/store/3phgf8166l7dahscy5si13cky49yfwp7-conkeror-1.0pre1.20150730.drv -
/gnu/store/n5swnzg1gr48x53q3hjn953nph4vbz1l-conkeror-1.0pre1.20150730
$ /gnu/store/n5swnzg1gr48x53q3hjn953nph4vbz1l-conkeror-1.0pre1.20150730/bin/conkeror
Bus-eraro
--8<---------------cut here---------------end--------------->8---

Note that, despite ENOSPC, the grafting derivation is marked as
succeeding.

After making some space, rebuilding the same derivation yields a
Conkeror that actually works.

The fix will be to error out upon ENOSPC.

Ludo’.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#23581: Grafted binaries crash
  2016-05-20 22:19 ` Ludovic Courtès
@ 2016-05-21  1:44   ` Leo Famulari
  2016-05-24 21:58   ` Ludovic Courtès
  1 sibling, 0 replies; 5+ messages in thread
From: Leo Famulari @ 2016-05-21  1:44 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 23581

On Sat, May 21, 2016 at 12:19:50AM +0200, Ludovic Courtès wrote:
> ludo@gnu.org (Ludovic Courtès) skribis:
> 
> > Bus-eraro(nekropsio elŝutita)
> 
> I was able to reproduce the bus error by grafting in ENOSPC conditions:
> 
> --8<---------------cut here---------------start------------->8---
> @ build-started /gnu/store/dc8pxfdmmp35cpivsr78bwfp15ppx5ih-icecat-38.8.0-gnu1.drv - x86_64-linux /var/log/guix/drvs/dc//8pxfdmmp35cpivsr78bwfp15ppx5ih-icecat-38.8.0-gnu1.drv.bz2
> grafting '/gnu/store/5z1q4zw73r8cx409qbmh7abhd6llm31c-icecat-38.8.0-gnu1' -> '/gnu/store/yahn165sj4ajx0zklgql6s4yiadmdpay-icecat-38.8.0-gnu1'...
> In thread:
> ERROR: In procedure scm_flush: No space left on device
> In thread:
> ERROR: In procedure scm_flush: No space left on device
> Backtrace:
> In unknown file:
>    ?: 2 [apply-smob/1 #<catch-closure 8c96e0> quit #<unspecified>]
> In ice-9/boot-9.scm:
>  157: 1 [catch #t #<catch-closure 1d54ce0> ...]
> In unknown file:
>    ?: 0 [apply-smob/1 #<catch-closure 1d54ce0>]
> 
> ERROR: In procedure apply-smob/1:
> ERROR: In procedure scm_flush: No space left on device
> @ build-succeeded /gnu/store/dc8pxfdmmp35cpivsr78bwfp15ppx5ih-icecat-38.8.0-gnu1.drv -
> @ build-started /gnu/store/3phgf8166l7dahscy5si13cky49yfwp7-conkeror-1.0pre1.20150730.drv - x86_64-linux /var/log/guix/drvs/3p//hgf8166l7dahscy5si13cky49yfwp7-conkeror-1.0pre1.20150730.drv.bz2
> grafting '/gnu/store/19hbrx9nhr9g5a2am8yxhd7i7rn778j5-conkeror-1.0pre1.20150730' -> '/gnu/store/n5swnzg1gr48x53q3hjn953nph4vbz1l-conkeror-1.0pre1.20150730'...
> @ build-succeeded /gnu/store/3phgf8166l7dahscy5si13cky49yfwp7-conkeror-1.0pre1.20150730.drv -
> /gnu/store/n5swnzg1gr48x53q3hjn953nph4vbz1l-conkeror-1.0pre1.20150730
> $ /gnu/store/n5swnzg1gr48x53q3hjn953nph4vbz1l-conkeror-1.0pre1.20150730/bin/conkeror
> Bus-eraro
> --8<---------------cut here---------------end--------------->8---
> 
> Note that, despite ENOSPC, the grafting derivation is marked as
> succeeding.

I think this happened to me when updating all the packages in my profile
after the recent libarchive CVE-2016-1541 bug-fix (e7806e6ca). I didn't
get a bus error, but another surprising failure in libarchive's test
suite after running out of space while building the grafted libarchive.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#23581: Grafted binaries crash
  2016-05-20 22:19 ` Ludovic Courtès
  2016-05-21  1:44   ` Leo Famulari
@ 2016-05-24 21:58   ` Ludovic Courtès
  1 sibling, 0 replies; 5+ messages in thread
From: Ludovic Courtès @ 2016-05-24 21:58 UTC (permalink / raw)
  To: 23581-done

ludo@gnu.org (Ludovic Courtès) skribis:

> ludo@gnu.org (Ludovic Courtès) skribis:
>
>> Bus-eraro(nekropsio elŝutita)
>
> I was able to reproduce the bus error by grafting in ENOSPC conditions:
>
> @ build-started /gnu/store/dc8pxfdmmp35cpivsr78bwfp15ppx5ih-icecat-38.8.0-gnu1.drv - x86_64-linux /var/log/guix/drvs/dc//8pxfdmmp35cpivsr78bwfp15ppx5ih-icecat-38.8.0-gnu1.drv.bz2
> grafting '/gnu/store/5z1q4zw73r8cx409qbmh7abhd6llm31c-icecat-38.8.0-gnu1' -> '/gnu/store/yahn165sj4ajx0zklgql6s4yiadmdpay-icecat-38.8.0-gnu1'...
> In thread:
> ERROR: In procedure scm_flush: No space left on device
> In thread:
> ERROR: In procedure scm_flush: No space left on device
> Backtrace:
> In unknown file:
>    ?: 2 [apply-smob/1 #<catch-closure 8c96e0> quit #<unspecified>]
> In ice-9/boot-9.scm:
>  157: 1 [catch #t #<catch-closure 1d54ce0> ...]
> In unknown file:
>    ?: 0 [apply-smob/1 #<catch-closure 1d54ce0>]
>
> ERROR: In procedure apply-smob/1:
> ERROR: In procedure scm_flush: No space left on device
> @ build-succeeded /gnu/store/dc8pxfdmmp35cpivsr78bwfp15ppx5ih-icecat-38.8.0-gnu1.drv -
> @ build-started /gnu/store/3phgf8166l7dahscy5si13cky49yfwp7-conkeror-1.0pre1.20150730.drv - x86_64-linux /var/log/guix/drvs/3p//hgf8166l7dahscy5si13cky49yfwp7-conkeror-1.0pre1.20150730.drv.bz2
> grafting '/gnu/store/19hbrx9nhr9g5a2am8yxhd7i7rn778j5-conkeror-1.0pre1.20150730' -> '/gnu/store/n5swnzg1gr48x53q3hjn953nph4vbz1l-conkeror-1.0pre1.20150730'...
> @ build-succeeded /gnu/store/3phgf8166l7dahscy5si13cky49yfwp7-conkeror-1.0pre1.20150730.drv -
> /gnu/store/n5swnzg1gr48x53q3hjn953nph4vbz1l-conkeror-1.0pre1.20150730
> $ /gnu/store/n5swnzg1gr48x53q3hjn953nph4vbz1l-conkeror-1.0pre1.20150730/bin/conkeror
> Bus-eraro
>
> Note that, despite ENOSPC, the grafting derivation is marked as
> succeeding.

Fixed in 007c20b61c84af11289f96d43374e2e688838a26.

Ludo’.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-05-24 21:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-19  8:18 bug#23581: Grafted binaries crash Ludovic Courtès
2016-05-19  9:12 ` Ludovic Courtès
2016-05-20 22:19 ` Ludovic Courtès
2016-05-21  1:44   ` Leo Famulari
2016-05-24 21:58   ` Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).