执行时无法解析遇到的羊群错误
在调用Perl解释器并调用Perl Subroutine的CPP中执行自动单元测试时遇到以下错误 这是代码段: -
sub perlflock {
my $xsptr = shift;
my $self = shift;
my ($file, $use_locking) = @_;
logcroak "not a reference" unless ref($self);
logcroak "wrong argument number" unless @_ == 2; # No @foo in arglist
local *FILE;
if ($use_locking) {
open(FILE, ">>", $file) || logcroak "can't write into $file: $!";
unless (1) {
logcarp
"Storable::lock_store: fcntl/flock emulation broken on $^O";
return undef;
}
flock(FILE, LOCK_SH | LOCK_NB) ||
logcroak "can't get exclusive lock on $file: $!";
truncate FILE, 0;
# Unlocking will happen when FILE is closed
} else {
open(FILE, ">", $file) || logcroak "can't create $file: $!";
}
frl-plugin:perlscript:error:被操作蒙版捕获的“羊群”,at/usr/lib64/perl5/vendor_perl/storable.pm第271行。 汇编失败了,请访问/usr/share/perl5/vendor_perl/const/fast.pm第15行。 汇编失败了。 开始失败 - 编译流产。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
此错误是从a flock 的结果
FLOCK
尚未添加操作员作为允许操作。This error is the result of using
flock
from inside a Safe compartment for which theflock
operator hasn't been added as permitted operation.