* Seg faults on OSF 5
@ 2001-03-26 11:19 src
2001-03-26 16:45 ` Adam Price
2001-03-26 17:18 ` Jeff Sullivan
0 siblings, 2 replies; 3+ messages in thread
From: src @ 2001-03-26 11:19 UTC (permalink / raw)
I written some C code that runs fine on OSF 4 (and linux), but crashes on
OSF 5 with a segmentation fault. Looking into the problem, it seems that
one function isn't being called, and when you try to access the result,
yep, it crashes.
It doesn't matter if the binary is compiled on OSF 4 or 5, it always runs
on OSF 4 and always crashes on OSF 5.
Any ideas?
cheers,
S
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Seg faults on OSF 5
2001-03-26 11:19 Seg faults on OSF 5 src
@ 2001-03-26 16:45 ` Adam Price
2001-03-26 17:18 ` Jeff Sullivan
1 sibling, 0 replies; 3+ messages in thread
From: Adam Price @ 2001-03-26 16:45 UTC (permalink / raw)
"src" <src@umzog.ulo.ucl.ac.uk> wrote in message news:Pine.LNX.4.21.0103261110090.8761-100000@umzog.ulo.ucl.ac.uk...
>
> I written some C code that runs fine on OSF 4 (and linux), but crashes on
> OSF 5 with a segmentation fault. Looking into the problem, it seems that
> one function isn't being called, and when you try to access the result,
> yep, it crashes.
>
> It doesn't matter if the binary is compiled on OSF 4 or 5, it always runs
> on OSF 4 and always crashes on OSF 5.
>
> Any ideas?
Yep, post the question again with some details of the code , perhaps you could reduce things to a minimal test case.
Tell us which version of the C compiler you are using, which version 4 of Tru64 and which version 5, tell us what
compiler options you used to compile the code and cross post it to comp.unix.tru64 (Some of the compiler group
hang out there and you will probably get a better answer).
Hope this helps
Adam
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Seg faults on OSF 5
2001-03-26 11:19 Seg faults on OSF 5 src
2001-03-26 16:45 ` Adam Price
@ 2001-03-26 17:18 ` Jeff Sullivan
1 sibling, 0 replies; 3+ messages in thread
From: Jeff Sullivan @ 2001-03-26 17:18 UTC (permalink / raw)
I think we would need more info to help diagnose this, but building
on a new OS or with a new compiler can possibly expose latent bugs
in source code that may have worked in the past.
A few things to try:
- compile with more diagnostic messages (see man cc and look for
-msg_enable). You can use the DEC_CC environment varibale to
add additional flags without editting makefiles. Do the warnings
point out any potential source code bugs?
- try compiling at -O0 -g. Does the application still crash with
no optimization?
- try atom third degree (see man third) to help debug the application.
If you're still stuck and can provide a pointer to a reproducer,
someone here might be able to help.
Good luck!
-Jeff
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-03-26 17:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-03-26 11:19 Seg faults on OSF 5 src
2001-03-26 16:45 ` Adam Price
2001-03-26 17:18 ` Jeff Sullivan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox