This does not crash for me under jconsole.

This does crash for me under jqt.

This also crashes for me under jhs.

Here's the message I get in jconsole from jhs:

/Users/rauldmiller/Applications/j903/bin/jhs.command: line 2: 36569
Segmentation fault: 11  "`dirname "$0"`/jconsole"
~addons/ide/jhs/core.ijs -js " init_jhs_'' "

Here's the stack trace I get from jqt:

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000000000024
Exception Note:        EXC_CORPSE_NOTIFY

Termination Signal:    Segmentation fault: 11
Termination Reason:    Namespace SIGNAL, Code 0xb
Terminating Process:   exc handler [36601]

VM Regions Near 0x24:
-->
    __TEXT                 000000010b381000-000000010b386000 [   20K]
r-x/rwx SM=COW  /Users/USER/*

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libj.dylib                    0x000000011954a453 jtfa + 243
1   libj.dylib                    0x000000011954a2e1 freesymb + 545
2   libj.dylib                    0x000000011954aa60 jtmf + 208
3   libj.dylib                    0x000000011954ba48 jttpop + 216
4   libj.dylib                    0x00000001195428ca jdo + 362
5   libj.dylib                    0x0000000119542680 JDo + 112
6   libjqt.dylib                  0x000000010bf68df4
Jcon::cmdSentence(std::__1::basic_string<char,
std::__1::char_traits<char>, std::__1::allocator<char> >) + 116
7   libjqt.dylib                  0x000000010bf68c6a Jcon::cmdSentences() + 170
8   libjqt.dylib                  0x000000010bf6a368 Tedit::docmd(QString) + 184
9   libjqt.dylib                  0x000000010bf6b28a Tedit::enter() + 506
10  org.qt-project.QtWidgets      0x00000001140a530f
QWidget::event(QEvent*) + 527
11  org.qt-project.QtWidgets      0x000000011414d11d QFrame::event(QEvent*) + 45
12  org.qt-project.QtWidgets      0x000000011422ddcf
QTextEdit::event(QEvent*) + 415
13  org.qt-project.QtWidgets      0x000000011406982d
QApplicationPrivate::notify_helper(QObject*, QEvent*) + 269
14  org.qt-project.QtWidgets      0x000000011406ad93
QApplication::notify(QObject*, QEvent*) + 947
15  org.qt-project.QtCore          0x000000010bac9d84
QCoreApplication::notifyInternal2(QObject*, QEvent*) + 212
16  org.qt-project.QtWidgets      0x00000001140c4151 0x114059000 + 438609
17  org.qt-project.QtWidgets      0x00000001140c3507 0x114059000 + 435463
18  org.qt-project.QtWidgets      0x000000011406982d
QApplicationPrivate::notify_helper(QObject*, QEvent*) + 269
19  org.qt-project.QtWidgets      0x000000011406abd1
QApplication::notify(QObject*, QEvent*) + 497
20  org.qt-project.QtCore          0x000000010bac9d84
QCoreApplication::notifyInternal2(QObject*, QEvent*) + 212
21  org.qt-project.QtGui          0x000000010b3bcecf
QGuiApplicationPrivate::processKeyEvent(QWindowSystemInterfacePrivate::KeyEvent*)
+ 191
22  org.qt-project.QtGui          0x000000010b3a2f8b
QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>)
+ 219
23  org.qt-project.QtGui          0x000000010b39de75
QWindowSystemInterface::flushWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>)
+ 581
24  libqcocoa.dylib                0x0000000116830368 0x116801000 + 193384
25  libqcocoa.dylib                0x0000000116830538 0x116801000 + 193848
26  com.apple.AppKit              0x00007fff3bb52367
-[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 6840
27  com.apple.AppKit              0x00007fff3bb50667
-[NSWindow(NSEventRouting) sendEvent:] + 478
28  libqcocoa.dylib                0x0000000116833975 0x116801000 + 207221
29  com.apple.AppKit              0x00007fff3b9f0889
-[NSApplication(NSEvent) sendEvent:] + 2953
30  libqcocoa.dylib                0x000000011683a9fa 0x116801000 + 236026
31  com.apple.AppKit              0x00007fff3b9de5c0 -[NSApplication run] + 755
32  libqcocoa.dylib                0x00000001168370d3 0x116801000 + 221395
33  org.qt-project.QtCore          0x000000010bac539f
QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 431
34  libjqt.dylib                  0x000000010bf5d040 state_run + 176
35  jqt                            0x000000010b38552e main + 1022

I hope this helps,

-- 
Raul

On Sun, May 23, 2021 at 9:04 PM Henry Rich <henryhr...@gmail.com> wrote:
>
> I entered this into a new session:
>
> N=:0
>
> dv =: {{
>     if. 20 < N=: N+1 do. throw. end.
>     echo y
>     ([echo) (];(>:x) dv [)/\ |.x;}.y
> }}
>
> t=:'.'
> ast=:t;(t;t);(t;(t;t);t);(t;(t;t;t);(t;t;t);t)
>
> 0 dv ast
>
> I got the result
>
> +-+-----+-----------+-+-------+-------+-+
> |.|+-+-+|+-+-----+-+|.|+-+-+-+|+-+-+-+|.|
> | ||.|.|||.|+-+-+|.|| ||.|.|.|||.|.|.|| |
> | |+-+-+|| ||.|.|| || |+-+-+-+|+-+-+-+| |
> | |     || |+-+-+| || |       |       | |
> | |     |+-+-----+-+| |       |       | |
> +-+-----+-----------+-+-------+-------+-+
> +-+
> |.|
> +-+
> ++
> ||
> ++
> ...about 18 repetitions...
> ++
> ||
> ++
> |uncaught throw.: dv
> |   ([echo)    (];(>:x)dv[)/\|.x;}.y
>
>
> I then ran
>
>     t=:'.'
>     ast=:t;(t;t);(t;(t;t);t);(t;(t;t;t);(t;t;t);t)
>     dv =: {{
>     if. 0=#y do. x return. end.
>     (];(>:x) dv [)/\ |.x;}.y
> }}
>     0 dv ast
> |stack error: dv
> |       (];(>:x)dv[)/\|.x;}.y
>
>
>
> I am running my development version under jconsole.  I haven't changed
> anything related to the stack.  Can you make it crash under jconsole?
>
> Crashes caused by recursion used to be a problem but I thought we had
> conquered them.
>
> Henry Rich
>
>
> --
> This email has been checked for viruses by AVG.
> https://www.avg.com
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to