bytedance / sonic

A blazingly fast JSON serializing & deserializing library
Apache License 2.0
6.79k stars 333 forks source link

使用 marshal 方法出现问题 _blankCharsMask overflows int #628

Closed jrovis closed 4 months ago

jrovis commented 4 months ago

Sonic 版本 v1.11.6

使用 sonic.Marshal() 方法时,报错类型溢出,报错信息如下

# github.com/bytedance/sonic/ast
../go/pkg/mod/github.com/bytedance/sonic@v1.11.6/ast/decode.go:40:25: _blankCharsMask (untyped int constant 4294977024) overflows int
AsterDY commented 4 months ago

请提供可复现的数据和代码

maxid commented 4 months ago

GOOS=linux GOARCH=arm go build -ldflags "-s -w" -o linux_arm32 .

github.com/bytedance/sonic/ast

vendor/github.com/bytedance/sonic/ast/decode.go:40:25: _blankCharsMask (untyped int constant 4294977024) overflows int make: *** [build_linux] Error 1

构建 arm32 应用时也出现类似问题

AsterDY commented 4 months ago

目前不支持任何32位环境哈,我们后续加个主动提醒