comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: How to debug seg fault.
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: How to debug seg fault. [message #48063] Tue, 21 March 2006 08:44 Go to previous message
Jonathan Joseph is currently offline  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
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: how to exchange variable between modal dialog and the main window?
Next Topic: Re: Database vs. File Parsing

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 14:52:09 PDT 2025

Total time taken to generate the page: 0.00462 seconds