git: 174de7854349 - main - lang/mono5*: unbreak with kern.elf*.allow_wx=0
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 10 Aug 2023 00:50:56 UTC
The branch main has been updated by jbeich: URL: https://cgit.FreeBSD.org/ports/commit/?id=174de7854349539427b812d3e2b774924475648b commit 174de7854349539427b812d3e2b774924475648b Author: Jan Beich <jbeich@FreeBSD.org> AuthorDate: 2023-05-03 15:09:09 +0000 Commit: Jan Beich <jbeich@FreeBSD.org> CommitDate: 2023-08-10 00:47:06 +0000 lang/mono5*: unbreak with kern.elf*.allow_wx=0 $ mono foo Segmentation fault * thread #1, name = 'mono-sgen', stop reason = signal SIGSEGV: invalid address (fault address: 0x0) frame #0: 0x00000000005632f9 mono`mono_arch_create_sdb_trampoline(single_step=0, info=0x0000000820fe7d90, aot=0) at tramp-amd64.c:854:2 851 // IP saved at CFA - 8 852 mono_add_unwind_op_offset (unwind_ops, code, buf, AMD64_RIP, -cfa_offset); 853 -> 854 amd64_push_reg (code, AMD64_RBP); 855 cfa_offset += sizeof(mgreg_t); 856 mono_add_unwind_op_def_cfa_offset (unwind_ops, code, buf, cfa_offset); 857 mono_add_unwind_op_offset (unwind_ops, code, buf, AMD64_RBP, - cfa_offset); (lldb) bt * thread #1, name = 'mono-sgen', stop reason = signal SIGSEGV: invalid address (fault address: 0x0) * frame #0: 0x00000000005632f9 mono`mono_arch_create_sdb_trampoline(single_step=0, info=0x0000000820fe7d90, aot=0) at tramp-amd64.c:854:2 frame #1: 0x000000000047cf36 mono`mini_get_breakpoint_trampoline at mini-trampolines.c:1812:12 frame #2: 0x00000000004dc5a1 mono`mono_arch_init at mini-amd64.c:1405:19 frame #3: 0x000000000035fde4 mono`mini_init(filename="foo", runtime_version=0x0000000000000000) at mini-runtime.c:4364:2 frame #4: 0x0000000000426853 mono`mono_main(argc=2, argv=0x0000000820fe8268) at driver.c:2470:11 frame #5: 0x0000000000359363 mono`mono_main_with_options(argc=2, argv=0x0000000820fe8268) at main.c:50:9 frame #6: 0x00000000003589b1 mono`main(argc=2, argv=0x0000000820fe8268) at main.c:406:9 frame #7: 0x0000000000358770 mono`_start(ap=<unavailable>, cleanup=<unavailable>) at crt1_c.c:75:7 --- lang/mono/Makefile | 5 +++-- lang/mono5.10/Makefile | 5 +++-- lang/mono5.20/Makefile | 5 +++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/lang/mono/Makefile b/lang/mono/Makefile index 9fb03523445d..101ed1942227 100644 --- a/lang/mono/Makefile +++ b/lang/mono/Makefile @@ -1,6 +1,6 @@ PORTNAME= mono PORTVERSION= 5.10.1.57 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= lang MASTER_SITES= https://download.mono-project.com/sources/mono/ DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} @@ -37,13 +37,14 @@ NLS_USES= gettext X11_USES= display:test -USES= autoreconf bison compiler:c11 cpe gmake iconv libtool \ +USES= autoreconf bison compiler:c11 cpe elfctl gmake iconv libtool \ pathfix perl5 python shebangfix tar:bzip2 USE_PERL5= build GNU_CONFIGURE= yes USE_LDCONFIG= yes SHEBANG_FILES= scripts/mono-heapviz mono/mini/genmdesc.py mono/tests/test_lldb.py BINARY_ALIAS= python=${PYTHON_CMD} +ELF_FEATURES= +wxneeded:mono/mini/mono-sgen CONFIGURE_ARGS= --disable-dtrace CONFIGURE_ENV= ac_cv_header_sys_inotify_h=no diff --git a/lang/mono5.10/Makefile b/lang/mono5.10/Makefile index a06d91cff523..45c082f1a53e 100644 --- a/lang/mono5.10/Makefile +++ b/lang/mono5.10/Makefile @@ -1,6 +1,6 @@ PORTNAME= mono PORTVERSION= 5.10.1.57 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= lang MASTER_SITES= https://download.mono-project.com/sources/mono/ PKGNAMESUFFIX= 5.10 @@ -41,13 +41,14 @@ NLS_USES= gettext X11_USES= display:test -USES= autoreconf bison compiler:c11 cpe gmake iconv libtool \ +USES= autoreconf bison compiler:c11 cpe elfctl gmake iconv libtool \ pathfix perl5 python shebangfix tar:bzip2 USE_PERL5= build GNU_CONFIGURE= yes USE_LDCONFIG= yes SHEBANG_FILES= scripts/mono-heapviz mono/mini/genmdesc.py mono/tests/test_lldb.py BINARY_ALIAS= python=${PYTHON_CMD} +ELF_FEATURES= +wxneeded:mono/mini/mono-sgen CONFIGURE_ARGS= --disable-dtrace CONFIGURE_ENV= ac_cv_header_sys_inotify_h=no diff --git a/lang/mono5.20/Makefile b/lang/mono5.20/Makefile index 0d6815f6130c..eb67db4ed240 100644 --- a/lang/mono5.20/Makefile +++ b/lang/mono5.20/Makefile @@ -1,6 +1,6 @@ PORTNAME= mono PORTVERSION= 5.20.1.34 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= lang MASTER_SITES= https://download.mono-project.com/sources/mono/ PKGNAMESUFFIX= 5.20 @@ -40,7 +40,7 @@ NLS_USES= gettext X11_USES= display:test -USES= autoreconf bison compiler:c11 cpe gmake iconv libtool \ +USES= autoreconf bison compiler:c11 cpe elfctl gmake iconv libtool \ pathfix perl5 python shebangfix tar:bzip2 USE_PERL5= build GNU_CONFIGURE= yes @@ -48,6 +48,7 @@ USE_LDCONFIG= yes SHEBANG_FILES= scripts/mono-heapviz scripts/mono-package-runtime \ mono/mini/genmdesc.py mono/tests/test_lldb.py BINARY_ALIAS= python=${PYTHON_CMD} +ELF_FEATURES= +wxneeded:mono/mini/mono-sgen CONFIGURE_ARGS= --disable-dtrace --enable-btls CPPFLAGS+= -I${LOCALBASE}/include