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

A memory bug detected by valgrind? #109

Closed
huahang opened this issue May 6, 2016 · 0 comments
Closed

A memory bug detected by valgrind? #109

huahang opened this issue May 6, 2016 · 0 comments

Comments

@huahang
Copy link

huahang commented May 6, 2016

I get the following error in my program when running with valgrind to check memory issue:

==16539== Syscall param write(buf) points to uninitialised byte(s)
==16539==    at 0x554C88D: ??? (syscall-template.S:81)
==16539==    by 0x54DA002: _IO_file_write@@GLIBC_2.2.5 (fileops.c:1261)
==16539==    by 0x54DB4DB: new_do_write (fileops.c:538)
==16539==    by 0x54DB4DB: _IO_do_write@@GLIBC_2.2.5 (fileops.c:511)
==16539==    by 0x54DA6A0: _IO_file_xsputn@@GLIBC_2.2.5 (fileops.c:1332)
==16539==    by 0x54CFE6C: fwrite (iofwrite.c:43)
==16539==    by 0x67B5EB: google::(anonymous namespace)::LogFileObject::Write(bool, long, char const*, int) (logging.cc:896)
==16539==    by 0x6814A7: google::LogDestination::MaybeLogToLogfile(int, long, char const*, unsigned long) (logging.cc:563)
==16539==    by 0x681503: google::LogDestination::LogToAllLogfiles(int, long, char const*, unsigned long) (logging.cc:575)
==16539==    by 0x67CA09: google::LogMessage::SendToLog() (logging.cc:1208)
==16539==    by 0x67C615: google::LogMessage::Flush() (logging.cc:1115)
==16539==    by 0x67C452: google::LogMessage::~LogMessage() (logging.cc:1082)

==16539==  Address 0x4025f6d is not stack'd, malloc'd or (recently) free'd
==16539== 

It seems to be a bug in glog?

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

2 participants