tracym111 / google-glog

Automatically exported from code.google.com/p/google-glog
Other
0 stars 0 forks source link

glog crashed on x64 Ubuntu #79

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Sorry, accidentally report null report. 

Here is how to reproduce this issue:  

What steps will reproduce the problem?
1. compile on ubuntu 10.4 
2. done ./configure & make, & make install 
3. Compile following code 

What is the expected output? What do you see instead?

#include <glog/logging.h>
#include <iostream>

   int main(int argc, char* argv[]) {

     // Initialize Google's logging library.
       google::InitGoogleLogging(argv[0]);

     int num_cookies = 999;

      LOG(INFO) << "Found " << num_cookies << " cookies";

      LOG(FATAL) << "HELLO";
      LOG(ERROR) << "HELLOW ERROR";

   }

// Then compile with 
g++ tutorial.cc  -lglog -g

// run got following error 
F1227 17:11:58.980763 32601 tutorial.cc:14] HELLO
*** Check failure stack trace: ***
    @     0x7f8e3883df5d  google::LogMessage::Fail()
    @     0x7f8e388418ff  google::LogMessage::SendToLog()
    @     0x7f8e38840e37  google::LogMessage::Flush()
    @     0x7f8e38841ddd  google::LogMessageFatal::~LogMessageFatal()
    @           0x400c1d  main
    @     0x7f8e37d22c4d  (unknown)
    @           0x400a89  (unknown)

What version of the product are you using? On what operating system?
ubuntu x64 10.4 

Please provide any additional information below.

Original issue reported on code.google.com by kurraba....@gmail.com on 27 Dec 2010 at 6:17

GoogleCodeExporter commented 8 years ago
This is expected behavior.  Logging a FATAL message terminates the program, and 
(on supported platforms) dumps the stack trace.  See 
http://google-glog.googlecode.com/svn/trunk/doc/glog.html for details.

Original comment by hlsyou...@gmail.com on 7 Feb 2011 at 12:33

GoogleCodeExporter commented 8 years ago
Issue 78 has been merged into this issue.

Original comment by hlsyou...@gmail.com on 7 Feb 2011 at 12:33