[CPAN] SNMP::Extension::PassPersist fails with missing Sys::Syslog openlog

オープン
#2,022 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
52/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
java, perl
領域
backend, testing

調査の方向性

Start by tracing how PerlOnJava implements the bundled Sys::Syslog import and exports openlog, then compare that behavior with system Perl. Reproduce the failure with the CPAN dependency overlay on both backends and inspect the project’s existing tests for a suitable place for the regression test. Done means the three upstream failing test files pass on both backends and the project-owned test covers the missing import behavior.

索引モデルが issue の本文から書いたものです。

説明

area:runtime bug

Summary

SNMP::Extension::PassPersist 0.07 fails three upstream test files under PerlOnJava because openlog imported by use Sys::Syslog is undefined when run() executes. The failure reproduces on both the JVM and interpreter backends. The same upstream tests pass under system Perl.

The evidence points to an import/export problem in PerlOnJava's bundled Sys::Syslog path. Please trace why SNMP::Extension::PassPersist::openlog is not installed by use Sys::Syslog; the direct failure is an undefined subroutine, rather than an error in the test's SNMP output handling.

Reproduction and results

CPAN random tester run 20261109-091152-39587, distribution SNMP-Extension-PassPersist-0.07:

  • PerlOnJava: 61/67 assertions passed; 6 failed across t/10-synopsis-pass.t, t/10-synopsis-passpersist.t, and t/12-run.t.
  • JVM and interpreter: the focused t/10-synopsis-pass.t test reproduces the same failure using the distribution's recorded dependency overlay.
  • System Perl: the archived oracle passed the full suite (68 tests). A focused rerun of all three failing test files also passed (16 tests).
  • Failure text: Undefined subroutine &SNMP::Extension::PassPersist::openlog called at the openlog(...) call in SNMP::Extension::PassPersist::run.
  • t/50-walk.t was skipped because IPC::Run was unavailable; that skip is unrelated to the failing assertions.

The PerlOnJava reproduction was run at checkout 4aca25e9fc5ebe26fb0081173a0cc9e3339c9c60 on macOS 26.7.1 with Temurin OpenJDK 24.0.2. The archived system-Perl oracle used Perl 5.42.2. The target distribution contains no XS/C source; XS notices in the CPAN log concern dependencies and are not the failing code path.

Acceptance

  • The upstream distribution suite passes under both PerlOnJava backends with the same CPAN dependency overlay.
  • The system Perl result remains passing.
  • Add a project-owned regression test for the missing Sys::Syslog import behavior.
主要言語
Perl
スター
67
フォーク
8
平均マージ
6時間 14分
マージ済み PR(30日)
143

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

fglock/PerlOnJava のほかの issue

fglock/PerlOnJava の issue をすべて見る

似ている issue

Perl の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。