Cmenu 中的 Perl 脚本段错误
当我在 Solaris 8 上使用 Cmenu 模块时,我收到了核心转储。该脚本在 Solaris 10 上运行良好。有人请建议一个可能的解决方法吗?使用 dbx 显示以下内容:
terminated by signal SEGV (no mapping at the fault address)
Current function is Perl_safesysmalloc
92 Ptr = (Malloc_t)PerlMem_malloc(size?size:1)
Perl_safesysmalloc(size = 4U), line 92 in "util.c"
我在这台机器上使用 gcc 构建了 Perl 5.10 版本。如果您需要任何其他信息,请告诉我。
I am getting a core dump when I use the Cmenu module on Solaris 8. The script works fine on Solaris 10. Could somebody please suggest a possible workaround for this? Using dbx shows the following:
terminated by signal SEGV (no mapping at the fault address)
Current function is Perl_safesysmalloc
92 Ptr = (Malloc_t)PerlMem_malloc(size?size:1)
Perl_safesysmalloc(size = 4U), line 92 in "util.c"
I built version 5.10 of Perl using gcc on this machine. Please let me know if you have need any other information.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这可能是模块上的错误。向作者发送错误报告!
...不过,最后一个版本是 2001 年发布的,可能不再维护了:-(
That's probably a bug on the module. Send a bug report to the author!
... though, the last release is from 2001, probably not being maintained anymore :-(
Cmenu 是一个纯 Perl 模块,使用基于 C 库的 Curses.pm。因此最有可能发生核心转储的地方是 Curses.pm。尝试将其升级到最新版本。还可以尝试升级curses库。
如果这没有帮助,请尝试最小化您的程序以获得仍然会导致核心转储的最小程序。向 Cmenu 错误跟踪器报告。
Cmenu is a pure perl module that uses Curses.pm which is based on a C library. So mosts probable place for core dump is Curses.pm. Try upgrading it to latest version. Also try upgrading curses library.
If this does not help, try minimizing your program to get a minimal program that would still result a core dump. Report it to Cmenu bug tracker.