unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Segmentation fault when running rust-cargo
@ 2023-05-25  7:19 Sam Lockart
  2023-05-29 18:08 ` Efraim Flashner
  0 siblings, 1 reply; 2+ messages in thread
From: Sam Lockart @ 2023-05-25  7:19 UTC (permalink / raw)
  To: help-guix

I am trying to run `cargo update` (version 1.59.0) on a rust project but am
encountering a segmentation fault.

=2D-8<---------------cut here---------------start------------->8---
(gdb) run update
Starting program:
/gnu/store/3p1vy8lqx0fazck9gnmk0dlp6hni3zqs-profile/bin/cargo update
[Thread debugging using libthread_db enabled]
Using host libthread_db library
"/gnu/store/gsjczqir1wbz8p770zndrpw4rnppmxi3-glibc-2.35/lib/libthread_db.so.1".
    Updating crates.io index

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7f48128 in ?? () from
/gnu/store/kqcv7w297aihagjdj3pqkxd4ssdxnx4f-libgit2-1.5.1/lib/libgit2.so.1.5
(gdb) bt
#0  0x00007ffff7f48128 in ?? () from
/gnu/store/kqcv7w297aihagjdj3pqkxd4ssdxnx4f-libgit2-1.5.1/lib/libgit2.so.1.5
#1  0x00007ffff7f49db5 in git_remote_fetch () from
/gnu/store/kqcv7w297aihagjdj3pqkxd4ssdxnx4f-libgit2-1.5.1/lib/libgit2.so.1.5
#2  0x00005555559d76cc in ?? ()
#3  0x0000555555726bd0 in ?? ()
#4  0x0000555555724755 in ?? ()
#5  0x0000555555700f04 in ?? ()
#6  0x0000555555a02bd8 in ?? ()
#7  0x0000555555725d15 in ?? ()
#8  0x00005555559fa029 in ?? ()
#9  0x0000555555961160 in ?? ()
#10 0x0000555555ac74c9 in ?? ()
#11 0x0000555555ac96b7 in ?? ()
#12 0x0000555555955843 in ?? ()
#13 0x0000555555accfb9 in ?? ()
#14 0x0000555555ade54c in ?? ()
#15 0x0000555555a5c3e0 in ?? ()
#16 0x000055555576fa1a in ?? ()
#17 0x00005555559581e7 in ?? ()
#18 0x0000555555adab1d in ?? ()
#19 0x0000555555ad7bd5 in ?? ()
#20 0x0000555555ad357f in ?? ()
#21 0x0000555555a32573 in ?? ()
#22 0x0000555555aeee56 in ?? ()
#23 0x0000555555aef785 in ?? ()
#24 0x0000555555681f58 in ?? ()
#25 0x00005555556896bb in ?? ()
#26 0x000055555568663d in ?? ()
#27 0x000055555565b005 in ?? ()
#28 0x00005555556985c3 in ?? ()
#29 0x00005555556b4d79 in ?? ()
#30 0x0000555555cdd5f1 in ?? ()
#31 0x000055555565fa82 in ?? ()
#32 0x00007ffff75501f7 in __libc_start_call_main () from
/gnu/store/gsjczqir1wbz8p770zndrpw4rnppmxi3-glibc-2.35/lib/libc.so.6
#33 0x00007ffff75502ac in __libc_start_main_impl () from
/gnu/store/gsjczqir1wbz8p770zndrpw4rnppmxi3-glibc-2.35/lib/libc.so.6
#34 0x000055555564b011 in ?? ()
=2D-8<---------------cut here---------------end--------------->8---

It seems to be caused by libgit2.so. Running with the '--offline' option
will not result in a segfault (because it presumably doesn't reach out to
git).

=2D-8<---------------cut here---------------start------------->8---
linux-vdso.so.1 (0x00007ffd08390000)
libgit2.so.1.5 =>
/gnu/store/kqcv7w297aihagjdj3pqkxd4ssdxnx4f-libgit2-1.5.1/lib/libgit2.so.1.5
(0x00007efc84ce6000)
libssh2.so.1 =>
/gnu/store/mnip2lqdzgdnm3asg9yf7g27bvk5kray-libssh2-1.10.0/lib/libssh2.so.1
(0x00007efc8593d000)
libz.so.1 =>
/gnu/store/slzq3zqwj75lbrg4ly51hfhbv2vhryv5-zlib-1.2.13/lib/libz.so.1
(0x00007efc8591f000)
libcurl.so.4 =>
/gnu/store/b727ryyfiz1cfdywjp8s1wmxd6lzsz8p-curl-7.85.0/lib/libcurl.so.4
(0x00007efc84c53000)
libssl.so.3 =>
/gnu/store/69wd3pd1hd3j84xr965jj2fk2qmxn0hl-openssl-3.0.8/lib/libssl.so.3
(0x00007efc84ba7000)
libcrypto.so.3 =>
/gnu/store/69wd3pd1hd3j84xr965jj2fk2qmxn0hl-openssl-3.0.8/lib/libcrypto.so.3
(0x00007efc84600000)
libgcc_s.so.1 =>
/gnu/store/930nwsiysdvy2x5zv1sf6v7ym75z8ayk-gcc-11.3.0-lib/lib/gcc/x86_64-unknown-linux-gnu/11.3.0/../../../libgcc_s.so.1
(0x00007efc85903000)
libm.so.6 =>
/gnu/store/gsjczqir1wbz8p770zndrpw4rnppmxi3-glibc-2.35/lib/libm.so.6
(0x00007efc84aca000)
libc.so.6 =>
/gnu/store/gsjczqir1wbz8p770zndrpw4rnppmxi3-glibc-2.35/lib/libc.so.6
(0x00007efc84404000)
/gnu/store/gsjczqir1wbz8p770zndrpw4rnppmxi3-glibc-2.35/lib/ld-linux-x86-64.so.2
(0x00007efc85974000)
libhttp_parser.so.2.9 =>
/gnu/store/0s8cmg8vlwr8hakdkz5zaicm5rrm3zjw-http-parser-2.9.4-1.ec8b5ee/lib/libhttp_parser.so.2.9
(0x00007efc858f5000)
libpcre2-8.so.0 =>
/gnu/store/i7f40vxcp8gi05pzcf75s3hvv8m2gv0i-pcre2-10.40/lib/libpcre2-8.so.0
(0x00007efc84367000)
libgcrypt.so.20 =>
/gnu/store/8y0pwifz8a3d7zbdfzsawa1amf4afx1s-libgcrypt-1.10.1/lib/libgcrypt.so.20
(0x00007efc84224000)
libnghttp2.so.14 =>
/gnu/store/n0xrvryfjg2yciifxb2c0ac5rx9wy0xi-nghttp2-1.49.0-lib/lib/libnghttp2.so.14
(0x00007efc858c3000)
libidn2.so.0 =>
/gnu/store/1r1azdi4hvfypnx14d01n60p4aa7g2im-libidn2-2.3.4/lib/libidn2.so.0
(0x00007efc84a78000)
libnettle.so.8 =>
/gnu/store/c2fx42ial6lr60s96xcbml5hd8vwaxq3-nettle-3.8.1/lib/libnettle.so.8
(0x00007efc841d6000)
libgnutls.so.30 =>
/gnu/store/yr4lbvdyc4dgs76yij1dw2w2z8s84af8-gnutls-3.7.7/lib/libgnutls.so.30
(0x00007efc83e00000)
libgssapi_krb5.so.2 =>
/gnu/store/1i0iz5rgixyva0zy4bmaasjil2683xrn-mit-krb5-1.20/lib/libgssapi_krb5.so.2
(0x00007efc84184000)
libgpg-error.so.0 =>
/gnu/store/m9wi9hcrf7f9dm4ri32vw1jrbh1csywi-libgpg-error-1.45/lib/libgpg-error.so.0
(0x00007efc85899000)
libunistring.so.2 =>
/gnu/store/0jk7sl5xqwwdkzjpp9sxgz9z0d48a3vy-libunistring-1.0/lib/libunistring.so.2
(0x00007efc83c53000)
libp11-kit.so.0 =>
/gnu/store/vq7dxp5la2lnhsvniwv38j0ggvsmzim7-p11-kit-0.24.1/lib/libp11-kit.so.0
(0x00007efc84050000)
libffi.so.8 =>
/gnu/store/w8b0l8hk6g0fahj4fvmc4qqm3cvaxnmv-libffi-3.4.4/lib/libffi.so.8
(0x00007efc84040000)
libtasn1.so.6 =>
/gnu/store/j5kzdjan6mnf2ngmkc50fia8vrbpqi9b-libtasn1-4.19.0/lib/libtasn1.so.6
(0x00007efc8402a000)
libhogweed.so.6 =>
/gnu/store/c2fx42ial6lr60s96xcbml5hd8vwaxq3-nettle-3.8.1/lib/libhogweed.so.6
(0x00007efc83c09000)
libgmp.so.10 =>
/gnu/store/ib2n2vzqpchc3bhh9i712w5sq9zapn8d-gmp-6.2.1/lib/libgmp.so.10
(0x00007efc83b6b000)
libkrb5.so.3 =>
/gnu/store/1i0iz5rgixyva0zy4bmaasjil2683xrn-mit-krb5-1.20/lib/libkrb5.so.3
(0x00007efc83a98000)
libk5crypto.so.3 =>
/gnu/store/1i0iz5rgixyva0zy4bmaasjil2683xrn-mit-krb5-1.20/lib/libk5crypto.so.3
(0x00007efc83a6b000)
libcom_err.so.3 =>
/gnu/store/1i0iz5rgixyva0zy4bmaasjil2683xrn-mit-krb5-1.20/lib/libcom_err.so.3
(0x00007efc85890000)
libkrb5support.so.0 =>
/gnu/store/1i0iz5rgixyva0zy4bmaasjil2683xrn-mit-krb5-1.20/lib/libkrb5support.so.0
(0x00007efc8401b000)
libresolv.so.2 =>
/gnu/store/gsjczqir1wbz8p770zndrpw4rnppmxi3-glibc-2.35/lib/libresolv.so.2
(0x00007efc83a58000)
=2D-8<---------------cut here---------------end--------------->8---

Thank you in advance!

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

* Re: Segmentation fault when running rust-cargo
  2023-05-25  7:19 Segmentation fault when running rust-cargo Sam Lockart
@ 2023-05-29 18:08 ` Efraim Flashner
  0 siblings, 0 replies; 2+ messages in thread
