Repository navigation
Description
Summary
CPAN::Dependency v0.16 times out under PerlOnJava because its bundled
CPANPLUS backend fails while extracting CPAN author metadata. The same
upstream distribution passes completely under system Perl.
Reproduction
CPAN tester run: 20260910-101908-8428
Distribution: CPAN-Dependency-0.16
The archived PerlOnJava run reported:
TIMEOUT (soft limit 120s exceeded; no output for 60s)
The target test starts successfully and reaches t/01api.t, then stops
making progress. A bounded rerun of the complete target suite reaches the
same failure path and finishes with failures in:
t/02internals1.tt/02internals5.t
The first failing operation is CPANPLUS metadata extraction, before
CPAN::Dependency can process the requested modules:
Could not open '01mailrc.txt' for writing: Input/output error
Extract failed due to errors
[ERROR] 'LWP::UserAgent' does not contain an author part
[ERROR] Cannot find 'LWP::UserAgent' in the module tree
Can't call method "package_name" on an undefined value
The affected tests call CPAN::Dependency->new with module or skip lists.
The undefined value is returned by CPANPLUS after its author-tree extraction
failed; it is not the primary failure.
System Perl comparison
The archived system-Perl oracle passes the complete upstream suite:
All tests successful.
Files=15, Tests=128
Result: PASS
This establishes that the distribution and its tests are valid in the same
general environment and that the PerlOnJava result is actionable.
Expected behavior
CPANPLUS should be able to extract its CPAN author metadata and resolve module
names without an I/O error. CPAN::Dependency->new, process, and skip
should then complete as they do under system Perl.
Suspected ownership
The likely ownership is PerlOnJava's file/archive extraction or runtime file
I/O integration used by CPANPLUS. The CPAN::Dependency failure at
package_name is a secondary consequence of CPANPLUS returning no module
object after the extraction failure.
Please investigate the 01mailrc.txt write/extraction path and add focused
regression coverage for the underlying PerlOnJava behavior. The CPAN tester
run also demonstrates the no-output timeout symptom, so the fix should ensure
the failure is reported promptly rather than appearing as a hang.
Activity
fglock commentedon Oct 14, 2026
Update from the investigation: rerunning with extended access removed the reported
Could not open '01mailrc.txt' for writingerror, so that specific failure came from the restricted CPANPLUS home in the original test environment. The run still stalled during CPANPLUS author metadata resolution. Profiling showed repeated reachability/root walks, which overlaps the active work in #1642. I am deferring a code change until #1642 lands; if the stall remains afterward, I will open a focused follow-up and attach a fresh reproduction.Related fix PR: #1799 (covers #1788 and #1338; #1337 remains open).
fglock commentedon Nov 4, 2026
State: blocked
Agent/session: codex-2026-11-04-io-regressions
Scope: #1337; refresh CPANPLUS metadata I/O and dependency resolution after #1642.
Work: fix/network-filehandle-metadata-io, commit c0a08a4b1 on 51e09aa; no PR yet.
Checkpoint: 2026-11-04; extended access removes the metadata temp-file error, but CPAN::Dependency 0.16 still stalls in t/02internals1.t.
Evidence: outer timeout 1200 exited 124 after the test's own 900-second timeout. JFR captured 4,632 samples; 3,268 include ReachabilityWalker and 2,250 top-frame samples are ExternalRootSnapshot.addNonLexical. Durable issue update links #1649 and draft PR #1938: #1337 (comment).
Blocked by: #1649 active ownership/reachability migration; leaving the ReachabilityWalker change open there per user direction.
Next: rerun CPAN::Dependency after #1649 integrates.
fglock commentedon Nov 4, 2026
Rerun update from current master
51e09aaa2: with extended access, CPANPLUS can create~/.cpanplus/01mailrc.txt, so the original I/O error was sandbox-specific. The CPAN::Dependency 0.16 suite then stalls int/02internals1.tduring backend construction. A 60-second JFR from that test recorded 4,632 execution samples; 3,268 includedReachabilityWalker, with repeatedExternalRootSnapshot.addNonLexicaltraversal.This remaining performance/lifecycle path is being addressed by the active ownership migration in #1649 and draft PR #1938. I am leaving this issue open for a CPAN::Dependency rerun after that work lands, rather than duplicating the reachability change here.
fglock commentedon Nov 12, 2026
Dependency update (2026-11-12)
Extended access removed the original
01mailrc.txtwrite error; the remaining CPAN::Dependency 0.16 stall was profiled in reachability/ownership traversal. Earlier notes name #1649, which is now closed. The active successor work is #2043, with its current implementation tracked in draft PR #1938.Please rerun the CPANPLUS metadata case after #2043 delivers or hands off the relevant ownership behavior. This updates the dependency reference and does not claim the issue is fixed.