From nobody Thu Oct 21 23:24:23 2021 X-Original-To: freebsd-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 5F9421804C56 for ; Thu, 21 Oct 2021 23:24:40 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic304-22.consmr.mail.ne1.yahoo.com (sonic304-22.consmr.mail.ne1.yahoo.com [66.163.191.148]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Hb3Tz3dsXz3FJG for ; Thu, 21 Oct 2021 23:24:39 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1634858671; bh=X1JEADaR9p+90zx2i6+csNTnQj9BXRjWu0gAuwcbj+g=; h=From:Subject:Date:References:To:In-Reply-To:From:Subject:Reply-To; b=haTQMjM3pU6YXcyrfY7BbR/Mcmr2Wpqs1lDCrpRAqbEfnN7lbHbc1q/yc1vb4gAU2pQx4bg0H8R92H87w73A3a7V2diTuk3zEdkWofT29g968q/+20+4Ow6IFdpvysbpKOqh1h27Sm1q1J8oLTrbrb1HOuHQaeOspbPD0JKG4snfJF6iQ3EL/3hPaQrJPzgt2QWCiqMd+Vz2jSLF4R+gVQkRnZVxXc7eWrnBYATr5r/8/JjElPytxZDI//CsYGkrpJedGv7Rg0NdinFcbMCRqyTr8YhnMSs40TK/fu4ViYBixoNdAnnur2m+Z09qbNPIVd6NLyE9fwFzUe7KNltFiw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1634858671; bh=F3OXfmkAvFjAfvuXNxCcWsBNGuKVVG6TRha29OFmxrw=; h=X-Sonic-MF:From:Subject:Date:To:From:Subject; b=rabFJqoa0O33PUbox8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5qgtcnTVa4bpVh a.eQDWI07Jh.Otrkcebi5q0JgnPJEiIURH3S5b6j7ADUuGZqFTrzZ0V3kaaGoSGrccRJbftNECpE 02T78nrRn3iTz6.OlV2a7mmpO4t.HU.qF7qchLAjODdh.TkbXK13Y.YKdYLWPy4QrPKrRyijLIsS nuoD9ko7Rh3mOtpHYrJTW2HuJJRClJafNUwm1zXf9SZu8ysJingUGo1UsYxkj40ALlI_jzm9fFzy H4P_zn4qWAYsljNvUq_Vbd3qQiemW7LF2VjfiUcQIaIz.BfhgSVFdFfMSekBfDQiglTMrQu9qfwS LV4wmIGlWkW8WOHpstXSpszKyQ_CAkMudICDxsREB4.2gYRjwQ2Yh.hFJibTjCG6cNovLWO4uY1r KItnkcyRe09cvuoxBhGTW4le024IFm593QVbp6U2BOh0PanEXuP809btGXScbVQoA5u2EzOKMlvL zKOAfX9GUK2LLH4tZwAW3TfzSyhsRVYEVtcohWhy32vob9tAZJSyCgb1ctDUmRauDT8YfDehabBy dOrdIwrcm3Z0Exg-- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.ne1.yahoo.com with HTTP; Thu, 21 Oct 2021 23:24:31 +0000 Received: by kubenode502.mail-prod1.omega.ne1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 258afe9300991ef6ddb67cc737229409; Thu, 21 Oct 2021 23:24:25 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable 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 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: Is dialog4ports built in/for releng/13.0 also supposed to work under main [so: 14]? It gets SIGSEGV in my context. Date: Thu, 21 Oct 2021 16:24:23 -0700 References: <0465422C-DA30-4421-85E7-17CACBF0356D.ref@yahoo.com> <0465422C-DA30-4421-85E7-17CACBF0356D@yahoo.com> <20211021151438.7496a0d0@ernst.home> <20211022002715.5a6ec66c7c27442f483e9347@dec.sakura.ne.jp> To: freebsd-current In-Reply-To: Message-Id: <146075A5-1311-4C57-AD42-982C3FB5DF81@yahoo.com> X-Mailer: Apple Mail (2.3654.120.0.1.13) X-Rspamd-Queue-Id: 4Hb3Tz3dsXz3FJG X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=haTQMjM3; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 66.163.191.148 as permitted sender) smtp.mailfrom=marklmi@yahoo.com X-Spamd-Result: default: False [-3.50 / 15.00]; FREEMAIL_FROM(0.00)[yahoo.com]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36646, ipnet:66.163.184.0/21, country:US]; MID_RHS_MATCH_FROM(0.00)[]; SUBJECT_HAS_QUESTION(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_ONE(0.00)[1]; RCVD_IN_DNSWL_NONE(0.00)[66.163.191.148:from]; RWL_MAILSPIKE_POSSIBLE(0.00)[66.163.191.148:from]; RCVD_COUNT_TWO(0.00)[2] Reply-To: marklmi@yahoo.com From: Mark Millard via freebsd-current X-Original-From: Mark Millard X-ThisMailContainsUnwantedMimeParts: N On 2021-Oct-21, at 11:53, Mark Millard wrote: > On 2021-Oct-21, at 08:27, Tomoaki AOKI = wrote: >=20 >> On Thu, 21 Oct 2021 07:40:36 -0700 >> Mark Millard via freebsd-current wrote: >>=20 >>>=20 >>>=20 >>> On 2021-Oct-21, at 06:14, Gary Jennejohn = wrote: >>>=20 >>>> On Thu, 21 Oct 2021 01:34:47 -0700 >>>> Mark Millard via freebsd-current = wrote: >>>>=20 >>>>> I get the following crash (amd64 example shown), as reported >>>>> via gdb afterwards. (devel/llvm13 is just an example context.) >>>>>=20 >>>>> gdb `which dialog4ports` devel/llvm13/dialog4ports.core >>>>> . . . >>>>> Core was generated by `/usr/local/bin/dialog4ports'. >>>>> Program terminated with signal SIGSEGV, Segmentation fault. >>>>> Address not mapped to object. >>>>> #0 vfprintf_l (fp=3D0x4d4940, locale=3D0x8004d4128 = <__xlocale_global_locale>, fmt0=3D0x201f64 "\"%s\"", = ap=3Dap@entry=3D0x7fffffffcf00) at = /usr/main-src/lib/libc/stdio/vfprintf.c:281 >>>>> 281 if ((fp->_flags & (__SNBF|__SWR|__SRW)) =3D=3D = (__SNBF|__SWR) && >>>>> (gdb) bt >>>>> #0 vfprintf_l (fp=3D0x4d4940, locale=3D0x8004d4128 = <__xlocale_global_locale>, fmt0=3D0x201f64 "\"%s\"", = ap=3Dap@entry=3D0x7fffffffcf00) at = /usr/main-src/lib/libc/stdio/vfprintf.c:281 >>>>> #1 0x0000000800409283 in fprintf (fp=3D0x800411660 = <__stdio_cancel_cleanup>, fmt=3D0x7fffffffcdd0 "0\317\377\377\377\177") = at /usr/main-src/lib/libc/stdio/fprintf.c:57 >>>>> #2 0x000000000020399d in main (argc=3D, = argv=3D) at dialog4ports.c:332 >>>>> (gdb) quit >>>>>=20 >>>>> The crash happens after selecting OK but not after selecting = Cancel. The >>>>> display is also odd before that (no line drawing, just odd text = instead), >>>>> but is sufficient to be usable at that stage. >>>>>=20 >>>>> . . . >>>=20 gdb's disass/s reports the failure point via: . . . /usr/main-src/lib/libc/stdio/vfprintf.c: 279 FLOCKFILE_CANCELSAFE(fp); 0x0000000800412357 <+71>: mov 0xbf082(%rip),%rax # = 0x8004d13e0 0x000000080041235e <+78>: cmpl $0x0,(%rax) 0x0000000800412361 <+81>: je 0x800412370 0x0000000800412363 <+83>: mov %rbx,%rdi 0x0000000800412366 <+86>: call 0x8004c6730 <_flockfile@plt> 0x000000080041236b <+91>: mov %rbx,%rsi 0x000000080041236e <+94>: jmp 0x800412372 0x0000000800412370 <+96>: xor %esi,%esi 0x0000000800412372 <+98>: lea -0xd19(%rip),%rdi # = 0x800411660 <__stdio_cancel_cleanup> 0x0000000800412379 <+105>: lea -0x70(%rbp),%rdx 0x000000080041237d <+109>: call 0x800384a90 = <__pthread_cleanup_push_imp_int> 280 /* optimise fprintf(stderr) (and other unbuffered Unix = files) */ 281 if ((fp->_flags & (__SNBF|__SWR|__SRW)) =3D=3D = (__SNBF|__SWR) && =3D> 0x0000000800412382 <+114>: movzwl 0x10(%rbx),%eax 0x0000000800412386 <+118>: and $0x1a,%eax 0x0000000800412389 <+121>: cmp $0xa,%ax 0x000000080041238d <+125>: jne 0x8004123a9 282 fp->_file >=3D 0) 0x000000080041238f <+127>: cmpw $0x0,0x12(%rbx) 281 if ((fp->_flags & (__SNBF|__SWR|__SRW)) =3D=3D = (__SNBF|__SWR) && 0x0000000800412394 <+132>: js 0x8004123a9 . . . (gdb) info reg rax 0x0 0 rbx 0x4d4940 5065024 rcx 0x7fffffffd0e0 140737488343264 rdx 0x7fffffffcfb0 140737488342960 rsi 0x0 0 rdi 0x800411660 34364003936 rbp 0x7fffffffd020 0x7fffffffd020 rsp 0x7fffffffcfb0 0x7fffffffcfb0 r8 0x0 0 r9 0x0 0 r10 0x800a330f0 34370433264 r11 0x206 518 r12 0x8004d4128 34364801320 r13 0x2083a0 2130848 r14 0x7fffffffd0e0 140737488343264 r15 0x201f64 2105188 rip 0x800412382 0x800412382 eflags 0x10246 [ PF ZF IF RF ] cs 0x43 67 ss 0x3b 59 ds es fs gs fs_base gs_base where: (gdb) disass/s __pthread_cleanup_push_imp_int Dump of assembler code for function __pthread_cleanup_push_imp_int: /usr/main-src/lib/libc/gen/_pthread_stubs.c: 289 STUB_FUNC3(__pthread_cleanup_push_imp, PJT_CLEANUP_PUSH_IMP, = void, void *, 0x0000000800384a90 <+0>: push %rbp 0x0000000800384a91 <+1>: mov %rsp,%rbp 0x0000000800384a94 <+4>: mov 0x14c94d(%rip),%rax # = 0x8004d13e8 0x0000000800384a9b <+11>: mov 0x3c8(%rax),%rax 0x0000000800384aa2 <+18>: pop %rbp 0x0000000800384aa3 <+19>: jmp *%rax End of assembler dump. It is not obvious that any of this has any relationship with libtinfow.so.9 or libncursesw.so.9 use unless some memory is being trashed first. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)