This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: segfault in __libc_start_main when compiling f77 and c code together?



On Tue, 9 Jan 2001, Toon Moene wrote:

> Perhaps you could answer some questions related to this problem:
>
> 1. Which language is providing the main program - i.e. is it a Fortran
>    program calling C routines or vice versa.

Its about as convoluted a setup as I've ever seen.  main is in C, and
calls a combination of functions in C and fortran.  We are trying to
migrate away from IBM SP/2 towers.  The C functions use MPI (trying to
move to mpich).  I suspect the problem is related to the MPI calls made in
main, but I havn't been able to duplicat the problem in any smaller test
programs yet, and today I found out that some of the libraries this beast
is linked against are multi threaded, so I suppose that might be
contributing somehow.

However, it does segfault before anything actually happens in main, before
the first MPI calls are made or anything else happens.  It is driving me
nuts that I can't duplicate this on a smaller scale.  What kinds of
linking/library issues might be causing things to die in this way before
anything has even happened?

Britton


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]