Bug 21082 – Testsuite fails on OSX (runnable/test16096.sh with asserts on)
Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Mac OS X
Creation time
2020-07-28T03:38:56Z
Last change time
2020-08-06T13:20:17Z
Keywords
pull, TestSuite
Assigned to
No Owner
Creator
Mathias LANG
Comments
Comment #0 by pro.mathias.lang — 2020-07-28T03:38:56Z
```
... runnable/test16096.sh
==============================
Test runnable/test16096.sh failed. The logged output:
runnable/extra-files/test16096a.d(6): Deprecation: interface `test16096a.Class` Objective-C interfaces have been deprecated
runnable/extra-files/test16096a.d(6): Representing an Objective-C class as a D interface has been deprecated. Please use `extern (Objective-C) extern class` instead
runnable/extra-files/test16096a.d(12): Deprecation: interface `test16096a.NSObject` Objective-C interfaces have been deprecated
runnable/extra-files/test16096a.d(12): Representing an Objective-C class as a D interface has been deprecated. Please use `extern (Objective-C) extern class` instead
uncaught exception
core.exception.AssertError@dmd/backend/barray.d(172): Assertion failure
----------------
??:? _d_assertp [0x10194919d]
dmd/access.d:394 _ZN6RarrayIP8seg_dataEixEm [0x10186a03e]
dmd/access.d:394 _Z6Offseti [0x10186c19d]
/Users/geod24/projects/dlang/dmd/src/dmd/backend/bcomplex.d:275 _Z14Obj_data_startP6Symbolyi [0x101938a22]
dmd/access.d:394 _ZN3Obj10data_startEP6Symbolyi [0x10186d716]
/Users/geod24/projects/dlang/dmd/src/dmd/backend/bcomplex.d:275 _Z7outdataP6Symbol [0x1018a5e37]
dmd/access.d:394 dmd.backend.cc.Symbol* dmd.objc_glue.Symbols.getModuleInfo(ref dmd.root.array.Array!(dmd.dclass.ClassDeclaration).Array, ref dmd.root.array.Array!(dmd.dclass.ClassDeclaration).Array) [0x101856305]
dmd/access.d:394 _ZN9Supported18generateModuleInfoEP6Module [0x101855261]
dmd/access.d:394 _Z10genObjFileP6Moduleb [0x1018524a7]
dmd/access.d:394 _Z18obj_write_deferredP7Library [0x1018514d0]
dmd/access.d:394 int dmd.mars.tryMain(ulong, const(char)**, ref dmd.globals.Param) [0x1017afae8]
dmd/access.d:394 _Dmain [0x1017b0863]
runnable/test16096.sh: line 8: 63062 Abort trap: 6 $DMD -I${EXTRA_FILES} -of${OUTPUT_BASE}${LIBEXT} -lib ${EXTRA_FILES}/test16096a.d
```
This does now show up on the auto-tester because we don't have anything that tests with assert on on OSX.
Comment #1 by bugzilla — 2020-08-05T00:34:59Z
More proof that asserts should never have been turned off in the compiler.
Comment #2 by dlang-bot — 2020-08-05T02:16:45Z
@WalterBright created dlang/dmd pull request #11510 "fix Issue 21082 - Testsuite fails on OSX (runnable/test16096.sh with …" fixing this issue:
- fix Issue 21082 - Testsuite fails on OSX (runnable/test16096.sh with asserts on)
https://github.com/dlang/dmd/pull/11510
Comment #3 by dlang-bot — 2020-08-06T11:03:11Z
@jacob-carlborg created dlang/dmd pull request #11520 "fix issue 21082: Testsuite fails on macOS with assertions enabled" fixing this issue:
- fix issue 21082: Testsuite fails on macOS with assertions enabled
https://github.com/dlang/dmd/pull/11520
Comment #4 by dlang-bot — 2020-08-06T13:20:17Z
dlang/dmd pull request #11520 "fix issue 21082: Testsuite fails on macOS with assertions enabled" was merged into master:
- 1efc0e7f2f7d7baf87ad2ec185c87d48b8c67b23 by Jacob Carlborg:
fix issue 21082: Testsuite fails on macOS with assertions enabled
https://github.com/dlang/dmd/pull/11520