#203 Gdb internal error when attaching proces

component_package
closed-fixed
gdb (39)
2003-01-04
2002-10-15
No

I sometimes get error when trying to attach to process:

error return
../../../BUILD/gdb-5.1.1/gdb/win32-nat.c:1352 was 5
Attaching to process 1124
../../../BUILD/gdb-5.1.1/gdb/coffread.c:472:
gdb-internal-error: sect_index_text not initialized

What does that mean?

Discussion

  • Earnie Boyd

    Earnie Boyd - 2003-01-03
    • labels: --> gdb
    • milestone: --> component_package
    • priority: 5 --> 6
    • assigned_to: nobody --> earnie
    • status: open --> open-remind
     
  • Luke Dunstan

    Luke Dunstan - 2003-01-04

    Logged In: YES
    user_id=30442

    I think this error is caused when you try to debug a program
    that loads a DLL that has no text section (e.g. it just has
    resources). An example of such a DLL is odbcint.dll and this
    program reproduces the problem:

    #include <windows.h>
    #include <stdio.h>

    int main(void)
    {
    puts("1");
    LoadLibrary("odbcint.dll");
    puts("2");
    return 0;
    }

    If you try to run it or step over the LoadLibrary() using GDB
    5.1.1 it will give the above error message and hang. It is best
    observed under cmd.exe because with MSYS the error
    doesn't seem to appear, though it still hangs. AFAICT this is
    fixed in GDB 5.2.1.

     
  • Luke Dunstan

    Luke Dunstan - 2003-01-04
    • status: open-remind --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks