-
Notifications
You must be signed in to change notification settings - Fork 154
Description
I have compiled version 11.1
- on Raspberry Pi OS for armvl7 (Raspberry Pi 3B)
- and for MacOS Big Sur v 11.0.1 on a Mac mini(2018) Intel Core i7 processor.
Both versions seg fault on a >:build 0 command
>:build 0 0 ChatScript Version 11.1 compiled Mar 2 2021 08:33:13
Back Trace when run in gdb:
`
user7: > :build 0
0 ChatScript Version 11.1 compiled Mar 2 2021 12:37:54
Program received signal SIGSEGV, Segmentation fault.
0x0017d388 in BugBacktrace (out=0x8a5a58) at os.cpp:1732
1732 if (frame->rule) strncpy(rule,frame->rule,50);
(gdb) where
#0 0x0017d388 in BugBacktrace (out=0x8a5a58) at os.cpp:1732
#1 0x0017f090 in BugLog (name=0x7eff0568 "LOGS/bugs.txt", folder=0x885fcc "LOGS", bug=0x8a5a58, located=0x7efef9b0 "") at os.cpp:2153
#2 0x0017fb90 in Log (channel=10, fmt=0x26e2d8 "No such directory %s\r\n") at os.cpp:2330
#3 0x0017b98c in getdir (dir="VERIFY", files=std::vector of length 0, capacity 0) at os.cpp:1203
#4 0x0017bc18 in WalkDirectory (directory=0x26f6b8 "VERIFY", function=0x1b5e80 <EmptyVerify(char*, uint64)>, flags=0, recursive=false) at os.cpp:1307
#5 0x001b6690 in ReadTopicFiles (name=0x7eff6ec0 "files0.txt", build=1048576, spell=1) at scriptCompile.cpp:7084
#6 0x001e2ddc in C_Build (input=0x7582700b "") at testing.cpp:4651
#7 0x001e9c2c in Command (input=0x75e9200f "0", buffer=0x8f4048 "", scripted=false) at testing.cpp:6334
#8 0x00201b58 in DoCommand (input=0x75e92008 ":build 0", output=0x8f4048 "", authorize=true) at testing.cpp:11576
#9 0x002500dc in ProcessInput (input=0x75e42008 ":build 0") at mainSystem.cpp:2662
#10 0x0024f6ac in PerformChat (user=0x75328c "user7", usee=0x752ea4 "test", incoming=0x75e6a009 ":build 0", ip=0x281df0 "", output=0x8f4048 "")
at mainSystem.cpp:2480
#11 0x0024c3ac in ProcessInputFile () at mainSystem.cpp:1667
#12 0x0024c870 in MainLoop () at mainSystem.cpp:1734
#13 0x00255048 in main (argc=2, argv=0x7efff4e4) at mainSystem.cpp:3694
(gdb)
`
OK - reason is directory VERIFY missing, created that folder and ":build 0" succeeds.