From: Enzo Nicosia Subject: Re: [BUG] net/iamb: segfaults in latest 8.0 snapshot To: Stuart Henderson Cc: ports@openbsd.org Date: Mon, 5 Oct 2026 16:06:18 +0000 On Mon, Oct 05, 2026 at 04:48:38PM +0100, Stuart Henderson wrote: > On 2026/10/05 13:04, Enzo Nicosia wrote: > > Hi all, > > > > sorry but have to post this here as net/iamb is maintained by the ports > > ML: > > > > net/iamb segfaults in the latest 8.0 snapshot. I have built it from the > > latest port tree. The system is running the latest snapshot (updated on > > October 3rd). I have not been able to pinpoint the issue though, as the > > stack trace is not exactly "legible". The latest few entries are as > > follows: > > Steps to reproduce would be helpful. > Thanks. Apols for the truncated bt (had tried with both gdb and egdb, egdb output below). As requested. Full stacktrace follows (long and unwrapped lines below). $ pkg_info iamb | head -1 Information for inst:iamb-0.0.12 $ whereis iamb /usr/local/bin/iamb $ iamb * Logging in for @XXXX:matrix.org... * Syncing... Segmentation fault (core dumped) $ iamb -P profile * Logging in for @XXXXX:otherserver.org... * Syncing... Segmentation fault (core dumped) $ egdb /usr/local/bin/iamb GNU gdb (GDB) 17.2 Copyright (C) 2025 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later ..... omissis ..... (gdb) run Starting program: /usr/local/bin/iamb * Logging in for @XXXXX:matrix.org... * Syncing... [New thread 426062 of process 92805] [New thread 443768 of process 92805] [New thread 412848 of process 92805] [New thread 219971 of process 92805] [New thread 549511 of process 92805] [New thread 407707 of process 92805] [New thread 323891 of process 92805] [New thread 352781 of process 92805] [New thread 112965 of process 92805] [New thread 169894 of process 92805] [New thread 277389 of process 92805] [New thread 467895 of process 92805] [New thread 499449 of process 92805] [New thread 494925 of process 92805] [New thread 272060 of process 92805] Thread 2 "iamb-worker-1" received signal SIGSEGV, Segmentation fault. [Switching to thread 426062 of process 92805] 0x00000596746d498f in aws_lc_0_45_0_curve25519_x25519base_alt () (gdb) bt #0 0x00000596746d498f in aws_lc_0_45_0_curve25519_x25519base_alt () #1 0x000005967455f774 in aws_lc_0_45_0_X25519_keypair () #2 0x000005967454179e in pkey_x25519_keygen () #3 0x0000059674579c0c in aws_lc_0_45_0_EVP_PKEY_keygen () #4 0x000005967453214a in >::generate:: core::result::Result<(), ()>> () #5 0x00000596744c85e1 in ::start () #6 0x00000596744e4a95 in rustls::client::tls13::initial_key_share () #7 0x00000596744c03bc in ::start_handshake () #8 0x00000596744e1db3 in >::for_client () #9 0x00000596744c1cbd in ::new_with_alpn () #10 0x0000059674476d62 in ::connect_impl::>, ::connect>>::{closure#0}> () #11 0x000005967448cad5 in > as tower_service::Service>::call::{closure#4} () #12 0x0000059674488df7 in ::connect_with_maybe_proxy::{closure#0} () #13 0x0000059674488465 in reqwest::connect::with_timeout::::connect_with_maybe_proxy::{closure#0}>::{closure#0} () #14 0x000005967446a380 in >, futures_util::fns::MapErrFn<>::connect_to::{closure#0}::{closure#0}>> as core::future::future::Future>::poll () #15 0x000005967446999a in , >::connect_to::{closure#0}::{closure#0}>>, futures_util::fns::MapOkFn<>::connect_to::{closure#0}::{closure#1}>> as core::future::future::Future>::poll () #16 0x000005967440f08e in , >::connect_to::{closure#0}::{closure#0}>, >::connect_to::{closure#0}::{closure#1}>, futures_util::future::either::Either>::connect_to::{closure#0}::{closure#1}::{closure#0}>>, futures_util::future::ready::Ready, (http::uri::scheme::Scheme, http::uri::authority::Authority)>, hyper_util::client::legacy::client::Error>>>> as core::future::future::Future>::poll () #17 0x0000059674414fbf in >::connect_to::{closure#0}, futures_util::future::either::Either, >::connect_to::{closure#0}::{closure#0}>, futures_util::future::either::Either>::connect_to::{closure#0}::{closure#1}::{closure#0}>>, futures_util::future::ready::Ready, (http::uri::scheme::Scheme, http::uri::authority::Authority)>, hyper_util::client::legacy::client::Error>>>, >::connect_to::{closure#0}::{closure#1}>, futures_util::future::ready::Ready, (http::uri::scheme::Scheme, http::uri::authority::Authority)>, hyper_util::client::legacy::client::Error>>>> as core::future::future::Future>::poll () #18 0x00000596743f9c23 in >::send_request::{closure#0} () #19 0x0000059674457038 in >>::call::{closure#0} () #20 0x0000059674471338 in > as core::future::future::Future>::poll () #21 0x000005967446d2e8 in , reqwest::async_impl::body::Body, reqwest::redirect::TowerRedirectPolicy> as core::future::future::Future>::poll () #22 0x000005967440dc9a in , reqwest::async_impl::body::Body, reqwest::redirect::TowerRedirectPolicy>> as core::future::future::Future>::poll () #23 0x0000059674472acd in ::poll () #24 0x0000059674472a2e in ::poll () #25 0x0000059672b209e2 in matrix_sdk::http_client::native::send_request::{closure#0} () #26 0x0000059672c9b33b in ::send_request::{closure#0}::{closure#0}::{closure#0}, ::send_request::{closure#0}::{closure#0}, backon::sleep::TokioSleeper, for<'a> fn(&'a matrix_sdk::error::HttpError) -> bool, for<'a> fn(&'a matrix_sdk::error::HttpError, core::time::Duration), ::send_request::{closure#0}::{closure#1}> as core::future::future::Future>::poll () #27 0x0000059672050b81 in ::send_request::{closure#0}>> as core::future::future::Future>::poll () #28 0x0000059672093533 in ::send_inner::{closure#0}>> as core::future::future::Future>::poll () #29 0x0000059671f8e057 in as core::future::into_future::IntoFuture>::into_future::{closure#0} () #30 0x0000059672a52096 in ::sync_once::{closure#0}::{closure#0} () #31 0x0000059672c68a53 in ::sync_loop_helper::{closure#0}> as core::future::future::Future>::poll () #32 0x0000059672830805 in , ::sync_stream::{closure#0}::{closure#0}::{closure#0}> as futures_core::stream::Stream>::poll_next () #33 0x00000596729ffff5 in ::sync_with_result_callback::<::sync_with_callback<::sync::{closure#0}::{closure#0}::{closure#0}, ::sync::{closure#0}::{closure#0}>::{closure#0}::{closure#0}::{closure#0}::{closure#0}, ::sync_with_callback<::sync::{closure#0}::{closure#0}::{closure#0}, ::sync::{closure#0}::{closure#0}>::{closure#0}::{closure#0}::{closure#0}>::{closure#0}::{closure#0} () #34 0x00000596729fe8c2 in ::sync_with_callback::<::sync::{closure#0}::{closure#0}::{closure#0}, ::sync::{closure#0}::{closure#0}>::{closure#0}::{closure#0} () #35 0x0000059672a57a3e in ::login_and_sync::{closure#0}::{closure#1} () #36 0x0000059672b9ae65 in ::login_and_sync::{closure#0}::{closure#1}, alloc::sync::Arc>>::poll () #37 0x0000059674cf676f in ::run_task () #38 0x0000059674cf8c0f in tokio::runtime::scheduler::multi_thread::worker::run () #39 0x0000059674d0e593 in ::launch::{closure#0}> as core::future::future::Future>::poll () #40 0x0000059674d0065e in ::launch::{closure#0}>, tokio::runtime::blocking::schedule::BlockingSchedule>>::poll () #41 0x0000059674d0588c in ::launch::{closure#0}>, tokio::runtime::blocking::schedule::BlockingSchedule>>::poll () #42 0x0000059674d0cb15 in >::run () #43 0x0000059674cfc2ff in std::sys::backtrace::__rust_begin_short_backtrace::<::spawn_thread::{closure#0}, ()> () #44 0x0000059674d09e47 in ::spawn_thread::{closure#0}, ()>::{closure#1} as core::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} () #45 0x000005967500b54b in ::new::thread_start () #46 0x000005989b892c52 in _rthread_start (v=0x8) at /usr/src/lib/librthread/rthread.c:99 #47 0x00000598a9615e4a in __tfork_thread () at /usr/src/lib/libc/arch/amd64/sys/tfork_thread.S:87 (gdb) --