sivarajankumar / screen3d

Automatically exported from code.google.com/p/screen3d
0 stars 0 forks source link

[SCREEN/UTILS] segfault while profiler reporting on Linux in debug mode #20

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Seems to have conflict with Logger (profiler outputs appears in Logger 
output, even if there is no profiler reporter

Original issue reported on code.google.com by thoratou@gmail.com on 7 Jun 2010 at 11:48

GoogleCodeExporter commented 8 years ago
Appends only in debug mode (profiler is not used in release mode)

Original comment by thoratou@gmail.com on 7 Jun 2010 at 12:09

GoogleCodeExporter commented 8 years ago
Bug found : it was due to the _getClassName in Declaration.h

inline static const std::string& _getClassName(){
   static std::string ret(#c);
   return ret;
}

At the end of the program the string is deallocated (static variable), so when 
we try to use it, it returns an invalid memory zone.

The fix is to change it with a const char* (and change Logger and Reporter 
parameters)

Original comment by thoratou@gmail.com on 9 Jun 2010 at 7:33

GoogleCodeExporter commented 8 years ago
Bug fixed

Original comment by tt.tranq...@gmail.com on 12 Jun 2010 at 6:34

GoogleCodeExporter commented 8 years ago
fix validated

Original comment by thoratou@gmail.com on 23 Jun 2010 at 9:12

GoogleCodeExporter commented 8 years ago

Original comment by thoratou@gmail.com on 23 Jun 2010 at 9:12