Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* Help with core file and stack size needed
@ 2002-11-25 22:34 Jack Frillman
  2002-11-26  1:08 ` News Account
  2002-11-28 13:16 ` john reguera
  0 siblings, 2 replies; 3+ messages in thread
From: Jack Frillman @ 2002-11-25 22:34 UTC (permalink / raw)


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)


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Help with core file and stack size needed
  2002-11-25 22:34 Help with core file and stack size needed Jack Frillman
@ 2002-11-26  1:08 ` News Account
  2002-11-28 13:16 ` john reguera
  1 sibling, 0 replies; 3+ messages in thread
From: News Account @ 2002-11-26  1:08 UTC (permalink / raw)


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)




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Help with core file and stack size needed
  2002-11-25 22:34 Help with core file and stack size needed Jack Frillman
  2002-11-26  1:08 ` News Account
@ 2002-11-28 13:16 ` john reguera
  1 sibling, 0 replies; 3+ messages in thread
From: john reguera @ 2002-11-28 13:16 UTC (permalink / raw)


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)



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-11-28 13:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-25 22:34 Help with core file and stack size needed Jack Frillman
2002-11-26  1:08 ` News Account
2002-11-28 13:16 ` john reguera

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