From nobody Sat Jun 28 23:23:01 2025 X-Original-To: current@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 4bV7l42gK7z60bjl for ; Sat, 28 Jun 2025 23:23:12 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mx-01.divo.sbone.de (mx-01.divo.sbone.de [IPv6:2003:a:140a:2200:6:594:fffe:19]) (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 ECDSA (prime256v1) client-digest SHA256) (Client CN "mx-01.divo.sbone.de", Issuer "E5" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bV7l35r5Pz3gD1 for ; Sat, 28 Jun 2025 23:23:11 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Authentication-Results: mx1.freebsd.org; none Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:1025]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by mx-01.divo.sbone.de (Postfix) with ESMTPS id 6A165A64806; Sat, 28 Jun 2025 23:23:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=zabbadoz.net; s=20240622; t=1751152980; bh=fzWzztb+stjvhhS9QkzOKy0XwxtBZteEv1Q+00RA14Y=; h=Date:From:To:cc:Subject:In-Reply-To:References; b=TBBnFu6O6XKvR2/LvvzZT84w/NQ6sPpIUvonkZxoZ/l6XAvBQfmPOHi0ZJLbyvSn0 w04KVdBYznOQSWHTirlweVaEMQhlykHwtkvDjj/k2a3qVZWFhSolQ6+moj4QS8rj9P VV4j1aU3SYBTGMNJwZm7dek7Cy2QNSH2C/lJ7lmErAyKsQDODWPjlllBY9h2Vr27Cu Yg3KOlrFnHXO46uRlaV20QEuzypZbsjnBYo95Z1NGaWnSsPNqGhlOTVLNuE9cPtKtJ DFO3kCRGDAgUSZo4GXDDK/1ZPUaf6BjeCWXuKhtRlwd60U5b2iUSy14NoeoT2FQQ0B DuFaZT+E0vAFhpAEbFDBxKB+rCC3eIX65chIJOYVib3HQxVd9KHb/zwc+AkSAD9I4d +d98NhXUuofIAigA6NNWStx4YqbQT6OUcT5c2ovfi8cByKd75R58ZXoJTTrHVjTgpi C9LwgjDmtWwL6sKZ0kkP/RyiD/BaVNNeKdwDQRdzJk3k1EPXa3ujjpeUmLMm6Pm9S+ wCHltnZtsWgBbFJ9F0JEjO4LliGNcQA49AOkGxSHCn98g+7YNE4jzy52lM0VspnP35 b2Tkjm1zFvBi217sU895joUTxAY9CrgQ5Qeob0azBbWWTz0bna0apnJVEEGeVO4kv5 DLDxz6hC0BMk7gyqxzQIg/M8= Received: from content-filter.t4-02.sbone.de (content-filter.t4-02.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:2742]) (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) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id 0E3CD2D029D8; Sat, 28 Jun 2025 23:23:03 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:4902:0:7404:2:1025]) by content-filter.t4-02.sbone.de (content-filter.t4-02.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:2742]) (amavisd-new, port 10024) with ESMTP id WY4ggCE6BoWj; Sat, 28 Jun 2025 23:23:01 +0000 (UTC) Received: from strong-rtwn0.sbone.de (strong-rtwn0.sbone.de [IPv6:fde9:577b:c1a9:4902:3e64:cfff:fe55:bc80]) (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) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id BDE622D029E1; Sat, 28 Jun 2025 23:23:01 +0000 (UTC) Date: Sat, 28 Jun 2025 23:23:01 +0000 (UTC) From: "Bjoern A. Zeeb" To: Konstantin Belousov cc: current@freebsd.org Subject: Re: Illegal instruction (core dumped) In-Reply-To: Message-ID: References: <357r6812-o83q-42rr-ps01-322458p6pp65@yvfgf.mnoonqbm.arg> X-OpenPGP-Key-Id: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Rspamd-Queue-Id: 4bV7l35r5Pz3gD1 X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:3320, ipnet:2003::/19, country:DE] On Sun, 29 Jun 2025, Konstantin Belousov wrote: > On Sat, Jun 28, 2025 at 05:32:17PM +0000, Bjoern A. Zeeb wrote: >> Hi, >> >> happened in one of my dev VMs: >> >> # more /etc/wpa_supplicant.conf Illegal instruction (core dumped) >> >> As I see nothing in UPDATING in the range from HEAD to the commit I >> rebased --onto b93161a7e38d (downgrade of the kernel) that would >> explain this I am wondering. >> >> >> Mounted the disk image from the base system and checked the core: >> >> Program terminated with signal SIGILL, Illegal instruction. >> (gdb) where >> #0 0x00003fabd04ebeed in tgetflag_sp (sp=0x3fa3ad42f3a0 , id=0x3fa3ad42f3a0 "") at /usr/src/contrib/ncurses/ncurses/tinfo/lib_termcap.c:259 >> #1 0x00003fa3ad404e9e in get_term () at /usr/src/contrib/less/screen.c:1256 >> #2 0x00003fa3ad4042ef in main (argc=1, argv=0x3fabce1f26b8) at /usr/src/contrib/less/main.c:344 >> > > What is the instruction that faulted? > Also show the registers values used by the instruction. I am a bit rusty with this user spaec stuff ;-) Hope the below helps. (gdb) display/i $pc 1: x/i $pc => 0x3fabd04ebeed : cmove %rbx,%rcx (gdb) info f Stack level 0, frame at 0x3fabce1f25b0: rip = 0x3fabd04ebeed in tgetflag_sp (/usr/src/src.pecunia/contrib/ncurses/ncurses/tinfo/lib_termcap.c:259); saved rip = 0x3fa3ad404e9e called by frame at 0x3fabce1f2600 source language c. Arglist at 0x3fabce1f25a0, args: sp=0x3fa3ad42f3a0 , id=0x3fa3ad42f3a0 "" Locals at 0x3fabce1f25a0, Previous frame's sp is 0x3fabce1f25b0 Saved registers: rbx at 0x3fabce1f2590, rbp at 0x3fabce1f25a0, r14 at 0x3fabce1f2598, rip at 0x3fabce1f25a8 (gdb) info r rax 0x3fabd04fec30 70007166856240 rbx 0x3fabce1f4cb8 70007130115256 rcx 0xd00b620ed25bfd23 -3455560473278415581 rdx 0x3fabce1f2aaa 70007130106538 rsi 0x3fa3ad42f3a0 69972219065248 rdi 0x3fa3ad42f3a0 69972219065248 rbp 0x3fabce1f25a0 0x3fabce1f25a0 rsp 0x3fabce1f25a0 0x3fabce1f25a0 r8 0x11 17 r9 0x3 3 r10 0x10 16 r11 0x40 64 r12 0x3fabd145be60 70007182966368 r13 0x2 2 r14 0x3fa3ad43bab8 69972219116216 r15 0x1 1 rip 0x3fabd04ebeed 0x3fabd04ebeed eflags 0x10202 [ IF RF ] cs 0x43 67 ss 0x3b 59 ds 0x3b 59 es 0x3b 59 fs 0x13 19 gs 0x1b 27 fs_base 0x467b85825120 77496334831904 gs_base 0x0 0 | 0x3fabd04ebed7 test %rdi,%rdi | | 0x3fabd04ebeda je 0x3fabd04ebef3 | | 0x3fabd04ebedc mov 0x30(%rdi),%rcx | | 0x3fabd04ebee0 test %rcx,%rcx | | 0x3fabd04ebee3 mov 0x10d6e(%rip),%rax # 0x3fabd04fcc58 | | 0x3fabd04ebeea mov (%rax),%rbx | | >0x3fabd04ebeed cmove %rbx,%rcx | | 0x3fabd04ebef1 jmp 0x3fabd04ebf00 | | 0x3fabd04ebef3 mov 0x10d5e(%rip),%rax # 0x3fabd04fcc58 | | 0x3fabd04ebefa mov (%rax),%rbx | | 0x3fabd04ebefd mov %rbx,%rcx | | 0x3fabd04ebf00 xor %eax,%eax | | 0x3fabd04ebf02 test %rcx,%rcx | | 0x3fabd04ebf05 je 0x3fabd04ebfe6 | | 0x3fabd04ebf0b cmpb $0x0,(%rsi) | | 0x3fabd04ebf0e je 0x3fabd04ebfe6 | | 0x3fabd04ebf14 cmpb $0x0,0x1(%rsi) | | 0x3fabd04ebf18 je 0x3fabd04ebfe6 | -- Bjoern A. Zeeb r15:7