| View previous topic :: View next topic |
| Author |
Message |
Mark Fassler
Joined: 21 Jul 2004 Posts: 2
|
Posted: Tue Feb 01, 2005 8:15 pm Post subject: Debugging 32-bit code on opteron gives false segfault? |
|
|
... title says it all.
hello.f:
print*, "Hello World!"
end
% pgf90 -g -tp k8-32 hello.f
% ./a.out
Hello World!
% pgdbg -text -tp k8-32 ./a.out
PGDBG 5.2-4 x86 (Workstation, 16 CPU)
Copyright 1989-2000, The Portland Group, Inc. All Rights Reserved.
Copyright 2000-2004, STMicroelectronics, Inc. All Rights Reserved.
***Reading DWARFv2 Information.
Loaded: /home/fassler/test-fortran/a.out
pgdbg> run
Reloading: /home/fassler/test-fortran/a.out
argv[0]= /home/fassler/test-fortran/a.out
Signalled SIGSEGV at 0xf7ff54a0, function _dl_debug_state, file <stdin>
f7ff54a0: 55 pushl %ebp
pgdbg>
------------
Variations using a direct $PATH to the 32-bit compiler produce the same results...
gdb works fine (except that it doesn't understand .f90, of course...)
This is on Fedora Core 2, x86_64, with all the latest patches (via up2date).
Any hints/suggestions?
-Mark |
|
| Back to top |
|
 |
mkcolg
Joined: 30 Jun 2004 Posts: 5001 Location: The Portland Group Inc.
|
Posted: Thu Feb 03, 2005 1:56 pm Post subject: |
|
|
Hi Mark,
I'm unable to recreate the problem here with our Fedora Core 2 system. Granted, we need to keep ours in its original state so the problem might have been caused by one of the up2date updates. I know that pgdbg 5.2-4 doesn't work well on Fedora Core 3 so perhaps your glibc was updated? What is the output when you run the following command?
Thanks,
Mat |
|
| Back to top |
|
 |
Alexandre Blanc
Joined: 30 Jul 2004 Posts: 1
|
Posted: Fri Feb 04, 2005 8:14 am Post subject: |
|
|
| Quote: | I know that pgdbg 5.2-4 doesn't work well on Fedora Core 3 so perhaps your glibc was updated?
|
Hi,
We're currently using Fedora Core 3, unfortunately, none of the debugging works for us in either C or Fortran ... Would you have any plan for Core 3 in a near future ?
Sincerely |
|
| Back to top |
|
 |
mkcolg
Joined: 30 Jun 2004 Posts: 5001 Location: The Portland Group Inc.
|
Posted: Fri Feb 04, 2005 8:54 am Post subject: |
|
|
Fedora Core 3 will be supported in the upcoming 6.0 release.
- Mat |
|
| Back to top |
|
 |
Mark Fassler
Joined: 21 Jul 2004 Posts: 2
|
Posted: Mon Feb 21, 2005 11:51 pm Post subject: |
|
|
Output from "/lib/libc.so.6' on fc2 x86_64 with all the latest patches as of feb 20:
| Code: |
GNU C Library stable release version 2.3.3, by Roland McGrath et al.
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 3.3.3 20040412 (Red Hat Linux 3.3.3-7).
Compiled on a Linux 2.4.20 system on 2004-10-28.
Available extensions:
GNU libio by Per Bothner
crypt add-on version 2.1 by Michael Glad and others
linuxthreads-0.10 by Xavier Leroy
The C stubs add-on version 2.1.2.
BIND-8.2.3-T5B
NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
Glibc-2.0 compatibility add-on by Cristian Gafton
GNU Libidn by Simon Josefsson
libthread_db work sponsored by Alpha Processor Inc
Thread-local storage support included.
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.
|
|
|
| Back to top |
|
 |
|