-
Notifications
You must be signed in to change notification settings - Fork 75
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
这边不应该去写入rec.Category, 会导致崩溃 #13
Comments
这个panic是什么原因导致的呢?使用中又遇到一个导致崩溃的问题 goroutine 4 [running]: |
@yangyongzhen 就是我说的那个原因啊, 他在多线程中去写入一个指针所指向的空间, 导致内存错乱了。在哪报错都有可能, 一般就在附近就崩溃了。
|
收到!多谢啦,我试试 |
是的,问题已解决。是huangapple说的这个问题,感谢!这是作者的一个bug吧,其他的还挺好用,暂未发现其他问题 |
pattlog.go 第92行, 你这个rec是传给不止一个goroutine, 是指针传递, 所以在任何goroutine都不要无锁写入, 要不会导致崩溃。
The text was updated successfully, but these errors were encountered: