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-28 05:22:42 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!arclight.uoregon.edu!wn14feed!worldnet.att.net!208.49.253.98!newsfeed.news2me.com!newsfeed2.easynews.com!newsfeed1.easynews.com!easynews.com!easynews!crtntx1-snh1.gtei.net!paloalto-snf1.gtei.net!news.gtei.net!news.compaq.com!news.cpqcorp.net!53ab2750!not-for-mail Message-ID: <3DE61611.7030102@zko.dec.com> From: john reguera User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.unix.tru64 Subject: Re: Help with core file and stack size needed References: <993d885.0211251434.7c9639f@posting.google.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 28 Nov 2002 13:16:38 GMT NNTP-Posting-Host: 16.47.206.193 X-Complaints-To: abuse@Compaq.com X-Trace: news.cpqcorp.net 1038489398 16.47.206.193 (Thu, 28 Nov 2002 05:16:38 PST) NNTP-Posting-Date: Thu, 28 Nov 2002 05:16:38 PST Organization: Hewlett-Packard Company Xref: archiver1.google.com comp.unix.tru64:9176 Hi Jack, Fortran can use LIBOTS, which uses DecThreads. Using Ladebug, extract the following information from the application/core. pthread "system" ! system info pthread "versions" ! DECthreads version pthread "vp" ! Brief listing of VPs pthread "thread -1a" ! Brief listing of threads pthread "mutex -faql" ! Full listing of all locked mutexes pthread "cond -faqw" ! Full listing of all CV's with waiters pthread "rwlocks -faqr ! Full listing of all read-locks pthread "rwlocks -faqw ! Full listing of all write-locks pthread "show -tuvk" ! Timeslice, Upcall, VP (on old versions), and kernel information pthread "vp -f" ! Full info on all VPs pthread "thread -fa" ! Full info on all threads pthread "stacks -fs" ! Display each threads' stacks beginning and end points. pthread "mutex -faq" ! Full info on all mutexes pthread "cond -faq" ! Full info on all CV's pthread "rwlocks -faq ! Full listing of all write-locks pthread "vm -cf" ! DECthreads internal memory manager pthread "keys" ! List of per-thread context keys pthread "mutex -h" ! History for mutexes, if available (typically not) pthread "cond -h" ! History for condition variables, if available (typically not) This will be a good starting point to determine the root cause of failure. I would be happy to assist if you prefer. Simply forward the information to me at: reguera@zko.dec.com thanks John Reguera Hewlett Packard POSIX Threads Engineering. Jack Frillman wrote: > 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)