You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In wasmplugin/rules directory, I split the waf ruls and put every secrule directive to a file and then use include directive to include these files, but after splited most the ruls, it's seam that all the files (not only the rule files new generated but also other exsit files)more than 1024, then I execute go run mage.go build it will prompt the error as following, it's seam tinygo have a limitation for the files number, what should to do to enlarge it ?
[root@a34e88a9c347 coraza-proxy-wasm]# go run mage.go build
panic: runtime error: slice bounds out of range [::1112] with length 1024
goroutine 1 [running]:
github.com/tinygo-org/tinygo/builder.RunTool({0x7ffdaae8dda1, 0x7}, {0xc000028828?, 0x457?, 0x5fd0c3e?})
/__w/tinygo/tinygo/builder/tools-builtin.go:31 +0x4d9
main.main()
/__w/tinygo/tinygo/main.go:1485 +0xe7a
error: failed to link /tmp/tinygo2059273237/main: exit status 2
Error: running "tinygo build -gc=custom -opt=2 -o build/mainraw.wasm -scheduler=none -target=wasi -tags='custommalloc nottinygc_envoy no_fs_access memoize_builders coraza.rule.multiphase_evaluation'" failed with exit code 1
exit status 1
Then version of tinygo and go:
[root@a34e88a9c347 coraza-proxy-wasm]# tinygo version
tinygo version 0.31.2 linux/amd64 (using go version go1.22.3 and LLVM version 17.0.1)
The text was updated successfully, but these errors were encountered:
caogw279
changed the title
Files more than 1024 under wasmplugin/rules director will prompt error when execute go run mage.go build
Files more than 1024 under wasmplugin/rules directory will prompt error when execute go run mage.go build
Jul 22, 2024
In wasmplugin/rules directory, I split the waf ruls and put every secrule directive to a file and then use include directive to include these files, but after splited most the ruls, it's seam that all the files (not only the rule files new generated but also other exsit files)more than 1024, then I execute go run mage.go build it will prompt the error as following, it's seam tinygo have a limitation for the files number, what should to do to enlarge it ?
[root@a34e88a9c347 coraza-proxy-wasm]# go run mage.go build
panic: runtime error: slice bounds out of range [::1112] with length 1024
goroutine 1 [running]:
github.com/tinygo-org/tinygo/builder.RunTool({0x7ffdaae8dda1, 0x7}, {0xc000028828?, 0x457?, 0x5fd0c3e?})
/__w/tinygo/tinygo/builder/tools-builtin.go:31 +0x4d9
main.main()
/__w/tinygo/tinygo/main.go:1485 +0xe7a
error: failed to link /tmp/tinygo2059273237/main: exit status 2
Error: running "tinygo build -gc=custom -opt=2 -o build/mainraw.wasm -scheduler=none -target=wasi -tags='custommalloc nottinygc_envoy no_fs_access memoize_builders coraza.rule.multiphase_evaluation'" failed with exit code 1
exit status 1
Then version of tinygo and go:
[root@a34e88a9c347 coraza-proxy-wasm]# tinygo version
tinygo version 0.31.2 linux/amd64 (using go version go1.22.3 and LLVM version 17.0.1)
The text was updated successfully, but these errors were encountered: