-
Notifications
You must be signed in to change notification settings - Fork 734
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
Abnormal Segment Error Problem in version 1.2.18 #267
Comments
Some additional information: I was using zlog version 1.2.16 and recently switched to 1.2.18. The preceding code snippets are modified in version 1.2.17. The Pull Request is #159 The only change is that the determination of 1.2.16 version of the code is as follows:
1.2.17 version of the code is as follows:
|
#159 also make a |
When the following two processes are triggered at the same time, a serious concurrency problem occurs. As a result, a null pointer occurs when the variable Process 1:
Process 2:
If we have two threads in a single process and call these two functions at the same point in time, there is a serious concurrency problem. The problem is caused by the code #159 modified in zlog 1.2.17. The access to This is a serious abnormal segment error problem. We hope that the problem can be solved as soon as possible and a patch or a new version can be provided. |
I found a problem in zlog 1.2.18. When the
vzlog
interface is used to print logs, the Signal 11 exception occurs. As a result, the process exits.Parse the library file and find that the following code is incorrect. The code is in the
zlog.c
file.The contents of the expanded macro definition are as follows:
By checking the assembly code, we find that the Linux is accessing
zlog_env_conf->level
when the problem occurs. The null pointer may occur when the parameter is accessed.I hope you can help analyze the possible causes and assist in fixing the problem.
The text was updated successfully, but these errors were encountered: