NetBSD Problem Report #58084
From triaxx@netbsd.org Wed Mar 27 06:59:14 2024
Return-Path: <triaxx@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id CDCEC1A9239
for <gnats-bugs@gnats.NetBSD.org>; Wed, 27 Mar 2024 06:59:14 +0000 (UTC)
Message-Id: <20240327065912.D56FE1A923B@mollari.NetBSD.org>
Date: Wed, 27 Mar 2024 06:59:12 +0000 (UTC)
From: triaxx@netbsd.org
Reply-To: triaxx@netbsd.org
To: gnats-bugs@NetBSD.org
Subject: lang/mono build failure on NetBSD 10.99.10 x86_64
X-Send-Pr-Version: 3.95
>Number: 58084
>Category: pkg
>Synopsis: lang/mono build failure on NetBSD 10.99.10 x86_64
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Mar 27 07:00:00 +0000 2024
>Closed-Date: Wed Apr 10 20:27:59 +0000 2024
>Last-Modified: Wed Apr 10 20:30:01 +0000 2024
>Originator: Frédéric Fauberteau
>Release: NetBSD 10.99.10
>Organization:
>Environment:
System: NetBSD goliath.triaxx.org 10.99.10 NetBSD 10.99.10 (GENERIC) #0: Fri Mar 15 11:15:04 CET 2024 triaxx@goliath.triaxx.org:/usr/obj/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
Pkgsrc: HEAD
>Description:
I tried to install lang/mono on NetBSD 10.99.10 x86_64:
===> Building for mono-6.12.0.199
/home/triaxx/pkg/bin/gmake all-recursive
gmake[1]: Entering directory '/home/triaxx/pkgsrc/lang/mono/work/mono-6.12.0.199'
[...]
CSC [build-unix] Mono.Cecil.dll
CSC [build-unix] cil-stringreplacer.exe
CSC [build-unix] PEAPI.dll
./../jay/jay: 7 rules never reduced
./../jay/jay: 14 shift/reduce conflicts.
CSC [build-unix] ilasm.exe
* Assertion at mono-threads.c:1577, condition `(current > *staddr) && (current < *staddr + *stsize)' not met
=================================================================
Native Crash Reporting
=================================================================
Got a UNKNOWN while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================
=================================================================
Native stacktrace:
=================================================================
0x42c44c - mono : mono_breakpoint_clean_code
0x42c80d - mono : mono_breakpoint_clean_code
0x3d9761 - mono : mono_debugger_run_finally
0x42ba3a - mono : mono_breakpoint_clean_code
0x73567dad0050 - /usr/lib/libc.so.12 : __sigtramp_siginfo_2
=================================================================
Telemetry Dumper:
=================================================================
=================================================================
External Debugger Dump:
=================================================================
[Switching to LWP 19172 of process 19172]
0x000073567d97aefa in _sys___wait450 () from /usr/lib/libc.so.12
Id Target Id Frame
* 1 LWP 19172 of process 19172 "" 0x000073567d97aefa in _sys___wait450 () from /usr/lib/libc.so.12
Thread 1 (LWP 19172 of process 19172 ""):
#0 0x000073567d97aefa in _sys___wait450 () from /usr/lib/libc.so.12
#1 0x000073567dd6f281 in __wait450 () from /usr/lib/libpthread.so.1
#2 0x000000000042c6ff in ?? ()
#3 0x000000000042c80d in ?? ()
#4 0x00000000003d9761 in ?? ()
#5 0x000000000042ba3a in ?? ()
#6 <signal handler called>
#7 0x000073567dacff9a in _lwp_kill () from /usr/lib/libc.so.12
#8 0x000073567dad0494 in abort () from /usr/lib/libc.so.12
#9 0x000000000069db58 in ?? ()
#10 0x0000000000677925 in ?? ()
#11 0x00000000006947d1 in monoeg_assertion_message ()
#12 0x0000000000694824 in mono_assertion_message ()
#13 0x0000000000686e83 in ?? ()
#14 0x0000000000686f90 in mono_thread_info_attach ()
#15 0x00000000006416b2 in ?? ()
#16 0x000000000061d06a in ?? ()
#17 0x0000000000509784 in ?? ()
#18 0x00000000003a6fa9 in ?? ()
#19 0x00000000003ad439 in mono_main ()
#20 0x000000000069dc7d in ?? ()
#21 0x000000000039d5fd in _start ()
[Inferior 1 (process 19172) detached]
=================================================================
Basic Fault Address Reporting
=================================================================
Memory around native instruction pointer (0x73567dacff9a):0x73567dacff8a 00 00 0f 1f 40 00 b8 3e 01 00 00 49 89 ca 0f 05 ....@..>...I....
0x73567dacff9a 72 01 c3 e9 ee 00 00 00 41 b8 02 00 00 00 48 8b r.......A.....H.
0x73567dacffaa 0d c1 2d 05 00 e9 7c 8d ea ff 55 48 89 e5 48 81 ..-...|...UH..H.
0x73567dacffba ec d0 00 00 00 48 89 8d 68 ff ff ff 4c 89 85 70 .....H..h...L..p
gmake[8]: *** [il/il.make:4: ../../class/lib/build-unix/corlib.unsafe.dll.tmp] Abort trap (core dumped)
gmake[7]: *** [../../build/rules.make:220: do-all] Error 2
gmake[6]: *** [../build/rules.make:241: all-recursive] Error 1
gmake[5]: *** [build/rules.make:241: all-recursive] Error 1
gmake[4]: *** [Makefile:58: profile-do--build--all] Error 2
gmake[3]: *** [Makefile:54: profiles-do--all] Error 2
gmake[2]: *** [Makefile:709: all-mcs] Error 2
gmake[2]: Leaving directory '/home/triaxx/pkgsrc/lang/mono/work/mono-6.12.0.199/runtime'
gmake[1]: *** [Makefile:602: all-recursive] Error 1
gmake[1]: Leaving directory '/home/triaxx/pkgsrc/lang/mono/work/mono-6.12.0.199'
gmake: *** [Makefile:530: all] Error 2
*** Error code 2
Stop.
bmake[1]: stopped in /home/triaxx/pkgsrc/lang/mono
*** Error code 1
Stop.
bmake: stopped in /home/triaxx/pkgsrc/lang/mono
The content of ~/pkg/etc/mk.conf:
.ifdef BSD_PKG_MK # begin pkgsrc settings
UNPRIVILEGED= yes
LOCALBASE= /home/triaxx/pkg
ALLOW_VULNERABLE_PACKAGES= yes
MAKE_JOBS= 24
PKG_DEVELOPER= yes
SKIP_LICENSE_CHECK= yes
PKG_DEFAULT_OPTIONS= nls
.endif # end pkgsrc settings
>How-To-Repeat:
cd ~/pkgsrc/lang/mono && ~/pkg/bin/bmake build
>Fix:
>Release-Note:
>Audit-Trail:
From: triaxx@NetBSD.org
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/58084: lang/mono build failure on NetBSD 10.99.10 x86_64
Date: Thu, 4 Apr 2024 22:19:36 +0200
I can reproduce a similar bug with:
cd work/mono-6.12.0.199/mcs
gmake -f build/rules.make -f build/profiles/build.make
.//build/deps/basic-profile-check.exe
=================================================================
External Debugger Dump:
=================================================================
[Switching to LWP 25549 of process 25549]
0x00006f9d94c18efa in _sys___wait450 () from /usr/lib/libc.so.12
Id Target Id Frame
* 1 LWP 25549 of process 25549 "" 0x00006f9d94c18efa in
_sys___wait450 () from /usr/lib/libc.so.12
Thread 1 (LWP 25549 of process 25549 ""):
#0 0x00006f9d94c18efa in _sys___wait450 () from /usr/lib/libc.so.12
#1 0x00006f9d9500d281 in __wait450 () from /usr/lib/libpthread.so.1
#2 0x00000000001646ff in ?? ()
#3 0x000000000016480d in ?? ()
#4 0x0000000000111761 in ?? ()
#5 0x0000000000163a3a in ?? ()
#6 <signal handler called>
#7 0x00006f9d94d6df9a in _lwp_kill () from /usr/lib/libc.so.12
#8 0x00006f9d94d6e494 in abort () from /usr/lib/libc.so.12
#9 0x00000000003d5b58 in ?? ()
#10 0x00000000003af925 in ?? ()
#11 0x00000000003cc7d1 in monoeg_assertion_message ()
#12 0x00000000003cc824 in mono_assertion_message ()
#13 0x00000000003bee83 in ?? ()
#14 0x00000000003bef90 in mono_thread_info_attach ()
#15 0x00000000003796b2 in ?? ()
#16 0x000000000035506a in ?? ()
#17 0x0000000000241784 in ?? ()
#18 0x00000000000defa9 in ?? ()
#19 0x00000000000e5439 in mono_main ()
#20 0x00000000003d5c7d in ?? ()
#21 0x00000000000d55fd in _start ()
[Inferior 1 (process 25549) detached]
=================================================================
Basic Fault Address Reporting
=================================================================
Memory around native instruction pointer (0x6f9d94d6df9a):0x6f9d94d6df8a
00 00 0f 1f 40 00 b8 3e 01 00 00 49 89 ca 0f 05 ....@..>...I....
0x6f9d94d6df9a 72 01 c3 e9 ee 00 00 00 41 b8 02 00 00 00 48 8b
r.......A.....H.
0x6f9d94d6dfaa 0d c1 2d 05 00 e9 7c 8d ea ff 55 48 89 e5 48 81
..-...|...UH..H.
0x6f9d94d6dfba ec d0 00 00 00 48 89 8d 68 ff ff ff 4c 89 85 70
.....H..h...L..p
gmake: *** [build/profiles/build.make:134:
build/deps/basic-profile-check.exe] Abort trap (core dump créé)
But I cannot reproduce it if I run the command:
cd work/mono-6.12.0.199/mcs
mcs /warn:0 /noconfig /langversion:latest /r:System.dll
/r:mscorlib.dll /out:build/deps/basic-profile-check.exe
build/common/basic-profile-check.cs
It could be an issue with gmake and not the mcs compiler.
According to the backtrace, it could be more a NetBSD problem than a
package mono problem...
State-Changed-From-To: open->closed
State-Changed-By: triaxx@NetBSD.org
State-Changed-When: Wed, 10 Apr 2024 20:27:59 +0000
State-Changed-Why:
Possible use of a wrong mono binary during build process
From: triaxx@NetBSD.org
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/58084: lang/mono build failure on NetBSD 10.99.10 x86_64
Date: Wed, 10 Apr 2024 22:26:40 +0200
I get this error by running:
$ gmake -f build/rules.make -f build/profiles/build.make
.//build/deps/basic-profile-check.exe
By expanding the Makefile variable, I get a command like:
$ mono
/home/triaxx/pkgsrc/lang/mono/work/mono-6.12.0.199/external/roslyn-binaries/Microsoft.Net.Compilers/3.9.0/csc.exe
/warn:0 /noconfig /langversion:latest /r:System.dll /r:mscorlib.dll
/out:build/deps/basic-profile-check.exe build/common/basic-profile-check.cs
I checked where was this mono program and:
$ whereis mono
/usr/pkg/bin/mono
After deletion of the mono package installed in /usr/pkg, I couldn't
reproduce the bug.
I don't remember how this mono package has been installed. But I don't
find it in /usr/pkgsrc/packages/All. I am not really sure it has been
built on my current system.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2024
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.