Overview
| Artifact ID: | bc8eb3c13295910e47824ba09a69dedbed6fbf99c84ba65db2c91462f55d2da6 |
|---|---|
| Ticket: | cd61f085da52b3384388c8ef780f53d8c55ead4f
tcl terminates silently with invalid expr underscore syntax and radix prefix |
| User & Date: | chrstphrchvz on 2023-08-28 09:29:40 |
Changes
- icomment:
I tried this and got a stack overflow. <pre> % expr {0x_} AddressSanitizer:DEADLYSIGNAL ================================================================= ==36708==ERROR: AddressSanitizer: stack-overflow on address 0x7ff7bac29fd0 (pc 0x000105031987 bp 0x7ff7bac2a030 sp 0x7ff7bac29fd0 T0) #0 0x105031987 in __sanitizer::StackDepotBase<__sanitizer::StackDepotNode, 1, 20>::Put(__sanitizer::StackTrace, bool*)+0x17 (libclang_rt.asan_osx_dynamic.dylib:x86_64h+0x106987) #1 0x104f2f28c in __asan::Allocator::Allocate(unsigned long, unsigned long, __sanitizer::BufferedStackTrace*, __asan::AllocType, bool)+0x3cc (libclang_rt.asan_osx_dynamic.dylib:x86_64h+0x428c) #2 0x104f2ee98 in __asan::asan_malloc(unsigned long, __sanitizer::BufferedStackTrace*)+0x28 (libclang_rt.asan_osx_dynamic.dylib:x86_64h+0x3e98) #3 0x1050087a0 in wrap_malloc+0x100 (libclang_rt.asan_osx_dynamic.dylib:x86_64h+0xdd7a0) #4 0x1066fca54 in TclpAlloc tclAlloc.c:699 #5 0x1067fb224 in Tcl_Alloc tclCkalloc.c:1038 #6 0x106f1ef5c in ParseLexeme tclCompExpr.c:2090 #7 0x106f2014f in ParseLexeme tclCompExpr.c:2127 #8 0x106f2014f in ParseLexeme tclCompExpr.c:2127 #9 0x106f2014f in ParseLexeme tclCompExpr.c:2127 ⋮ #254 0x106f2014f in ParseLexeme tclCompExpr.c:2127 SUMMARY: AddressSanitizer: stack-overflow (libclang_rt.asan_osx_dynamic.dylib:x86_64h+0x106987) in __sanitizer::StackDepotBase<__sanitizer::StackDepotNode, 1, 20>::Put(__sanitizer::StackTrace, bool*)+0x17 ==36708==ABORTING </pre> - login: "chrstphrchvz"
- mimetype: "text/x-fossil-wiki"