> coredumpctl debug 21474 Command Line: tclsh9.1 exercise.tcl Executable: /usr/local/bin/tclsh9.1 Message: Process 21474 (tclsh9.1) of user 1000 dumped core. Found module linux-vdso.so.1 with build-id: b69f940d3c9047c8308e2782ad0dc89a585918eb Found module ld-linux-x86-64.so.2 with build-id: a2bcf5d7a9d588235a61312ca831456c856a9500 Found module libc.so.6 with build-id: 767aa1e4d4fc7c106971b202b6b00e92f47411dc Found module libm.so.6 with build-id: c3db74af084d0c2ac94e5cf4416c5cac6dab8aff Found module libpthread.so.0 with build-id: 57711d6cca624425595d123ef4858a66cd86be0e Found module librt.so.1 with build-id: df150773f584ad5bb8d3e927183fdf18b0b27b6e Found module libz.so.1 with build-id: eeb00bbfc8076e20d5b69e7b5d36d2b2fc2041e3 Found module libdl.so.2 with build-id: e3a804900a8f7b531712ad2fd8c4fc2b991f6620 Found module libtcl9.1.so with build-id: 5cf86c2a2da1606e53ec2bd4c9633dc8afff1404 Found module libnxegl.so without build-id. Found module tclsh9.1 with build-id: aa4f9ee9169d0b2bf2d9fc70b83000bf017014dd Stack trace of thread 21474: #0 0x00007fec200fa0ba TclCheckInterpTraces (libtcl9.1.so + 0x19a0ba) #1 0x00007fec1ffb7420 TEOV_RunEnterTraces (libtcl9.1.so + 0x57420) #2 0x00007fec1ffb618c EvalObjvCore (libtcl9.1.so + 0x5618c) #3 0x00007fec1ffb6512 TclNRRunCallbacks (libtcl9.1.so + 0x56512) #4 0x00007fec1ffb5c4f Tcl_EvalObjv (libtcl9.1.so + 0x55c4f) #5 0x00007fec1ffb8694 TclEvalEx (libtcl9.1.so + 0x58694) #6 0x00007fec200a2b65 Tcl_FSEvalFileEx (libtcl9.1.so + 0x142b65) #7 0x00007fec200b6509 Tcl_MainEx (libtcl9.1.so + 0x156509) #8 0x000000000040092d main (tclsh9.1 + 0x92d) #9 0x00007fec1f9d424d __libc_start_main (libc.so.6 + 0x3524d) #10 0x000000000040096a _start (tclsh9.1 + 0x96a) GNU gdb (GDB; SUSE Linux Enterprise 15) 12.1 Copyright (C) 2022 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-suse-linux". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from /usr/local/bin/tclsh9.1... warning: Can't open file /var/lib/nscd/passwd during file-backed mapping note processing [New LWP 21474] [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". Core was generated by `tclsh9.1 exercise.tcl'. Program terminated with signal SIGSEGV, Segmentation fault. #0 0x00007fec200fa0ba in TclCheckInterpTraces (interp=0xfa6dc0, command=0x1028b70 "puts \"p invoked\"", numChars=16, cmdPtr=0xf93380, code=0, traceFlags=1, objc=2, objv=0xfab380) at /usr/local/src/SOURCES/tcl9.1b0/generic/tclTrace.c:1457 1457 while (tracePtr->nextPtr != lastTracePtr) { Missing separate debuginfos, use: zypper install glibc-debuginfo-2.31-150300.52.2.x86_64 libz1-debuginfo-1.2.11-150000.3.45.1.x86_64 (gdb) bt full #0 0x00007fec200fa0ba in TclCheckInterpTraces (interp=0xfa6dc0, command=0x1028b70 "puts \"p invoked\"", numChars=16, cmdPtr=0xf93380, code=0, traceFlags=1, objc=2, objv=0xfab380) at /usr/local/src/SOURCES/tcl9.1b0/generic/tclTrace.c:1457 iPtr = 0xfa6dc0 tracePtr = 0x0 lastTracePtr = 0x103d5f0 active = {nextPtr = 0x0, nextTracePtr = 0x103d6f0, reverseScan = true} curLevel = 2 traceCode = 0 state = 0x101fe80 #1 0x00007fec1ffb7420 in TEOV_RunEnterTraces (interp=0xfa6dc0, cmdPtrPtr=0x7fffc3f9b410, commandPtr=0x1004400, objc=2, objv=0xfab380) at /usr/local/src/SOURCES/tcl9.1b0/generic/tclBasic.c:5030 iPtr = 0xfa6dc0 cmdPtr = 0xf93380 length = 16 newEpoch = 16793472 cmdEpoch = 0 traceCode = 0 command = 0x1028b70 "puts \"p invoked\"" #2 0x00007fec1ffb618c in EvalObjvCore (data=0x10044f8, interp=0xfa6dc0, dummy4486=0) at /usr/local/src/SOURCES/tcl9.1b0/generic/tclBasic.c:4597 code = 32748 commandPtr = 0x1004400 cmdPtr = 0xf93380 preCmdPtr = 0x0 flags = 2097168 objc = 2 objv = 0xfab380 iPtr = 0xfa6dc0 lookupNsPtr = 0x0 enterTracesDone = 0 __PRETTY_FUNCTION__ = "EvalObjvCore" #3 0x00007fec1ffb6512 in TclNRRunCallbacks (interp=0xfa6dc0, result=0, rootPtr=0x0) at /usr/local/src/SOURCES/tcl9.1b0/generic/tclBasic.c:4704 callbackPtr = 0x10044f0 procPtr = 0x7fec1ffb5e57 #4 0x00007fec1ffb5c4f in Tcl_EvalObjv (interp=0xfa6dc0, objc=1, objv=0xfab150, flags=2097168) at /usr/local/src/SOURCES/tcl9.1b0/generic/tclBasic.c:4443 result = 0 rootPtr = 0x0 #5 0x00007fec1ffb8694 in TclEvalEx (interp=0xfa6dc0, script=0x102a9b0 "proc p {} {\n # This proc needs to hold at least one (arbitrary) command\n # for enterstep traces to work.\n puts \"p invoked\"\n}\nproc handleTrace1 {args} {\n trace remove execution p enterstep "..., numBytes=379, flags=0, line=15, clNextOuter=0x0, outerScript=0x102a9b0 "proc p {} {\n # This proc needs to hold at least one (arbitrary) command\n # for enterstep traces to work.\n puts \"p invoked\"\n}\nproc handleTrace1 {args} {\n trace remove execution p enterstep "...) at /usr/local/src/SOURCES/tcl9.1b0/generic/tclBasic.c:5531 wordLine = 15 wordCLNext = 0x0 objectsNeeded = 1 wordStart = 0x102ab29 "p\n" numWords = 1 iPtr = 0xfa6dc0 p = 0x102ab29 "p\n" next = 0x102ab29 "p\n" minObjs = 20 objv = 0xfab150 objvSpace = 0xfab150 expand = 0xfab200 "" lines = 0xfab220 lineSpace = 0xfab220 tokenPtr = 0xfaaea8 expandRequested = false code = 0 bytesLeft = 2 commandLength = 0 savedVarFramePtr = 0xf8f070 allowExceptions = false gotParse = true i = 1 objectsUsed = 1 parsePtr = 0xfaae00 eeFramePtr = 0xfab0f0 stackObjArray = 0xfab150 expandStack = 0xfab200 "" linesStack = 0xfab220 clNext = 0x0 #6 0x00007fec200a2b65 in Tcl_FSEvalFileEx (interp=0xfa6dc0, pathPtr=0x1003b00, encodingName=0x7fec201754e9 "utf-8") at /usr/local/src/SOURCES/tcl9.1b0/generic/tclIOUtil.c:1792 length = 379 result = 1 statBuf = {st_dev = 69, st_ino = 18923532, st_nlink = 1, st_mode = 33188, st_uid = 1000, st_gid = 100, __pad0 = 0, st_rdev = 0, st_size = 379, st_blksize = 32768, st_blocks = 8, st_atim = {tv_sec = 1784991634, tv_nsec = 0}, st_mtim = {tv_sec = 1784991634, tv_nsec = 0}, st_ctim = {tv_sec = 1784991634, tv_nsec = 0}, __glibc_reserved = {0, 0, 0}} oldScriptFile = 0x0 iPtr = 0xfa6dc0 string = 0x102a9b0 "proc p {} {\n # This proc needs to hold at least one (arbitrary) command\n # for enterstep traces to work.\n puts \"p invoked\"\n}\nproc handleTrace1 {args} {\n trace remove execution p enterstep "... chan = 0x103caf0 objPtr = 0x1003f20 #7 0x00007fec200b6509 in Tcl_MainEx (argc=-1, argv=0x7fffc3f9ba48, appInitProc=0x400a20 , interp=0xfa6dc0) at /usr/local/src/SOURCES/tcl9.1b0/generic/tclMain.c:405 i = 2 path = 0x1003b00 resultPtr = 0x0 argvPtr = 0x10039e0 appName = 0x1003b00 encodingName = 0x0 code = 0 exitCode = 0 mainLoopProc = 0x0 chan = 0x0 is = {input = 0x0, tty = 1, commandPtr = 0x1003980, prompt = PROMPT_START, interp = 0xfa6dc0} #8 0x000000000040092d in main ()