Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* weird DECthreads bugcheck (PW433au, DU 4.0c)
@ 1997-11-14  5:00 Mark Bartelt
  1997-11-17  5:00 ` Dave Butenhof
  0 siblings, 1 reply; 2+ messages in thread
From: Mark Bartelt @ 1997-11-14  5:00 UTC (permalink / raw)



A program which works fine under DU 3.2c doesn't work on our PW433au
systems (DU 4.0c).  It doesn't even manage to start, but aborts with
the following message:

  DECthreads bugcheck (version V3.13-439), terminating execution.
  Failure initializing the manager thread tcb

We've been running with patch duv40cas00001-19970603 until today, when
I installed duv40cas00002-19970819 in hopes that it might fix things.
No joy; the problem is still present.

A trace shows the following:

  Tracing process /proc/15698
  getpagesize () = 8192
  obreak (0x148096bd0) = 0
  getpagesize () = 8192
  obreak (0x1480a4bd0) = 0
  mprotect (0x148098000, 8192, 0) =  -1, (Not enough space)

And immediately after that, the bugcheck.

The .bss section starts at virtual address 0x140002c70, and its size
is 0x8085f60, so the argument passed to the first obreak() is 0xe000
past the end of the initial .bss section, and second is 0xe000 past
that; and 0x148098000 is the first multiple of 0x2000 (= 8192) above
0x148096bd0.

The segment sizes shouldn't be a problem, since limits are

  datasize        1048576 kbytes
  stacksize       32768 kbytes
  memoryuse       119752 kbytes
  vmemoryuse      1048576 kbytes

If I stop in mprotect(), I find the following:

  0 __mprotect()
  1 stkGet()
  2 thdIniTcb()
  3 schInit()
  4 (unknown)()
  5 (unknown)()
  6 __init_libpthread()

I have managed to find one correlation:  The program includes DXML
routines.  If I don't link with "-ldxml", and replace the routines
used by the program with dummy stubs, the program starts up without
a problem.

The first obvious question is why the pthreads stuff is even getting
invoked, since this isn't a multi-threaded application.  So my first
suspicion was that somehow the parallel DXML library was getting used
instead of the normal one.  Nope; dxml.a is a symlink which points to
/usr/opt/XMDLOA313/dxml/libdxml_ev5.a (the parallel DXML stuff lives
in XMDPLL313).

So, anyone know what's going on?  Any other patches that I might have
missed?  Any obvious workarounds?

By the way, the relevant version info is:  DXML 3.1, Fortran 3.8 (and
I also tried with Fortran T4.1(ft3); same problem).

PS:  What is obreak()?  It doesn't appear to be documented anywhere
that I can find.  Some variant of the brk() and sbrk() family?  But
why is there no manpage?

Mark Bartelt                                             416/978-5619
Canadian Institute for                          mark@cita.utoronto.ca
Theoretical Astrophysics            http://www.cita.utoronto.ca/~mark

"Nur eine Waffel taugt!"      --      Parsifal, in an Eggo commercial



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

* Re: weird DECthreads bugcheck (PW433au, DU 4.0c)
  1997-11-14  5:00 weird DECthreads bugcheck (PW433au, DU 4.0c) Mark Bartelt
@ 1997-11-17  5:00 ` Dave Butenhof
  0 siblings, 0 replies; 2+ messages in thread
From: Dave Butenhof @ 1997-11-17  5:00 UTC (permalink / raw)



Mark Bartelt wrote:

> A program which works fine under DU 3.2c doesn't work on our PW433au
> systems (DU 4.0c).  It doesn't even manage to start, but aborts with
> the following message:
>
>   DECthreads bugcheck (version V3.13-439), terminating execution.
>   Failure initializing the manager thread tcb

This usually means you've got a full address space REALLY early in the
program initialization. I'd try raising the vm-vpagemax and possibly
vm-mapentries sysconfig parameters (via /etc/sysconfigtab)

>   mprotect (0x148098000, 8192, 0) =  -1, (Not enough space)

This implies that the failure is occurring on the creation of the guard
page for the manager thread stack. Such failures almost always point to
insufficient vm-vpagemax.

> The first obvious question is why the pthreads stuff is even getting
> invoked, since this isn't a multi-threaded application.  So my first
> suspicion was that somehow the parallel DXML library was getting used
> instead of the normal one.  Nope; dxml.a is a symlink which points to
> /usr/opt/XMDLOA313/dxml/libdxml_ev5.a (the parallel DXML stuff lives
> in XMDPLL313).

You can check your program, and any shared libraries, with "odump -Dl" to
get a list of shared library dependencies. You could do that iteratively
do determine which library has a dependency on libpthread.so.

> PS:  What is obreak()?  It doesn't appear to be documented anywhere
> that I can find.  Some variant of the brk() and sbrk() family?  But
> why is there no manpage?

As far as I can see, "obreak" is, for whatever reason, the syscall that
implements "sbrk". There's no obreak outside the kernel, and there's no
sbrk inside the kernel. Most likely, "obreak" is an arbitrary name
assigned when someone changed the kernel interface to (or behavior of)
sbrk in an incompatible way. The old syscall just got left as it was, but
all new code uses the new syscall.

/---------------------------[ Dave Butenhof ]--------------------------\
| Digital Equipment Corporation                   butenhof@zko.dec.com |
| 110 Spit Brook Rd ZKO2-3/Q18       http://members.aol.com/drbutenhof |
| Nashua NH 03062-2698  http://www.awl.com/cseng/titles/0-201-63392-2/ |
\-----------------[ Better Living Through Concurrency ]----------------/






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

end of thread, other threads:[~1997-11-17  5:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-11-14  5:00 weird DECthreads bugcheck (PW433au, DU 4.0c) Mark Bartelt
1997-11-17  5:00 ` Dave Butenhof

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