Open pipi32167 opened 2 years ago
@hyangah can you give this a look?
@pipi32167 are both frameworks built from the same Go package? Does it crash if the two XCFrameworks are built from different Go packages?
how to solve it? I build 2 xcframeworks also crash
how to solve it? I build 2 xcframeworks also crash
I just merge 2 xcframeworks into 1.
I had also same problem. We have 2 independent go library and If I bind two libraries into two different xcframework, It causes a crash.
fatal error: minpc or maxpc invalid
runtime: panic before malloc heap initialized
runtime stack:
runtime.throw({0x102eafb8c?, 0x0?})
/usr/local/go/src/runtime/panic.go:1047 +0x40 fp=0x17bbbee60 sp=0x17bbbee30 pc=0x10294a840
runtime.moduledataverify1(0x1034a2f20)
/usr/local/go/src/runtime/symtab.go:636 +0x41c fp=0x17bbbef40 sp=0x17bbbee60 pc=0x102966ffc
runtime.moduledataverify(...)
/usr/local/go/src/runtime/symtab.go:593
runtime.schedinit()
/usr/local/go/src/runtime/proc.go:691 +0x40 fp=0x17bbbefa0 sp=0x17bbbef40 pc=0x10294dee0
runtime.rt0_go()
/usr/local/go/src/runtime/asm_arm64.s:86 +0xd0 fp=0x17bbbefd0 sp=0x17bbbefa0 pc=0x102975c20
I used same sys package same dependencies but never succeed.
Merging 2 frameworks into 1 is solving problem but I think it needs further investigation
I had also same problem.
minpc= 0x1022de450 min= 0x1022de450 maxpc= 0x10236a380 max= 0x10236a4b0
fatal error: minpc or maxpc invalid
runtime: panic before malloc heap initialized
runtime stack:
runtime.throw({0x102429860?, 0x0?})
/usr/local/go/src/runtime/panic.go:1047 +0x40 fp=0x16dd52e60 sp=0x16dd52e30 pc=0x10230ef10
runtime.moduledataverify1(0x1025c2b60)
/usr/local/go/src/runtime/symtab.go:636 +0x41c fp=0x16dd52f40 sp=0x16dd52e60 pc=0x10232b69c
runtime.moduledataverify(...)
/usr/local/go/src/runtime/symtab.go:593
runtime.schedinit()
/usr/local/go/src/runtime/proc.go:691 +0x40 fp=0x16dd52fa0 sp=0x16dd52f40 pc=0x1023125b0
runtime.rt0_go()
/usr/local/go/src/runtime/asm_arm64.s:86 +0xd0 fp=0x16dd52fd0 sp=0x16dd52fa0 pc=0x102339c60
If you are using a dynamic link library (go export), this error will not occur. Once the static library is used, this error will be reported.
If you are using a dynamic link library (go export), this error will not occur. Once the static library is used, this error will be reported.
Can you provide an example of a dynamic link library? Thank you!
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Building 2 independent xcframeworks for iOS App to use.
And then use the xcframeworks in the Xcode project
What did you expect to see?
The iOS program is able to run properly.
What did you see instead?
The iOS program running crash with the callstack: