evilsong / gperftools

Automatically exported from code.google.com/p/gperftools
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

serious degradation issue with global variables compared to 2012 version #513

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. ./configure  --enable-frame-pointers
2.

Pick a random unit test (say memalign_unittest.cc) and
add the following snippet:

#include <vector>
class FooBarStatic {
 public:
  FooBarStatic() {
    fprintf(stderr, "%lld", uint64(this));
  }
  ~FooBarStatic() {
    fprintf(stderr, "%lld", uint64(this));
  }

 private:
  const std::vector<char> data_;
};

static FooBarStatic ffooo;

3. make memalign_unittest && ./memalign_unittest
4. The program crashes with segfault

What is the expected output? What do you see instead?
The program should not crash. In fact Feb 2012 version does not crash.

What version of the product are you using? On what operating system?
uname -a
Linux 3.5.0-17-generic #28-Ubuntu SMP Tue Oct 9 19:31:23 UTC 2012 x86_64 x86_64 
x86_64 GNU/Linux

Please provide any additional information below.

Original issue reported on code.google.com by roma...@gmail.com on 23 Mar 2013 at 5:46

GoogleCodeExporter commented 9 years ago
Sorry, please close this issue -the problem was on my side.

Original comment by roma...@gmail.com on 25 Mar 2013 at 3:29

GoogleCodeExporter commented 9 years ago
Closing as invalid as per Roman's comment above

Original comment by alkondratenko on 1 Apr 2013 at 5:54