From: Efraim Flashner @ 2023-05-29 18:08 UTC (permalink / raw)
  To: Sam Lockart; +Cc: help-guix

[-- Attachment #1: Type: text/plain, Size: 1365 bytes --]

On Thu, May 25, 2023 at 07:19:07AM +0000, Sam Lockart wrote:
> I am trying to run `cargo update` (version 1.59.0) on a rust project but am
> encountering a segmentation fault.

What version of cargo are you running? The 'cargo' binary from the cargo
output of rust is 1.67.1 currently.

> =2D-8<---------------cut here---------------start------------->8---
> (gdb) run update
> Starting program:
> /gnu/store/3p1vy8lqx0fazck9gnmk0dlp6hni3zqs-profile/bin/cargo update
> [Thread debugging using libthread_db enabled]
> Using host libthread_db library
> "/gnu/store/gsjczqir1wbz8p770zndrpw4rnppmxi3-glibc-2.35/lib/libthread_db.so.1".
>     Updating crates.io index
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0x00007ffff7f48128 in ?? () from
> /gnu/store/kqcv7w297aihagjdj3pqkxd4ssdxnx4f-libgit2-1.5.1/lib/libgit2.so.1.5
> (gdb) bt
> #0  0x00007ffff7f48128 in ?? () from
> /gnu/store/kqcv7w297aihagjdj3pqkxd4ssdxnx4f-libgit2-1.5.1/lib/libgit2.so.1.5
> #1  0x00007ffff7f49db5 in git_remote_fetch () from
> /gnu/store/kqcv7w297aihagjdj3pqkxd4ssdxnx4f-libgit2-1.5.1/lib/libgit2.so.1.5
<snip>
> Thank you in advance!

-- 
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 #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

end of thread, other threads:[~2023-05-29 18:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-25  7:19 Segmentation fault when running rust-cargo Sam Lockart
2023-05-29 18:08 ` Efraim Flashner

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