leuat / TRSE

Turbo Rascal Syntax Error full repo
GNU General Public License v3.0
243 stars 44 forks source link

Vectrex tutorial fails #837

Open polluks opened 9 months ago

polluks commented 9 months ago

$ lldb trse 
(lldb) target create "trse"
Current executable set to '/Applications/trse.app/Contents/MacOS/trse' (x86_64).
(lldb) r
Process 8281 launched: '/Applications/trse.app/Contents/MacOS/trse' (x86_64)
warning: libobjc.A.dylib is being read from process memory. This indicates that LLDB could not read from the host's in-memory shared cache. This will likely reduce debugging performance.

2024-02-05 21:06:33.842199+0100 trse[8281:386237] SecTaskLoadEntitlements failed error=22 cs_flags=20, pid=8281
2024-02-05 21:06:33.842349+0100 trse[8281:386237] SecTaskCopyDebugDescription: trse[8281]/0#-1 LF=0
2024-02-05 21:06:35.619668+0100 trse[8281:386237] SecTaskLoadEntitlements failed error=22 cs_flags=20, pid=8281
2024-02-05 21:06:35.619845+0100 trse[8281:386237] SecTaskCopyDebugDescription: trse[8281]/0#-1 LF=0
2024-02-05 21:06:35.932162+0100 trse[8281:386237] QOpenGLTexture::setData() requires a valid current context
2024-02-05 21:06:35.932190+0100 trse[8281:386237] QOpenGLTexture::setData() requires a valid current context
2024-02-05 21:06:35.967279+0100 trse[8281:386237] QOpenGLTexture::setData() requires a valid current context
2024-02-05 21:06:35.967292+0100 trse[8281:386237] QOpenGLTexture::setData() requires a valid current context
2024-02-05 21:06:36.322825+0100 trse[8281:386237] [qt.qpa.fonts] Populating font family aliases took 212 ms. Replace uses of missing font family "Courier" with one that exists to avoid this cost.
2024-02-05 21:06:36.908840+0100 trse[8281:386237] SecTaskLoadEntitlements failed error=22 cs_flags=20, pid=8281
2024-02-05 21:06:36.908942+0100 trse[8281:386237] SecTaskCopyDebugDescription: trse[8281]/0#-1 LF=0
2024-02-05 21:06:37.063186+0100 trse[8281:386237] WARNING: Secure coding is not enabled for restorable state! Enable secure coding by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState: and returning YES.
Process 8281 stopped
* thread #17, name = 'BuilderThread', stop reason = EXC_BAD_ACCESS (code=1, address=0x4)
    frame #0: 0x000000010f134677 QtCore`___lldb_unnamed_symbol7695 + 23
QtCore`___lldb_unnamed_symbol7695:
->  0x10f134677 <+23>: movslq 0x4(%rbx), %r13
    0x10f13467b <+27>: testq  %r13, %r13
    0x10f13467e <+30>: je     0x10f13486b               ; <+523>
    0x10f134684 <+36>: movq   %rsi, -0x40(%rbp)
Target 0: (trse) stopped.
(lldb) bt
* thread #17, name = 'BuilderThread', stop reason = EXC_BAD_ACCESS (code=1, address=0x4)
  * frame #0: 0x000000010f134677 QtCore`___lldb_unnamed_symbol7695 + 23
    frame #1: 0x000000010f13464e QtCore`QString::simplified_helper(QString const&) + 14
    frame #2: 0x000000010048db2f trse`PostOptimiser6809::Analyze(SourceLine&) + 2127
    frame #3: 0x000000010048be8d trse`PostOptimiser::CreateLines(QStringList&) + 189
    frame #4: 0x000000010048bcb1 trse`PostOptimiser::PostOptimize(QStringList&) + 225
    frame #5: 0x00000001006b2cc7 trse`Compiler::Build(QSharedPointer<AbstractSystem>, QString) + 2359
    frame #6: 0x0000000100896fe0 trse`SourceBuilder::Build(QString) + 3456
    frame #7: 0x00000001006492b6 trse`BuilderThread::run() + 70
    frame #8: 0x000000010f092619 QtCore`___lldb_unnamed_symbol7125 + 329
    frame #9: 0x00007ff803d67202 libsystem_pthread.dylib`_pthread_start + 99
    frame #10: 0x00007ff803d62bab libsystem_pthread.dylib`thread_start + 15
leuat commented 9 months ago

hm something wrong with the 6809 post optimizer, probably just a small bug somewhere, but I'm unable to reproduce it here... could you provide me with steps on how to reproduce the crash?

polluks commented 7 months ago

Load the tutorial and build, that's it. macOS 14.4.1 M2