GDB Crash during debugging session due to libstdcxx.v6.printers import register_libstdcxx_printers
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gdb (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
While attempting to debug a simple C++, program, GDB crashes. The program is below:
$ gdb
GNU gdb (Ubuntu 7.7.1-0ubuntu5~
...
(gdb) file ./cryptopp-test.exe
Reading symbols from ./cryptopp-
(gdb) r
Starting program: /home/user/
Traceback (most recent call last):
File "/usr/share/
from libstdcxx.
ImportError: No module named 'libstdcxx'
Program received signal SIGSEGV, Segmentation fault.
Segmentation fault
**********
This appears to be a Debian bug from February, 2013: https:/
**********
I'm on Ubuntu 14.04, x86_64 fully patched. I'm using Gnome-Fallback desktop (it seems many think everything is a tablet now. I'd like to get a hold of the drugs the folks at Microsoft, Fedora, Ubuntu (etc) are using for recreational purposes, too).
$ uname -a
Linux ubuntu 3.13.0-57-generic #95-Ubuntu SMP Fri Jun 19 09:28:15 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
$ lsb_release
No LSB modules are available.
**********
The program below is going to provide (or not provide) heuristic evidence of a bias in the Random Number Generator. The crash occurs with different symbol levels (-g) and optimizations (-O).
// g++ -DDEBUG=1 -g3 -Og -Wall -Wextra -Wno-unused-
// -I/usr/
// /usr/local/
static const word32 MIN_VAL = 0, MAX_VAL = 2;
static const word32 RANGE = MAX_VAL - MIN_VAL + 1;
static const unsigned int ITERATIONS = 100000;
int main(int argc, char* argv[])
{
try {
cout << j << ": " << buckets[j] << endl;
}
catch(
{
cerr << ex.what() << endl;
}
return 0;
}