j9.6 crashed on me

16 views
Skip to first unread message

David C. Salthouse

unread,
Feb 1, 2026, 5:18:08 PM (12 days ago) Feb 1
to forum
Henry, Excuse me, this is my first crash report. Does this tell you anything ?
This code :-

NB. --- PHASE B: SAFE KERNEL ---

NB. 1. The Alphabet (Nouns)
NB. valid_chars: The characters we keep.
valid_chars =: ((97+i.26), (65+i.26), (48+i.10), 43 45 46) { a.

NB. 2. The Scrubber (Math, not Logic)
NB. Logic: Convert to ASCII codes.
NB. If code is invalid, set it to 32 (Space).
NB. Then convert back to text.
scrub =: 3 : 0
  codes =. a. i. y              NB. Convert text to numbers 0-255
  mask  =. y e. valid_chars     NB. 1 if valid, 0 if invalid
  clean =. (codes * mask) + (32 * -. mask)  NB. Math trick: (Val*1) + (32*0) OR (Val*0) + (32*1)
  a. {~ clean                   NB. Convert numbers back to text
)

NB. 3. The Tokenizer
tokenize =: cutopen @ scrub @ tolower

NB. 4. The Purge this is where I think it crashes!!!
purge =: -. & bad_words

NB. 5. The Cleaner
clean_pkg =: /:~ @ ~. @ purge @ tokenize

Crashed with this report :-

0000000000403132: ?:0: sigsegv

00007f421b16b04f: ?:0: ?

00007f42166131c9: ?:0: hic

00007f42166285a2: ?:0: jtioau

00007f421661720f: ?:0: jtindexofsub

00007f421661a172: ?:0: jtnub

00007f421694e713: ?:0: on1cell

00007f421694e7e0: ?:0: on1cell

00007f421694e7e0: ?:0: on1cell

00007f42169dfa92: ?:0: jtunquote

00007f42169cc1e5: ?:0: jtparsea

00007f42169cbe94: ?:0: jtparse

00007f42169d19ac: ?:0: jtimmex

00007f42169b8aa4: ?:0: jdo

00007f42169b886c: ?:0: JDo

000000000040306f: ?:0: main

00007f421b156249: ?:0: ?

00007f421b156304: ?:0: __libc_start_main

00000000004024dd: ?:0: _start

ffffffffffffffff: ?:0: ?

Thanks in advance, Dave Salthouse

Devon McCormick

unread,
Feb 1, 2026, 6:54:10 PM (12 days ago) Feb 1
to fo...@jsoftware.com
Hi - I was able to reproduce this  - kind of: defining "clean_pkg" does not cause a crash but using it does on my Windows 11 PC and my MacMini.  Both are running J 9.3.8.
I re-defined "purge" like this to get it to work:
   purge =: ]-. & bad_words
and this:
    bad_words=. 'gosh';'darn'

Resulting in this failing:
   clean_pkg 'Now is the time for all good people to party!'

On Windows:
      JVERSION
Engine: j9.7.0-beta9/j64avx2/windows
Build: commercial/2026-01-03T02:54:58/clang-19-1-5/SLEEF=1
Library: 9.7.8
Platform: Win 64
Installer: j9.7 install
InstallPath: c:/pgm/j9.7
Contact: www.jsoftware.com

On Mac:
      JVERSION
Engine: j9.7.0-beta9/j64arm/darwin
Build: commercial/2026-01-03T02:53:16/clang-17-0-0/SLEEF=1
Library: 9.7.8
Platform: Darwin 64
Installer: j9.7 install
InstallPath: /applications/j9.7
Contact: www.jsoftware.com
   
I had much less verbose error messages; on Windows, I got the standard shell termination query "Terminate batch job (Y/N)?".  On Mac, it was "zsh: bus error  /Applications/J9.7/bin/jconsole".
   
I hope this helps.

Devon

Devon McCormick




To unsubscribe from this group and stop receiving emails from it, send an email to forum+un...@jsoftware.com.

Henry Rich

unread,
Feb 2, 2026, 9:10:28 AM (11 days ago) Feb 2
to fo...@jsoftware.com
Fixed for next beta.  The error afflicted 

f @ (-.&boxes)

(and equivalent forms using fork), for any f .

Workaround: use (-."-.&boxes) instead of (-.&boxes) to disable the special code that contained the error.

Thanks for the report, and thanks to Devon for supplying the failing arguments.

Henry Rich
Reply all
Reply to author
Forward
0 new messages