Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: "News Account" <none@none.org>
Subject: Re: Help with core file and stack size needed
Date: Tue, 26 Nov 2002 01:08:52 GMT	[thread overview]
Message-ID: <EQzE9.949$4s6.921188@news.alltel.net> (raw)
In-Reply-To: 993d885.0211251434.7c9639f@posting.google.com

We had a problem just like this on a DEC-THREADS "C" program - turns out our
software people were not using reentrant system functions in the threads. I
happened upon the solution searching the net after I refused to grant the
software group an unlimited ULIMIT - I manage the Systems department.

Sounds like your FORTRAN program _somewhere_ is using a threads function.
The use of threads requires the use of the "reentrant" version of any system
functions involved in the thread - if you are using threads and
"non-reentrant" functions you will get unpredictable results and sporadic
crashes.

Take a close look at the DEC-THREADS documentation and try to find the
threads function being used.

Good luck,

Don Woodward


"Jack Frillman" <jack.frillman@wpafb.af.mil> wrote in message
news:993d885.0211251434.7c9639f@posting.google.com...
> I have a Fortran program (running on Tru64 V 4.0F)  that dumps core
> after
> about 45min. to 1 Hr. of run time.  I can lenghten the time it takes
> to
> dump core by increasing the stack size with the ulimit command.
> Looking
> at the core file with ladebug it appears that the problem is in the
> libpthread.so
> library. At least that is where it manifests itself. The Fortran
> program is
> not directly using threads so I can only assume that the underlying
> librarys are the source of the threading or use of one master thread.
>
> The fortran program is not using recursion and not forking processes.
>
> I am stumped.
>
> I have included the function call stack at the bottom, and this is
> the only information I can glean form the core file.
>
> Has anyone seen a simular problem?
>
>
> Why would increasing the stack size effect this?
> How does the implementation of threads use the stack?
> Any ideas on how I can narrow this down  any more?
> Any ideas on how to fix this or if it is even possible to fix?
>
>
>
>
> [popt1](465):ladebug fdax core
> Welcome to the Ladebug Debugger Version 4.0-49
> ------------------
> object file name: fdax
> core file name: core
> Reading symbolic information ...done
> Core file produced from executable fdax
> Thread 0x1 terminated at PC 0x3ff805bc5d8 by signal SEGV
> (ladebug) where
> >0  0x3ff805bc5d8 in UnknownProcedure13FromFile111(0x3ffc01b71e0,
> >0x3ffc01b3690, 0x3ffc
> 01b3690, 0x11fe000f8, 0x0, 0x3ff8057d830) in /usr/shlib/libpthread.so
> #1  0x3ff805bc5d4 in UnknownProcedure13FromFile111(0x3ffc01b71e0,
> 0x3ffc01b3690, 0x3ffc
> 01b3690, 0x11fe000f8, 0x0, 0x3ff8057d830) in /usr/shlib/libpthread.so
> #2  0x3ff805bc5d4 in UnknownProcedure13FromFile111(0x3ffc01b71e0,
> 0x3ffc01b3690, 0x3ffc
> 01b3690, 0x11fe000f8, 0x0, 0x3ff8057d830) in /usr/shlib/libpthread.so
> (ladebug) list
> No file.
> (ladebug)




  reply	other threads:[~2002-11-26  1:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-25 22:34 Help with core file and stack size needed Jack Frillman
2002-11-26  1:08 ` News Account [this message]
2002-11-28 13:16 ` john reguera
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox