From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,a2637e993a371b6e X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2002-11-25 17:10:54 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!arclight.uoregon.edu!wn13feed!worldnet.att.net!12.120.4.37!attcg2!attsl2!ip.att.net!news.alltel.net!53ab2750!not-for-mail Reply-To: "News Account" From: "News Account" Newsgroups: comp.unix.tru64 References: <993d885.0211251434.7c9639f@posting.google.com> Subject: Re: Help with core file and stack size needed X-Newsreader: Microsoft Outlook Express 6.00.2720.3000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: Date: Tue, 26 Nov 2002 01:08:52 GMT NNTP-Posting-Host: 162.40.255.33 X-Complaints-To: abuse@alltel.net X-Trace: news.alltel.net 1038272932 162.40.255.33 (Mon, 25 Nov 2002 19:08:52 CST) NNTP-Posting-Date: Mon, 25 Nov 2002 19:08:52 CST Xref: archiver1.google.com comp.unix.tru64:9158 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" 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)