PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Webinar

Debugging 32-bit code on opteron gives false segfault?
Goto page 1, 2  Next
 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Debugging and Profiling
View previous topic :: View next topic  
Author Message
Mark Fassler



Joined: 21 Jul 2004
Posts: 2

PostPosted: Tue Feb 01, 2005 8:15 pm    Post subject: Debugging 32-bit code on opteron gives false segfault? Reply with quote

... 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
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 6213
Location: The Portland Group Inc.

PostPosted: Thu Feb 03, 2005 1:56 pm    Post subject: Reply with quote

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?
Code:
/lib/libc.so.6


Thanks,
Mat
Back to top
View user's profile
Alexandre Blanc



Joined: 30 Jul 2004
Posts: 1

PostPosted: Fri Feb 04, 2005 8:14 am    Post subject: Reply with quote

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
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 6213
Location: The Portland Group Inc.

PostPosted: Fri Feb 04, 2005 8:54 am    Post subject: Reply with quote

Fedora Core 3 will be supported in the upcoming 6.0 release.

- Mat
Back to top
View user's profile
Mark Fassler



Joined: 21 Jul 2004
Posts: 2

PostPosted: Mon Feb 21, 2005 11:51 pm    Post subject: Reply with quote

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
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Debugging and Profiling All times are GMT - 7 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group