← Back to team overview

kernel-packages team mailing list archive

[Bug 1568428] [NEW] Python Exception <class 'IndexError'> list index out of range

 

Public bug reported:

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).

** Affects: gdb
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1568428

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

Status in gdb:
  New

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).

To manage notifications about this bug go to:
https://bugs.launchpad.net/gdb/+bug/1568428/+subscriptions


Follow ups