From nobody Sun Dec 03 22:07:16 2023 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Sk19z0ptQz51glT for ; Sun, 3 Dec 2023 22:07:19 +0000 (UTC) (envelope-from jsm@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Sk19z0JYSz4DtK for ; Sun, 3 Dec 2023 22:07:19 +0000 (UTC) (envelope-from jsm@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1701641239; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=EL9r7W1oziY+YLQGMRbvh7tQaAcSb2o7RR3z3cR+rRQ=; b=VEjEzmAOvcVlQHWUNmc7fXpCxKFlr1k8m1QpxdJ6QqxpPK/rGpfdu8MjWmXEC8/ZNY4bUi 3bcnGddYkUimH0Zowvkc3Q1dXhzl9J4xja4VhpDB3z+EdyqW7ixN3GEpLCtcfxaeEmkK+M 0ATIyItiZEmY8ikd1rIWHnIwV0CPugQ5Muxq+IIJDAB1iNHDB/XMTTOXMIJ/bOW4Ka3fnh ryVyHojgFAq/Im//5nso13S/CiM6V2ZK739EKgNpmXCXqEjk0pibWHn95uLXtl1JQle4oh ccIn9XAxXHJzQd22eXccuusuxq0BFhiucVmTaVe9Ya9VvZ7RsqLZoSKNe70sQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1701641239; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=EL9r7W1oziY+YLQGMRbvh7tQaAcSb2o7RR3z3cR+rRQ=; b=QOxV6rMrbJ/8fORZHKVQfMYKz6pcXPJYFQooMWyxetDOR6GJdqGp6qaZXvoVbK4e8gMT8J Ois8fz0E/rLBaFk5bHb1+CDa6CsGWzdWVXyudYhvOrLH2g2PhqVg9PLlep+smUHjH4a4D5 n3IlX9XGGXjt74xy2zE+SB3CHlttpqOWq1hP2Mn5ZsKWaAPJV/cjffk9+6occ8ubaSx8Rv UoGKNKUXhdddXs6qmgZ52KocI55jNbDxKxZzyDEjgNuKVVqnkn+HxRunZD317+xsZR0pjO vfHDYWHSMeCuHq0NXdpwFyrvlvkawbMhYB2lSqK8i1wLEd0a6W5c/2xb2quPDA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1701641239; a=rsa-sha256; cv=none; b=Knw6U9QR0tf4FR77bJvcNFATMd16ptdM7TH2a0VADm3hv6rS0Wzujc1u4uo1s+dz5QgpEc YOSI3OQv5/qknM1Mwkuao1AHu7FpoqEJUKKugTqSSPAlFBaqAaRhitQ30kytC5DjfhhA/3 J5/PXxDDQ3JWOR/CdZrx7E7zN58/RNizrhMhCGeamj4FXYZthVTrimqGufShhCUGE6q3Kw vcwgFy0R0bUTVijODzyYIdSefZx8bBkDmAcNxqz4TcubNfqOrofZeHvmyBni2jFsvHiSvv FHYNtPum7fKvSZNNwz0O2hIxEYovohk81s49zGuwYXXhnU1xxuEmx0xKW7LrEg== Received: from [192.168.1.5] (mail.northatlanticmusicsupplies.com [212.237.182.202]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: jsm) by smtp.freebsd.org (Postfix) with ESMTPSA id 4Sk19y4qSrzt41 for ; Sun, 3 Dec 2023 22:07:18 +0000 (UTC) (envelope-from jsm@FreeBSD.org) Message-ID: <8e75f7b2-3359-480c-8885-6bc5c5a88c58@FreeBSD.org> Date: Sun, 3 Dec 2023 23:07:16 +0100 List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: freebsd-arm From: Jesper Schmitz Mouridsen Subject: wasmtime main.rs with explicit panic! signals 4 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi Just a note *perhaps* related to Firefox crashing with signal 4 [1] This is really a **perhaps** because I have no clue, but an explicit panic from rust in wasm32-wasi causes a signal 4 crash only on arm64 as opposed to amd64.. FWIW: main.rs fn main() { panic!(); } rustc --target wasm32-wasi main.rs (on linux) wasmtime [2] main.wasm gives on arm64 explicit panic note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace Illegal instruction (core dumped) and on amd64 thread 'main' panicked at main.rs:2:1: explicit panic note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace Error: failed to run main module `main.wasm` Caused by: 0: failed to invoke command default 1: error while executing at wasm backtrace: 0: 0x4a16 - !__rust_start_panic 1: 0x485a - !rust_panic 2: 0x478d - !std::panicking::rust_panic_with_hook::h639672e96e0f2421 3: 0x41c - !std::panicking::begin_panic::{{closure}}::heb5f2434a371507e 4: 0x37a - !std::sys_common::backtrace::__rust_end_short_backtrace::hd6c4b8ac380c74ed 5: 0x5b8 - !std::panicking::begin_panic::h00c5404b50e70c31 6: 0xb48 - !main::main::hd80a274883898d96 7: 0x451 - !core::ops::function::FnOnce::call_once::hc7ab48c327164eaa 8: 0x428 - !std::sys_common::backtrace::__rust_begin_short_backtrace::h00cde78d9b3ae99b 9: 0x509 - !std::rt::lang_start::{{closure}}::hecd871948b8b4e5c 10: 0x22ce - !std::rt::lang_start_internal::h409072ad2c29d9a2 11: 0x4b4 - !std::rt::lang_start::hf51f2ca32a721dea 12: 0xb6c - !__main_void 13: 0x2ba - !_start note: using the `WASMTIME_BACKTRACE_DETAILS=1` environment variable may show more debugging information 2: wasm trap: wasm `unreachable` instruction executed 1 https://lists.freebsd.org/archives/freebsd-arm/2023-December/003323.html 2 https://github.com/bytecodealliance/wasmtime.git