Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

log:unexpect nil pointer dereference on linux #843

Open
luoliwoshang opened this issue Oct 23, 2024 · 0 comments
Open

log:unexpect nil pointer dereference on linux #843

luoliwoshang opened this issue Oct 23, 2024 · 0 comments

Comments

@luoliwoshang
Copy link
Contributor

luoliwoshang commented Oct 23, 2024

package main

import (
	"log"
)

func main() {
	log.Println("hello")
}

want get log output bug get panic

root@be00d9b1c2c9:~/llgo/chore/_xtool/llcppsymg/bb# go run .
2024/10/23 03:27:47 hello
root@be00d9b1c2c9:~/llgo/chore/_xtool/llcppsymg/bb# llgo run .
panic: runtime error: invalid memory address or nil pointer dereference

on mac is normally

chore/_xtool/bb on  llcppsigfetch/refine [$!?] via 🐹 v1.20.4 took 7s 
❯ go run .  
2024/10/23 11:30:07 hello
(base) 
chore/_xtool/bb on  llcppsigfetch/refine [$!?] via 🐹 v1.20.4 
❯ llgo run .
2024/10/23 11:30:17 hello

env

root@be00d9b1c2c9:~/llgo/chore/_xtool/llcppsymg/bb# uname -a
Linux be00d9b1c2c9 6.6.26-linuxkit #1 SMP Sat Apr 27 04:13:19 UTC 2024 aarch64 aarch64 aarch64 GNU/Linux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant