Fixes os.ReadDir segfault caused by package path mismatch between llgo overlay packages and canonical standard library paths. The issue occurred in: os.ReadDir → sort.Slice → reflectlite.Swapper where internal/reflectlite.Type interface has private methods common() and uncommon(). Using mPkg.Path() returned the overlay path 'github.com/goplus/llgo/runtime/internal/lib/internal/reflectlite' instead of the canonical 'internal/reflectlite', causing runtime to only fill public methods and leave private method pointers NULL. Changed to use abi.PathOf() which returns the correct canonical package path for matching, ensuring all interface methods (both public and private) are properly filled in the interface table. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
323 B
323 B