Question

I have some legacy C code that I recently compiled on Linux. On the original HPUX the application opens and closes multiple curses windows. On the Linux box it can handle one window, but if I close that window, it crashes the program with an error message of "Aborted". Any ideas?

Was it helpful?

Solution 3

Discovered that it was the touchwin command that was causing it to fail. Removing that line of code seems to have no negative consequences. :-) Thanks all for the help. Up-votes all around.

OTHER TIPS

Yes. Change your options with ulimit(1) so when it aborts you save a core dump. Then look at the core dump with gdb(1) to find out where it's aborting and get back to us.

Given the comments to Charlie Martin's response, it would appear that you are failing to open your window and are then closing a non-open window, with dramatic results. Look to check the return codes of the Curses initialization function(s) and the window open call.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top