From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id lngSFom4L1/jKwAA0tVLHw (envelope-from ) for ; Sun, 09 Aug 2020 08:49:13 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 2FxVEYm4L19BJgAAbx9fmQ (envelope-from ) for ; Sun, 09 Aug 2020 08:49:13 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id A99199403A9 for ; Sun, 9 Aug 2020 08:49:12 +0000 (UTC) Received: from localhost ([::1]:45506 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k4h0w-0000z2-8M for larch@yhetil.org; Sun, 09 Aug 2020 04:49:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59444) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k4h0o-0000yr-MB for bug-guix@gnu.org; Sun, 09 Aug 2020 04:49:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:48390) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k4h0o-0004AX-DZ for bug-guix@gnu.org; Sun, 09 Aug 2020 04:49:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k4h0o-00071K-6b for bug-guix@gnu.org; Sun, 09 Aug 2020 04:49:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#42740: Segfault in libssh during =?UTF-8?Q?=E2=80=98guix_?= =?UTF-8?Q?copy=E2=80=99?= Resent-From: Artyom Poptsov Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 09 Aug 2020 08:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42740 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 42740-submit@debbugs.gnu.org id=B42740.159696293026969 (code B ref 42740); Sun, 09 Aug 2020 08:49:02 +0000 Received: (at 42740) by debbugs.gnu.org; 9 Aug 2020 08:48:50 +0000 Received: from localhost ([127.0.0.1]:59936 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k4h0b-00070u-Ru for submit@debbugs.gnu.org; Sun, 09 Aug 2020 04:48:50 -0400 Received: from mail-il1-f176.google.com ([209.85.166.176]:40567) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k4h0Z-00070f-4Y for 42740@debbugs.gnu.org; Sun, 09 Aug 2020 04:48:48 -0400 Received: by mail-il1-f176.google.com with SMTP id x1so5209531ilp.7 for <42740@debbugs.gnu.org>; Sun, 09 Aug 2020 01:48:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=jFJbDRzPlk33gdktG8+k7mUR/KXn/sIhQPdkxhtB+ko=; b=cfX3xROMZtk/T41OahkLF4ipU5h5etGPJ5MgW53lPrFQRmL4+lATa2eGBUjqWKYqCv HPJcIRZvgwbjhYo2SNEeIgMZ94igz49YzfySKk7PwMGGhVVxkZXNFLugA6IMaiItJnRs o3j1cv2mkkd0Im9ubLbf0c7cdbjEg+8jY7Uw9WDS9TQzvOE9sU9nFMgmzisx0ZlshTQ/ QJ8ozqRpEx5d6fG4t/mIqy8M9BfxHZxUXT6UO1O+MtIb6H3JeWnu9ugghhKQ3pTbERqN Xnys8tZUjPryu8Q4S3tT22Et6CiUCYq8TUUYCk2DAkjaj3eAbbP2yve0HhPWdrushhCH /rEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=jFJbDRzPlk33gdktG8+k7mUR/KXn/sIhQPdkxhtB+ko=; b=Ax3cc2VdpztcXMTqRiyCjfEcU1GgrA9Sb54XBB5l3fFNxIrQRCy2igdRy8i46Nre7p u6Kqdj2UeN61cj2Stc6E/hfDCKGKlnsZWx7shW4CEpX6UGGjMMGryry/dXeWfT0ir6+I gtxYlx0MnMbZQlkXtYHx5SexKZ+e+GOu5bM/7XSbcEYGk87F+84GyzvSEi+tzKwgWte8 TZuR5Ev/Hfn4GAScAVKHIRXsi0S45XWZkGsgwhA69emMdqT7r6z0Ld6o1wyRAGw/cRxR 40TOPE9evkI/QkgHFHDtRMAjSA4SJ7npQ9sSmhql+pPoaDhdoIvl0i0gZ44oeNTTAXkL qQ+g== X-Gm-Message-State: AOAM531aZTKcttmMgisPfXLwNAQctD9CMrTtkmEi30DUlEac94Dwppjs OT5DY6C7xxImUvrH47nNG7w/VPLKoQJOCWgMLAo= X-Google-Smtp-Source: ABdhPJykOdkECH/yHDMjyMpykMKXZMjQ79j8pLt6ya2QAPCE9i8M01NRngd7q6Q3pBJpAlmI5mxSecAOBilZkaSRhjg= X-Received: by 2002:a92:6d10:: with SMTP id i16mr13468498ilc.228.1596962920930; Sun, 09 Aug 2020 01:48:40 -0700 (PDT) MIME-Version: 1.0 References: <871rkin6zi.fsf@inria.fr> In-Reply-To: <871rkin6zi.fsf@inria.fr> From: Artyom Poptsov Date: Sun, 9 Aug 2020 11:48:29 +0300 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 42740@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=cfX3xROM; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: 0.09 X-TUID: y52W6r1HhSKl Hello Ludovic, please check if this branch will work without segfaults in Guix: https://github.com/artyom-poptsov/guile-ssh/tree/wip-fix-segfaults-on-gc Key changes: - Channels are now protecting the parent session from GC'ing. - Every channel procedure now ensures that the parent session is connected before calling any libssh procedures upon a channel instance. The idea is that a channel cannot be created when a session is disconnected and when channel is present and the session is closed, it means that the session is disconnected and freed. - Artyom On Fri, 7 Aug 2020 at 12:25, Ludovic Court=C3=A8s wrote: > > Hi, > > I observe the following segfault: > > --8<---------------cut here---------------start------------->8--- > $ guix copy --to=3Dolimex /gnu/store/=E2=80=A6 -v3 --debug=3D3 > sending 66 store items (166 MiB) to 'A20-OLinuXino.local'... > exporting path `/gnu/store/als3v92k7l6ny44sci1x0p9x6d7z0ivp-mesa-20.0.8' > Adres-eraro(nekropsio el=C5=9Dutita) > $ guix describe > Generacio 152 Aug 04 2020 17:34:23 (nuna) > guix abe3c5e > repository URL: https://git.savannah.gnu.org/git/guix.git > branch: master > commit: abe3c5ed7d04985c987e6c81aeb1284354ea0c77 > $ gdb $(type -P guile) core > > [...] > > [Current thread is 1 (Thread 0x7f947b084b80 (LWP 12777))] > (gdb) bt > #0 0x00007f94751c0185 in deflate_fast () > from /gnu/store/rykm237xkmq7rl1p0nwass01p090p88x-zlib-1.2.11/lib/libz.= so.1 > #1 0x00007f94751c253d in deflate () from /gnu/store/rykm237xkmq7rl1p0nwa= ss01p090p88x-zlib-1.2.11/lib/libz.so.1 > #2 0x00007f9474a8db4a in gzip_compress (session=3Dsession@entry=3D0x1ff0= b10, source=3Dsource@entry=3D0x1ff07e0, > level=3D) at /tmp/guix-build-libssh-0.9.4.drv-0/source= /src/gzip.c:91 > #3 0x00007f9474a8de83 in compress_buffer (session=3Dsession@entry=3D0x1f= f0b10, buf=3D0x1ff07e0) > at /tmp/guix-build-libssh-0.9.4.drv-0/source/src/gzip.c:112 > #4 0x00007f9474a6ab5f in packet_send2 (session=3Dsession@entry=3D0x1ff0b= 10) > at /tmp/guix-build-libssh-0.9.4.drv-0/source/src/packet.c:1632 > #5 0x00007f9474a6ac32 in ssh_packet_send (session=3Dsession@entry=3D0x1f= f0b10) > at /tmp/guix-build-libssh-0.9.4.drv-0/source/src/packet.c:1810 > #6 0x00007f9474a54639 in channel_write_common (channel=3D0x1ff43a0, data= =3D0x7f9477995020, len=3D65536, is_stderr=3D0) > at /tmp/guix-build-libssh-0.9.4.drv-0/source/src/channels.c:1488 > #7 0x00007f9474ad8a9e in write_to_channel_port () > from /gnu/store/vj92bd6lcknylwka9v4n4h0i360n6vn4-guile-ssh-0.13.0/lib/= libguile-ssh.so.13 > #8 0x00007f947b749edc in scm_i_write_bytes (port=3D# 7f9477c23e00>, > src=3D"#" =3D {...}, start=3D0, count=3D65536) at ports.c:= 2865 > #9 0x00007f947b75186f in scm_put_bytevector (port=3D# 7f9477c23e00>, > bv=3D"#" =3D {...}, start=3D, count=3D) at r6rs-ports.c:676 > #10 0x00007f94750be427 in ?? () > #11 0x00007f947ad60d80 in ?? () > #12 0x00007f947b7ee620 in ?? () from /gnu/store/0w76khfspfy8qmcpjya41chj3= bgfcy0k-guile-3.0.4/lib/libguile-3.0.so.1 > #13 0x00007f947ad60d80 in ?? () > #14 0x00007f947b72743b in scm_jit_enter_mcode (thread=3D0x7f947ad60d80, t= hread@entry=3D0x28, > mcode=3D0x7f94750c63a0 "I\211\314I)\304I\203\374\020\017\214k ") at j= it.c:5852 > #15 0x00007f947b7828e9 in vm_regular_engine (thread=3D0x28) at vm-engine.= c:360 > #16 0x00007f947b7835b5 in scm_call_n (proc=3D, argv=3Dargv= @entry=3D0x7fff14699b38, nargs=3Dnargs@entry=3D1) > at vm.c:1608 > #17 0x00007f947b700c97 in scm_primitive_eval (exp=3D) at e= val.c:671 > #18 0x00007f947b7290fb in scm_primitive_load (filename=3D)= at load.c:131 > #19 0x00007f947b782151 in vm_regular_engine (thread=3D0x7f947ad60d80) at = vm-engine.c:972 > #20 0x00007f947b7835b5 in scm_call_n (proc=3D, argv=3Dargv= @entry=3D0x7fff14699d08, nargs=3Dnargs@entry=3D1) > at vm.c:1608 > #21 0x00007f947b700c97 in scm_primitive_eval (exp=3D, > exp@entry=3D((@ (ice-9 control) %) (begin ((@@ (ice-9 command-line) l= oad/lang) "/home/ludo/.config/guix/current/bin/guix") (quit)))) at eval.c:6= 71 > #22 0x00007f947b700cf3 in scm_eval ( > exp=3D((@ (ice-9 control) %) (begin ((@@ (ice-9 command-line) load/la= ng) "/home/ludo/.config/guix/current/bin/guix") (quit))), module_or_state= =3Dmodule_or_state@entry=3D"#" =3D {...}) at eval.c:705 > #23 0x00007f947b7595a0 in scm_shell (argc=3D8, argv=3D0x7fff1469a378) at = script.c:357 > #24 0x00007f947b7186ad in invoke_main_func (body_data=3D0x7fff1469a210) a= t init.c:308 > #25 0x00007f947b6fab2a in c_body (d=3D0x7fff1469a150) at continuations.c:= 430 > #26 0x00007f947b782151 in vm_regular_engine (thread=3D0x7f947ad60d80) at = vm-engine.c:972 > #27 0x00007f947b7835b5 in scm_call_n (proc=3D, argv=3Dargv= @entry=3D0x7fff14699f10, nargs=3Dnargs@entry=3D2) > at vm.c:1608 > #28 0x00007f947b6ffb2a in scm_call_2 (proc=3D, arg1=3D, arg2=3D) > at eval.c:503 > #29 0x00007f947b70132a in scm_c_with_exception_handler (type=3Dtype@entry= =3D#t, > handler=3Dhandler@entry=3D0x7f947b7787e0 , > handler_data=3Dhandler_data@entry=3D0x7fff1469a080, thunk=3Dthunk@ent= ry=3D0x7f947b778920 , > thunk_data=3Dthunk_data@entry=3D0x7fff1469a080) at exceptions.c:170 > #30 0x00007f947b778b1d in scm_c_catch (tag=3Dtag@entry=3D#t, body=3Dbody@= entry=3D0x7f947b6fab20 , > body_data=3Dbody_data@entry=3D0x7fff1469a150, handler=3Dhandler@entry= =3D0x7f947b6fadc0 , > handler_data=3Dhandler_data@entry=3D0x7fff1469a150, > pre_unwind_handler=3Dpre_unwind_handler@entry=3D0x7f947b6fac20 , > pre_unwind_handler_data=3D0x7f9479037240) at throw.c:168 > #31 0x00007f947b6fb0d3 in scm_i_with_continuation_barrier (body=3Dbody@en= try=3D0x7f947b6fab20 , > body_data=3Dbody_data@entry=3D0x7fff1469a150, handler=3Dhandler@entry= =3D0x7f947b6fadc0 , > handler_data=3Dhandler_data@entry=3D0x7fff1469a150, > pre_unwind_handler=3Dpre_unwind_handler@entry=3D0x7f947b6fac20 , > pre_unwind_handler_data=3D0x7f9479037240) at continuations.c:368 > #32 0x00007f947b6fb165 in scm_c_with_continuation_barrier (func=3D, data=3D) > at continuations.c:464 > #33 0x00007f947b7775bf in with_guile (base=3D0x7fff1469a1b8, data=3D0x7ff= f1469a1e0) at threads.c:645 > #34 0x00007f947b65ca68 in GC_call_with_stack_base () > from /gnu/store/iycnpxxrg8m9wf9w58d6zvp9sdby6m9d-libgc-7.6.12/lib/libg= c.so.1 > #35 0x00007f947b7778d8 in scm_i_with_guile (dynamic_state=3D, data=3Ddata@entry=3D0x7fff1469a1e0, > func=3Dfunc@entry=3D0x7f947b718690 ) at threads.c:6= 88 > #36 scm_with_guile (func=3Dfunc@entry=3D0x7f947b718690 = , data=3Ddata@entry=3D0x7fff1469a210) > at threads.c:694 > #37 0x00007f947b718822 in scm_boot_guile (argc=3Dargc@entry=3D8, argv=3Da= rgv@entry=3D0x7fff1469a378, > main_func=3Dmain_func@entry=3D0x401240 , closure=3Dclosur= e@entry=3D0x0) at init.c:291 > #38 0x0000000000401100 in main (argc=3D8, argv=3D0x7fff1469a378) at guile= .c:95 > (gdb) frame 3 > #3 0x00007f9474a8de83 in compress_buffer (session=3Dsession@entry=3D0x1f= f0b10, buf=3D0x1ff07e0) > at /tmp/guix-build-libssh-0.9.4.drv-0/source/src/gzip.c:112 > 112 /tmp/guix-build-libssh-0.9.4.drv-0/source/src/gzip.c: Dosiero a= =C5=AD dosierujo ne ekzistas. > (gdb) p *session > $1 =3D {common =3D {error =3D {error_code =3D 0, error_buffer =3D '\000' = }, callbacks =3D 0x0, > log_verbosity =3D 0}, socket =3D 0x1ff0720, serverbanner =3D 0x1ff1e0= 0 "SSH-2.0-OpenSSH_6.7p1 Debian-5+deb8u1", > clientbanner =3D 0x1ff15d0 "SSH-2.0-libssh_0.9.3", protoversion =3D 0, = server =3D 0, client =3D 1, openssh =3D 395008, > send_seq =3D 437, recv_seq =3D 157, last_rekey_time =3D {seconds =3D 0,= useconds =3D 0}, connected =3D 1, alive =3D 1, > flags =3D 3, extensions =3D 0, banner =3D 0x0, discon_msg =3D 0x0, in_b= uffer =3D 0x1ff0810, in_packet =3D {valid =3D 1, > len =3D 0, type =3D 93 ']'}, out_buffer =3D 0x1ff07e0, out_queue =3D = 0x1ff03f0, > pending_call_state =3D SSH_PENDING_CALL_NONE, session_state =3D SSH_SES= SION_STATE_AUTHENTICATED, > packet_state =3D PACKET_STATE_INIT, dh_handshake_state =3D DH_STATE_FIN= ISHED, > global_req_state =3D SSH_CHANNEL_REQ_STATE_NONE, agent_state =3D 0x0, a= uth =3D {auto_state =3D 0x1ff72b0, > service_state =3D SSH_AUTH_SERVICE_ACCEPTED, state =3D SSH_AUTH_STATE= _SUCCESS, supported_methods =3D 6, > current_method =3D 0}, first_kex_follows_guess_wrong =3D 0, in_hashbu= f =3D 0x0, out_hashbuf =3D 0x0, > current_crypto =3D 0x1ff0480, next_crypto =3D 0x1ff7b90, channels =3D 0= x1ff7290, maxchannel =3D 45, agent =3D 0x1ff0840, > kbdint =3D 0x0, gssapi =3D 0x0, srv =3D {rsa_key =3D 0x0, dsa_key =3D 0= x0, ecdsa_key =3D 0x0, ed25519_key =3D 0x0, > hostkey =3D SSH_KEYTYPE_UNKNOWN, hostkey_digest =3D SSH_DIGEST_AUTO},= ssh_message_list =3D 0x0, > ssh_message_callback =3D 0x0, ssh_message_callback_data =3D 0x0, server= _callbacks =3D 0x0, > ssh_connection_callback =3D 0x7f9474a58b30 , default_packet_callbacks =3D { > start =3D 1 '\001', n_callbacks =3D 100 'd', callbacks =3D 0x7f9474ac= b380 , > user =3D 0x1ff0b10}, packet_callbacks =3D 0x1ff1610, socket_callbacks= =3D {userdata =3D 0x1ff0b10, > data =3D 0x7f9474a6b030 , > controlflow =3D 0x7f9474a6a0e0 , > exception =3D 0x7f9474a72830 , connect= ed =3D 0x0}, default_poll_ctx =3D 0x1ff1dd0, > pcap_ctx =3D 0x0, opts =3D {identity =3D 0x1ff1340, username =3D 0x1ff1= 4a0 "olimex", > host =3D 0x1ff15f0 "A20-OLinuXino.local", bindaddr =3D 0x0, sshdir = =3D 0x1ff1660 "/home/ludo/.ssh", > knownhosts =3D 0x1ff1680 "/home/ludo/.ssh/known_hosts", > global_knownhosts =3D 0x1ff15a0 "/etc/ssh/ssh_known_hosts", wanted_me= thods =3D {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, > 0x1ff1520 "zlib@openssh.com,zlib", 0x1ff1630 "zlib@openssh.com,zlib= ", 0x0, 0x0}, > pubkey_accepted_types =3D 0x0, ProxyCommand =3D 0x0, custombanner =3D= 0x0, timeout =3D 3600, timeout_usec =3D 0, > port =3D 22, fd =3D -1, StrictHostKeyChecking =3D 1, compressionlevel= =3D 3 '\003', gss_server_identity =3D 0x0, > gss_client_identity =3D 0x0, gss_delegate_creds =3D 0, flags =3D 15, = nodelay =3D 1, config_processed =3D true, > options_seen =3D "\000\000\001\000\001", '\000' , r= ekey_data =3D 0, rekey_time =3D 0}, > socket_counter =3D 0x0, raw_counter =3D 0x0} > (gdb) info threads > Id Target Id Frame > * 1 Thread 0x7f947b084b80 (LWP 12777) 0x00007f9474a8de83 in compress_b= uffer (session=3Dsession@entry=3D0x1ff0b10, > buf=3D0x1ff07e0) at /tmp/guix-build-libssh-0.9.4.drv-0/source/src/gzi= p.c:112 > 2 Thread 0x7f947ad5e700 (LWP 12778) warning: Unexpected size of sect= ion `.reg-xstate/12778' in core file. > 0x00007f947b62b94c in futex_wait_cancelable (private=3D, > expected=3D0, futex_word=3D0x7f947b6836ec ) at ../sysdeps= /nptl/futex-internal.h:183 > 3 Thread 0x7f9478a9b700 (LWP 12781) warning: Unexpected size of sect= ion `.reg-xstate/12781' in core file. > 0x00007f94751c0782 in deflate_fast () > from /gnu/store/rykm237xkmq7rl1p0nwass01p090p88x-zlib-1.2.11/lib/libz.= so.1 > 4 Thread 0x7f947a3cd700 (LWP 12779) warning: Unexpected size of sect= ion `.reg-xstate/12779' in core file. > 0x00007f947b62b94c in futex_wait_cancelable (private=3D, > expected=3D0, futex_word=3D0x7f947b6836ec ) at ../sysdeps= /nptl/futex-internal.h:183 > 5 Thread 0x7f94767d6700 (LWP 12782) warning: Unexpected size of sect= ion `.reg-xstate/12782' in core file. > 0x00007f947b62f0a4 in __libc_read (fd=3D11, buf=3Dbuf@entry=3D0x7f94767d5= 660, > nbytes=3Dnbytes@entry=3D1) at ../sysdeps/unix/sysv/linux/read.c:26 > 6 Thread 0x7f9479a3c700 (LWP 12780) warning: Unexpected size of sect= ion `.reg-xstate/12780' in core file. > 0x00007f947b62b94c in futex_wait_cancelable (private=3D, > expected=3D0, futex_word=3D0x7f947b6836ec ) at ../sysdeps= /nptl/futex-internal.h:183 > (gdb) thread 3 > [Switching to thread 3 (Thread 0x7f9478a9b700 (LWP 12781))] > #0 0x00007f94751c0782 in deflate_fast () > from /gnu/store/rykm237xkmq7rl1p0nwass01p090p88x-zlib-1.2.11/lib/libz.= so.1 > (gdb) bt > #0 0x00007f94751c0782 in deflate_fast () > from /gnu/store/rykm237xkmq7rl1p0nwass01p090p88x-zlib-1.2.11/lib/libz.= so.1 > #1 0x00007f94751c253d in deflate () from /gnu/store/rykm237xkmq7rl1p0nwa= ss01p090p88x-zlib-1.2.11/lib/libz.so.1 > #2 0x00007f9474a8db4a in gzip_compress (session=3Dsession@entry=3D0x1ff0= b10, source=3Dsource@entry=3D0x1ff07e0, > level=3D) at /tmp/guix-build-libssh-0.9.4.drv-0/source= /src/gzip.c:91 > #3 0x00007f9474a8de83 in compress_buffer (session=3Dsession@entry=3D0x1f= f0b10, buf=3D0x1ff07e0) > at /tmp/guix-build-libssh-0.9.4.drv-0/source/src/gzip.c:112 > #4 0x00007f9474a6ab5f in packet_send2 (session=3Dsession@entry=3D0x1ff0b= 10) > at /tmp/guix-build-libssh-0.9.4.drv-0/source/src/packet.c:1632 > #5 0x00007f9474a6ac32 in ssh_packet_send (session=3Dsession@entry=3D0x1f= f0b10) > at /tmp/guix-build-libssh-0.9.4.drv-0/source/src/packet.c:1810 > #6 0x00007f9474a56178 in ssh_channel_send_eof (channel=3Dchannel@entry= =3D0x1ff1fd0) > at /tmp/guix-build-libssh-0.9.4.drv-0/source/src/channels.c:1250 > #7 0x00007f9474a5623b in ssh_channel_close (channel=3D0x1ff1fd0) > at /tmp/guix-build-libssh-0.9.4.drv-0/source/src/channels.c:1301 > #8 0x00007f9474ad8a56 in ptob_close () > from /gnu/store/vj92bd6lcknylwka9v4n4h0i360n6vn4-guile-ssh-0.13.0/lib/= libguile-ssh.so.13 > #9 0x00007f947b747153 in release_port (port=3D# 7f9474e9d060>) > at ports.c:165 > #10 0x00007f947b74a19b in close_port (port=3D# 7f9474e9d060>, > explicit=3D) at ports.c:893 > #11 0x00007f947b70132a in scm_c_with_exception_handler (type=3Dtype@entry= =3D#t, > handler=3Dhandler@entry=3D0x7f947b7787e0 , > handler_data=3Dhandler_data@entry=3D0x7f9478a9a970, thunk=3Dthunk@ent= ry=3D0x7f947b778920 , > thunk_data=3Dthunk_data@entry=3D0x7f9478a9a970) at exceptions.c:170 > #12 0x00007f947b778b1d in scm_c_catch (tag=3Dtag@entry=3D#t, body=3Dbody@= entry=3D0x7f947b74a200 , > body_data=3D, handler=3D, handler_data= =3Dhandler_data@entry=3D0x0, > pre_unwind_handler=3Dpre_unwind_handler@entry=3D0x0, pre_unwind_handl= er_data=3D0x0) at throw.c:168 > #13 0x00007f947b778b3e in scm_internal_catch (tag=3Dtag@entry=3D#t, body= =3Dbody@entry=3D0x7f947b74a200 , > body_data=3D, handler=3D, handler_data= =3Dhandler_data@entry=3D0x0) at throw.c:177 > #14 0x00007f947b745d84 in finalize_port (ptr=3D, data=3D) at ports.c:710 > #15 0x00007f947b6556ef in GC_invoke_finalizers () > from /gnu/store/iycnpxxrg8m9wf9w58d6zvp9sdby6m9d-libgc-7.6.12/lib/libg= c.so.1 > #16 0x00007f947b709e79 in scm_run_finalizers () at finalizers.c:399 > #17 0x00007f947b709efd in finalization_thread_proc (unused=3D) at finalizers.c:234 > #18 0x00007f947b6fab2a in c_body (d=3D0x7f9478a9ae50) at continuations.c:= 430 > #19 0x00007f947b782151 in vm_regular_engine (thread=3D0x7f947ad60b40) at = vm-engine.c:972 > #20 0x00007f947b7835b5 in scm_call_n (proc=3D, argv=3Dargv= @entry=3D0x7f9478a9ac10, nargs=3Dnargs@entry=3D2) > at vm.c:1608 > #21 0x00007f947b6ffb2a in scm_call_2 (proc=3D, arg1=3D, arg2=3D) > at eval.c:503 > #22 0x00007f947b70132a in scm_c_with_exception_handler (type=3Dtype@entry= =3D#t, > handler=3Dhandler@entry=3D0x7f947b7787e0 , > handler_data=3Dhandler_data@entry=3D0x7f9478a9ad80, thunk=3Dthunk@ent= ry=3D0x7f947b778920 , > thunk_data=3Dthunk_data@entry=3D0x7f9478a9ad80) at exceptions.c:170 > #23 0x00007f947b778b1d in scm_c_catch (tag=3Dtag@entry=3D#t, body=3Dbody@= entry=3D0x7f947b6fab20 , > body_data=3Dbody_data@entry=3D0x7f9478a9ae50, handler=3Dhandler@entry= =3D0x7f947b6fadc0 , > handler_data=3Dhandler_data@entry=3D0x7f9478a9ae50, > pre_unwind_handler=3Dpre_unwind_handler@entry=3D0x7f947b6fac20 , > pre_unwind_handler_data=3D0x7f9479037240) at throw.c:168 > #24 0x00007f947b6fb0d3 in scm_i_with_continuation_barrier (body=3Dbody@en= try=3D0x7f947b6fab20 , > body_data=3Dbody_data@entry=3D0x7f9478a9ae50, handler=3Dhandler@entry= =3D0x7f947b6fadc0 , > handler_data=3Dhandler_data@entry=3D0x7f9478a9ae50, > pre_unwind_handler=3Dpre_unwind_handler@entry=3D0x7f947b6fac20 , > pre_unwind_handler_data=3D0x7f9479037240) at continuations.c:368 > #25 0x00007f947b6fb165 in scm_c_with_continuation_barrier (func=3D, data=3D) > at continuations.c:464 > #26 0x00007f947b7775bf in with_guile (base=3D0x7f9478a9aeb8, data=3D0x7f9= 478a9aee0) at threads.c:645 > #27 0x00007f947b65ca68 in GC_call_with_stack_base () > from /gnu/store/iycnpxxrg8m9wf9w58d6zvp9sdby6m9d-libgc-7.6.12/lib/libg= c.so.1 > #28 0x00007f947b7778d8 in scm_i_with_guile (dynamic_state=3D, data=3D, > func=3D) at threads.c:688 > #29 scm_with_guile (func=3D, data=3D) at th= reads.c:694 > #30 0x00007f947b624f64 in start_thread (arg=3D0x7f9478a9b700) at pthread_= create.c:477 > #31 0x00007f947b17c9af in clone () at ../sysdeps/unix/sysv/linux/x86_64/c= lone.S:95 > --8<---------------cut here---------------end--------------->8--- > > This looks similar to : we have a > finalization thread closing a channel port that is still being used. > This may be a regression in Guile-SSH 0.13.0. > > Does that ring a bell, Artyom? > > Thanks, > Ludo=E2=80=99. > > --=20 Artyom V. Poptsov Home page: http://poptsov-artyom.narod.ru/ CADR Hackerspace co-founder: https://cadrspace.ru/ GPG: D0C2 EAC1 3310 822D 98DE B57C E9C5 A2D9 0898 A02F