“恐慌:在全球破坏期间从错误的池中解放出来"的原因是什么?在 Term::ReadLine::Gnu? [英] What is the cause for “panic: free from wrong pool during global destruction.” in Term::ReadLine::Gnu?
问题描述
在 https://rt.cpan.org/Ticket/Display.html?id=37194#txn-641389 我重新打开了一个与 libreadline XS 绑定相关的 Perl 崩溃的错误.我附上了必要的调试信息,但直到现在还没有得到维护者的确认.我希望最终解决这个问题;在 Devel::REPL 和 Perl 调试器中没有 readline 是一个很大的不便.我的 Perl 胆量和 C 夫几乎不存在,所以我不能做通常的事情并自己制作补丁.所以我想请你帮忙;更多眼球 ↔ 浅虫等等.
in https://rt.cpan.org/Ticket/Display.html?id=37194#txn-641389 I reopened a bug concerning a Perl crash in conjunction with the libreadline XS bindings. I attached the necessary debug information, but until now there has been no acknowledgement from the maintainer. I want this finally fixed; it's a major inconvenience to not have readline in Devel::REPL and the Perl debugger. My Perl guts and C夫 is nearly non-existent, so I can't do the usual thing and produce a patch on my own. So I would like to employ your help; more eyeballs ↔ shallow bugs and all that.
我的问题:
- 尽管有
-DPERL_USE_SAFE_PUTENV
,您能否重现此崩溃?如果是,我们来比较一下共同因素是什么. - 你知道是什么原因吗?你是如何找到它的?
- 我有一个调试 perl 并且知道如何使用 gdb,但是我必须在哪里设置断点才能正确观察崩溃?
- Can you reproduce this crash despite
-DPERL_USE_SAFE_PUTENV
? If yes, let's compare what is the common factor. - Do you know what is the cause and how do you go about finding it?
- I have a debugging perl and know how to use gdb, but where do I have to set a breakpoint to observe the crash properly?
推荐答案
问题是我的 perl 从来没有安全的 putenv.选项不是-DPERL_USE_SAFE_PUTENV
,而是-Accflags="-DPERL_USE_SAFE_PUTENV"
.
The problem was that my perl never had safe putenv. The option is not -DPERL_USE_SAFE_PUTENV
, but -Accflags="-DPERL_USE_SAFE_PUTENV"
.
解决错误的文档补丁:
- https://rt.cpan.org/Ticket/Display.html?id=59592
- https://rt.perl.org/rt3/Ticket/Display.html?id=76618
这篇关于“恐慌:在全球破坏期间从错误的池中解放出来"的原因是什么?在 Term::ReadLine::Gnu?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!