From mboxrd@z Thu Jan 1 00:00:00 1970 From: Trevor Ellermann To: Subject: Problems with gdb after 5.1 upgrade (Tru64) Date: Thu, 15 Feb 2001 14:04:00 -0000 Message-id: X-SW-Source: 2001-02/msg00191.html I am the admin of a server that C programming classes are taught on at a university. About 2 weeks ago we did the Tru64 5.0 -> 5.0a -> 5.1 upgrade and we have been having problems with the system ever since. I have gotten most of the resolved but I cant seem to get gdb to work anymore. Gdb segfaults any time I run a program through it. This happens with both gdb 5.0 and 4.18 and using gcc 2.95.2 and 2.8.1. I have contacted Comapq about it but of cource they dont support GNU software. Any help would be much appreciated. Here is an example with a simple hello world program. The hello.c program -------- #include int main(void) { printf("\nHello world!\n\n"); } -------- intermix.engr.arizona.edu:/home3/t/trevore/projects/tmp> gcc -g hello.c intermix.engr.arizona.edu:/home3/t/trevore/projects/tmp> ./a.out Hello world! intermix.engr.arizona.edu:/home3/t/trevore/projects/tmp> gdb a.out GNU gdb 5.0 Copyright 2000 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 "alpha-dec-osf5.1"... (gdb) break main Breakpoint 1 at 0x120001178: file hello.c, line 5. (gdb) run Starting program: /home3/t/trevore/projects/tmp/a.out Unaligned access pid=379013 va=0x1400a4e9b pc=0x120140000 ra=0x12013ffff inst=0xa4290018 Unaligned access pid=379013 va=0x1400a4e93 pc=0x120140004 ra=0x12013ffff inst=0xa4c90010 Unaligned access pid=379013 va=0x1400a4e9b pc=0x120140010 ra=0x12013ffff inst=0xb4290018 Unaligned access pid=379013 va=0x1400a4eb3 pc=0x120140024 ra=0x12013ffff inst=0xa0690030 Unaligned access pid=379013 va=0x1400a4e9b pc=0x120140028 ra=0x12013ffff inst=0xa4290018 Unaligned access pid=379013 va=0x1400a4e8b pc=0x12014002c ra=0x12013ffff inst=0xa4890008 Unaligned access pid=379013 va=0x1400a4ea3 pc=0x120140030 ra=0x12013ffff inst=0xa4a90020 Unaligned access pid=379013 va=0x1400a4e9b pc=0x120140040 ra=0x12013ffff inst=0xb4690018 Unaligned access pid=379013 va=0x1400a4e9b pc=0x120140058 ra=0x12013ffff inst=0x8d490018 Unaligned access pid=379013 va=0x1400a4e93 pc=0x12014006c ra=0x12013ffff inst=0x9d490010 Segmentation fault intermix.engr.arizona.edu:/home3/t/trevore/projects/tmp> TIA! _____________________ Trevor R. Ellermann System Administrator Engineering and Mines University of Arizona