|
From: | Paul Rockwell |
Subject: | Re: Stack traces not displaying correctly on macOS |
Date: | Tue, 13 Feb 2024 13:05:18 -0500 |
Just got finished downloading SVN 1752 and recompiling. The Backtrace::show_item() code seems to work fine on both Linux (Fedora 39 x64) and macOS (Sonoma 14.3.1 Apple Silicon). macOS: ⎕FIO ¯16 ============================================================================== Assertion failed: 0 && "Simulated Assert() (aka. ⎕FIO ¯16)" in Function: eval_B in file: Quad_FIO.cc:1191 C/C++ call stack: *** useless apl.lines (no CXXFLAGS=-rdynamic -gdwarf-2) ---------------------------------------- -- Stack trace at Assert.cc:75 ---------------------------------------- 0x1026570bc main 0x1028759e8 Workspace::immediate_execution(bool) 0x1026c8660 Command::process_line() 0x1026c8964 Command::process_line(UCS_string&, std::__1::basic_ostream<char, std::__1::char_traits<char>>*) 0x1026cc128 Command::do_APL_expression(UCS_string&) 0x1026e0954 Command::finish_context() 0x102700600 Executable::execute_body() const 0x1027fbc28 StateIndicator::run() 0x102751e70 Prefix::reduce_statements() 0x10274ece8 Prefix::reduce_MISC_F_B_() 0x1027a4134 Quad_FIO::eval_B(Value_P) const 0x10267d240 do_Assert(char const*, char const*, char const*, int) ======================================== SI stack: Depth: 0 Exec: 0x600001860000 Safe exec: 0 Pmode: ◊ ⎕FIO ¯16 PC: 3 (4) RETURN_STATS Stat: ⎕FIO ¯16 err_code: 0x0 Fedora 39 x64: ⎕FIO ¯16 ============================================================================== Assertion failed: 0 && "Simulated Assert() (aka. ⎕FIO ¯16)" in Function: eval_B in file: Quad_FIO.cc:1191 C/C++ call stack: *** useless apl.lines (no CXXFLAGS=-rdynamic -gdwarf-2) ---------------------------------------- -- Stack trace at Assert.cc:75 ---------------------------------------- 0x7f1971a4620b __libc_start_main 0x7f1971a4614a 0x472a6a main 0x60aa25 Workspace::immediate_execution(bool) 0x4d517d Command::process_line() 0x4d5961 Command::finish_context() 0x4e2087 Executable::execute_body() const 0x59a610 StateIndicator::run() 0x5210b1 Prefix::reduce_statements() 0x51e3d5 Prefix::reduce_MISC_F_B_() 0x55e65e Quad_FIO::eval_B(Value_P) const 0x4884dc do_Assert(char const*, char const*, char const*, int) ======================================== SI stack: Depth: 0 Exec: 0xbb6d40 Safe exec: 0 Pmode: ◊ ⎕FIO ¯16 PC: 3 (4) RETURN_STATS Stat: ⎕FIO ¯16 err_code: 0x0 One small item. Appreciate the credit on the copyright notice in Backtrace.cc for SVN 1752. But I'd suggest not including "(Apple)" on the notice as I am not associated with Apple. I would not want them to have any copyright claim on the code I submitted to you. That code was engineered by examining the output of the macOS system library function (which, by the way they did not document the string format), and not by referencing any Apple-provided examples. - Paul
|
[Prev in Thread] | Current Thread | [Next in Thread] |