Re: How to debug seg fault. [message #48063] |
Tue, 21 March 2006 08:44  |
Jonathan Joseph
Messages: 69 Registered: September 1998
|
Member |
|
|
I spent much of yesterday making slight tweaks and trying to pinpoint
the problem. It was actually not until I quit my GUI application that
IDL would crash with a segmentation fault (or sometimes a bus error).
I also upgraded to 6.2, but surprisingly, that didn't help.
One other strange thing was that I run software on two slightly
different machines (a sun blade1000 and a sun blade2000 both running the
same OS and sharing disks so that they were using exactly the same IDL
executable and code paths), and I would get the crash on the blade1000
but not on the blade2000.
In the end, I found that I could reproduce the crash only when I had
left some text selected (usually it had to be down past the first 50
lines) in a large scrollable text widget in a window that was used to
display a PDS image label.
I eventually "solved" the problem by putting a line of code in the
widget cleanup routine that deselected any text that might be selected
in the text widget.
I can no longer reproduce the crash at any rate.
I'm wondering if there might be some memory issue buried in the IDL code
for selections in text widgets that has the ability to cause such a
problem under just the right conditions.
At any rate, the problem is gone for now, but if this scenerio rings a
bell for anyone, I'd like to hear about it.
Thanks.
-Jonathan
|
|
|