Curses Window in Linux Causing Abort

Curses Window in Linux Causing Abort

羁拥 发布于 2021-11-27 字数 290 浏览 976 回复 3 原文

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?

如果你对这篇文章有疑问,欢迎到本站 社区 发帖提问或使用手Q扫描下方二维码加群参与讨论,获取更多帮助。



需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。


微暖i 2022-06-07 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.

剩余の解释 2022-06-07 2 楼

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.

森林散布 2022-06-07 1 楼

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.