首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在Linux coredump中发现Perl分段错误。

在Linux coredump中发现Perl分段错误。
EN

Stack Overflow用户
提问于 2019-10-22 18:49:04
回答 1查看 100关注 0票数 1

我使用的是基于Oracle Linux 6.10的定制操作系统。我有几个自定义的命令,可以帮助查找防火墙规则、硬件信息等信息,但如果我运行这些命令,就会生成核心转储。

在我的OracleLinux6.10服务器上有4个核心文件,比如core.top.myrole.34089.bt

下面是由top.myrole 'Program terminated with signal 6,Aborted/No symbol table info available‘生成的错误信息:

代码语言:javascript
复制
10/15/2019 13:54:57 core.top.myrole.34089.bt

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

top.myrole: No such file or directory.

Missing separate debuginfo for the main executable file

Try: yum --enablerepo='*-debug*' install

/usr/lib/debug/.build-id/81/7805fb3de3731d5c36c8f7da38040ee6d510ea

[New Thread 34090]

[New Thread 34089]

Core was generated by \top.myrole'.`

Program terminated with signal 6, Aborted.

#0 0x000000347960f00d in ?? ()

Thread 2 (Thread 34089):

#0 0x000000347960f00d in ?? ()

No symbol table info available.

#1 0x0000000000000001 in ?? ()

No symbol table info available.

在上面的代码行“No symbol table”之后,错误将在多个线程中重复出现。

然后发现在运行自定义命令‘hardwareshow’时也生成了其他核心转储(该命令不是linux命令,但它是在我们的发行版中自定义的)。日志显示内核是由'/usr/bin/perl /usr/product/bin/iprule show‘生成的:

代码语言:javascript
复制
10/14/2019 20:44:25, core.hardwareshow.8944.bt
warning: core file may not match specified executable file.
[New Thread 55835]
[Thread debugging using libthread_db enabled]
Core was generated by \/usr/bin/perl /usr/product/bin/iprule show--type=rule --protocol=ipv6 -'.Program terminated with signal 11, Segmentation fault.#0  0x0000003479a80829 in ?? () from /usr/lib64/perl5/CORE/libperl.so`

------------
10/14/2019 04:19:59, core.iprule.55835.bt

我检查了机器上使用的Perl版本,它似乎是Perl5,(仍然需要确认它是否是5.10).How我解决了这个问题吗?我从一些Perl专家那里听说Perl升级到新版本可以有所帮助,我仍然希望听到许多Linux开发人员/Perl开发人员关于这个错误的意见。

EN

回答 1

Stack Overflow用户

发布于 2019-10-22 18:58:04

在以下情况下,perl解释器将进行核心转储:在其实现中存在错误;如果使用了某些病态的Perl代码模式(例如无限递归调用tie或重载处理程序);或者如果使用C级代码的外部模块(如XS模块)中存在错误。确定故障是什么可能很困难。如果你只想解决这个问题,那么升级到最新的版本可能是阻力最小的方法。请注意,perl 5.10.0发行版已经发布了大约12年。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/58502570

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档