gdb

Python Exception <class 'IndexError'> list index out of range

Bug #1568428 reported by Jeffrey Walton on 2016-04-10
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gdb
New
Undecided
Unassigned

Bug Description

I'm attempting to debug a C++ program in a debug configuration under GDB. GDB seems to be having some trouble due to Python:

Catchpoint 1 (exception thrown), 0x00007ffff7b348b0 in __cxa_throw ()
   from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
(gdb) where
#0 0x00007ffff7b348b0 in __cxa_throw ()
   from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#1 0x00000000004d71b1 in SignalTestError () at datatest.cpp:67
Python Exception <class 'IndexError'> list index out of range:
#2 0x00000000004d73c0 in GetRequiredDatum (
    data=std::__debug::map with 7 elements, name=0x6fdab7 "KeyFormat")
    at datatest.cpp:80
Python Exception <class 'IndexError'> list index out of range:
#3 0x00000000004d8375 in TestSignatureScheme (
    v=std::__debug::map with 7 elements) at datatest.cpp:244
#4 0x00000000004dd42f in TestDataFile (
    filename="TestVectors/dsa_rfc6979.txt", overrideParameters=...,
    totalTests=@0x7fffffffd3a8: 0, failedTests=@0x7fffffffd3ac: 0)
    at datatest.cpp:775
#5 0x00000000004dda56 in RunTestDataFile (
    filename=0xb732a8 "TestVectors/dsa_rfc6979.txt", overrideParameters=...,
    thorough=true) at datatest.cpp:824
#6 0x000000000046a313 in main (argc=3, argv=0x7fffffffdf98) at test.cpp:288

**********

The program is in a Debug configuration, which means CXXFLAGS="-DDEBUG -g3 -O0". In addition, because DEBUG is defined, -D_GLIBCXX_CONCEPT_CHECKS and -D_GLIBCXX_DEBUG defined, too. (We test under a number of odd configurations, like a debug configuration of Glibc and concept checks).

Jeffrey Walton (noloader) wrote :

Change to GDB.

It sure would be nice if someone took the time to fix Launchpad and its broke package search. When looking up GDB, "Too many matches. Please try to narrow your search" is a useless error message. It would be better to give someone the damn result.

affects: linux (Ubuntu) → gdb
Jeffrey Walton (noloader) wrote :
Download full text (4.2 KiB)

$ apt-cache showpkg gdb
Package: gdb
Versions:
7.7.1-0ubuntu5~14.04.2 (/var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_trusty-updates_main_binary-amd64_Packages) (/var/lib/dpkg/status)
 Description Language:
                 File: /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_trusty_main_binary-amd64_Packages
                  MD5: 4f2b8eb95df2ba7a5b11e0301c48b8e4
 Description Language: en
                 File: /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_trusty_main_i18n_Translation-en
                  MD5: 4f2b8eb95df2ba7a5b11e0301c48b8e4

7.7-0ubuntu3 (/var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_trusty_main_binary-amd64_Packages)
 Description Language:
                 File: /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_trusty_main_binary-amd64_Packages
                  MD5: 4f2b8eb95df2ba7a5b11e0301c48b8e4
 Description Language: en
                 File: /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_trusty_main_i18n_Translation-en
                  MD5: 4f2b8eb95df2ba7a5b11e0301c48b8e4

Reverse Depends:
  apport-noui,gdb
  apport-kde,gdb
  python3.4-dbg,gdb
  apport-retrace,gdb
  apport-gtk,gdb
  gdbserver:i386,gdb 7.0.1-1
  gdb-minimal:i386,gdb
  gdb:i386,gdb
  gdb:i386,gdb
  tor-dbg,gdb
  sylpheed-dbg,gdb
  libreoffice-subsequentcheckbase,gdb
  kdesdk-scripts,gdb
  gdbserver,gdb 7.0.1-1
  gdb-multiarch,gdb 7.7.1-0ubuntu5~14.04.2
  gdb-minimal,gdb
  bird-dbg,gdb
  bird-bgp-dbg,gdb
  apport-noui,gdb
  apport-kde,gdb
  valgrind,gdb
  python3.4-dbg,gdb
  php5-dbg,gdb
  mono-runtime-dbg,gdb
  libmonosgen-2.0-1-dbg,gdb
  libmonoboehm-2.0-1-dbg,gdb
  gdb-doc,gdb 7.7.1-0ubuntu5~14.04.2
  gdb-doc,gdb 7.7.1
  gdb,gdb
  apport-retrace,gdb
  apport-gtk,gdb
  gdbserver:i386,gdb 7.0.1-1
  gdb-minimal:i386,gdb
  gdb-doc:i386,gdb 6.4.50.20060511-1
  gdb:i386,gdb
  xxgdb,gdb
  xwpe,gdb
  tor-dbg,gdb
  sylpheed-dbg,gdb
  sugar-tools-0.98,gdb
  sugar-tools-0.96,gdb
  sucrose-0.98,gdb
  sucrose-0.96,gdb
  softhsm-dbg,gdb
  qtcreator,gdb
  qt-sdk,gdb
  qdevelop,gdb
  python-cpl,gdb
  projectcenter.app,gdb
  percona-toolkit,gdb
  pari-gp2c,gdb
  opendnssec-dbg-sqlite3,gdb
  opendnssec-dbg-mysql,gdb
  odin,gdb
  netcdf-dbg,gdb
  nemiver,gdb
  monodevelop-debugger-gdb,gdb
  monodevelop-debugger-gdb,gdb
  mc-dbg,gdb
  liferea-dbg,gdb
  libvibrant6b-dbg,gdb
  libreoffice-subsequentcheckbase,gdb
  libncbi6-dbg,gdb
  libmigemo-dbg,gdb
  libgtkglada-dbg,gdb 6.8
  libgtkada-dbg,gdb 6.8
  libgnomeada-dbg,gdb 6.8
  libginac2-dbg,gdb 6.3
  libfltk1.3-dbg,gdb
  libdmalloc5,gdb
  leaktracer,gdb
  lcl-units-1.0.10,gdb
  lcl-qt4-1.0.10,gdb
  lcl-nogui-1.0.10,gdb
  lcl-gtk2-1.0.10,gdb
  lcl-1.0.10,gdb
  lazarus-ide-qt4-1.0.10,gdb
  lazarus-ide-gtk2-1.0.10,gdb
  lazarus-ide-1.0.10,gdb
  knot-dbg,gdb
  kdevelop,gdb 7.0
  kdesdk-scripts,gdb
  kde-developer-sdk,gdb
  kdbg,gdb 5.0
  gdbserver,gdb 7.0.1-1
  gdb-multiarch,gdb 7.7-0ubuntu3
  gdb-minimal,gdb
  gdb-mingw-w64,gdb 7.6~20130417
  gammaray,gdb
  ddd,gdb 7.1
  codelite,gdb
  codeblocks,gdb
  code-aster-run,gdb
  clisp,gdb
  cgdb,gdb
  bird-dbg,gdb
  bird-bgp-dbg,gdb
  apport-noui,gdb
  apport-kde,gdb
  anjuta,gdb
  valgrind,gdb
  python3.4-dbg,gdb
  php5-dbg,gdb
  ...

Read more...

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers