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

日志这种分配栈内存的方式,导致在cli模式下出现段错误,OOM错误 #142

Open
teqian opened this issue Sep 20, 2019 · 0 comments

Comments

@teqian
Copy link

teqian commented Sep 20, 2019

void slog_record(int level, const char *file, int line, const char *fmt, ...) {
va_list args;
char format[256] = {0};
char time_buf[64] = {0};
char log_buf[512] = {0};
......
}

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