Internal error from 6.3 on Tru64 UNIX 5.1

Albert Chin gdb@mlists.thewrittenword.com
Thu Jun 23 22:01:00 GMT 2005


$ cat sample.c
#include <stdio.h>
#include <stdlib.h>

static void shell_sort(int a[], int size)
{
    int i, j;
    int h = 1;
    do {
        h = h * 3 + 1;
    } while (h <= size);
    do {
        h /= 3;
        for (i = h; i < size; i++)
        {
            int v = a[i];
            for (j = i; j >= h && a[j - h] > v; j -= h)
                a[j] = a[j - h];
            if (i != j)
                a[j] = v;
        }
    } while (h != 1);
}

int main(int argc, char *argv[])
{
    int *a;
    int i;

    a = (int *)malloc((argc - 1) * sizeof(int));
    for (i = 0; i < argc - 1; i++)
        a[i] = atoi(argv[i + 1]);

    shell_sort(a, argc);

    for (i = 0; i < argc - 1; i++)
        printf("%d ", a[i]);
    printf("\n");

    free(a);
    return 0;
}

$ /opt/TWWfsw/gcc343/bin/gcc -g -o sample sample.c
$ /opt/TWWfsw/gdb63/bin/gdb sample
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "alphaev67-dec-osf5.1"...
(gdb) list
warning: (Internal error: pc 0x1200013d8 in read in psymtab, but not in symtab.)

22              }
23          } while (h != 1);
24      ...

Any way to get rid of the warning? GDB appears to work ok though.

-- 
albert chin (china@thewrittenword.com)



More information about the Gdb mailing list