* Invalid memory address (dce / thd)
@ 1994-01-07 19:00 Mark Day
0 siblings, 0 replies; 3+ messages in thread
From: Mark Day @ 1994-01-07 19:00 UTC (permalink / raw)
I have a database server that starts up by interpreting a tcl script.
That tcl script controls how the benchmark database is built. I run
this on a DEC 3000/400 running OSF/1 V1.3 rev 111. For certain
database configurations, partway through this building process the
program always dies with the message
Exception: Invalid memory address (dce / thd)
IOT trap
Curiously, this problem never occurs if I run the same configuration
of the program under a debugger or using M-x shell under emacs. Does
anyone know what's going on here?
Thanks,
--Mark Day
mday@lcs.mit.edu
^ permalink raw reply [flat|nested] 3+ messages in thread
* Invalid memory address (dce / thd)
@ 1995-04-06 4:00 Tim Glauert
1995-04-13 4:00 ` Jeffrey M. Denham
0 siblings, 1 reply; 3+ messages in thread
From: Tim Glauert @ 1995-04-06 4:00 UTC (permalink / raw)
I'm trying to debug a pthreads program on DEC OSF1 V2.0 on an Alpha.
I frequently get "Exception: Invalid memory address (dce / thd)" but
there is no indication of which piece of code has caused this error.
I've succesfully caught the exception using the TRY and CATCH macros
but this doesn't appear to help much since I still can't find the
offending address! Is there *any* way to get the pthreads package to
tell me which piece of code causes this invalid memory reference?
Tim.
Tim Glauert, Olivetti Research Limited, | EMAIL TGlauert@cam-orl.co.uk
24a Trumpington Street, Cambridge, England. | TEL +44 1223 343232
| FAX +44 1223 313542
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Invalid memory address (dce / thd)
1995-04-06 4:00 Tim Glauert
@ 1995-04-13 4:00 ` Jeffrey M. Denham
0 siblings, 0 replies; 3+ messages in thread
From: Jeffrey M. Denham @ 1995-04-13 4:00 UTC (permalink / raw)
In article <3m0h11$mso@lyra.csx.cam.ac.uk>, thg@cam-orl.co.uk (Tim Glauert) writes:
|>
|>I'm trying to debug a pthreads program on DEC OSF1 V2.0 on an Alpha.
|>I frequently get "Exception: Invalid memory address (dce / thd)" but
|>there is no indication of which piece of code has caused this error.
|>I've succesfully caught the exception using the TRY and CATCH macros
|>but this doesn't appear to help much since I still can't find the
|>offending address! Is there *any* way to get the pthreads package to
|>tell me which piece of code causes this invalid memory reference?
|>
|> Tim.
|>
|>Tim Glauert, Olivetti Research Limited, | EMAIL TGlauert@cam-orl.co.uk
|>24a Trumpington Street, Cambridge, England. | TEL +44 1223 343232
|> | FAX +44 1223 313542
|>
The threads library establishes signal handler for all the exception
signals, such SEGV, ILL, BUS, TRAP. This is what allows it to do try-catch,
report errors, etc.
One crude way to deal with this is to replace the thread library's handlers
with your own. If you request SA_SIGINFO in your sigaction request, you'll
get a siginfo structure reporting the fault data. This is also available
in the sigcontext structure passed to the handler. See the sigaction
man page.
Even cruder, is to replace the library's handler's with the
default action. This will cause the dying program to dump core. You can
then examine the treads' stack and memory by debugging the core file.
A similar approach is to try running the application under debugger control.
The debugger should be notified of the fault before the library's handler
gets called. You can then so a simple stack trace to locate the problem.
--
-----------------------------------------------------------------------------
Jeff Denham, Unix Software Group, Digital Equipment Corporation
email: denham@zk3.dec.com, voice: (603) 881-0057
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1995-04-13 4:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-01-07 19:00 Invalid memory address (dce / thd) Mark Day
-- strict thread matches above, loose matches on Subject: below --
1995-04-06 4:00 Tim Glauert
1995-04-13 4:00 ` Jeffrey M. Denham
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox