PerlAlien / Alien-Build

Build external dependencies for use in CPAN
16 stars 25 forks source link

Perl segfaults while running t/alien_build_plugin_pkgconfig_libpkgconf.t #413

Closed felixonmars closed 2 months ago

felixonmars commented 2 months ago

I am trying to package Alien-Build 2.83 for Arch Linux and got this weird test failure:

t/alien_build_plugin_pkgconfig_libpkgconf.t        (Wstat: 139 (Signal: SEGV, dumped core) Tests: 4 Failed: 0)                                                                                                                                                                             
  Non-zero wait status: 139                                                                                                                                                                                                                                                                
  Parse errors: No plan found in TAP output                                                                                                                                                                                                                                                
Files=87, Tests=455, 17 wallclock secs ( 0.24 usr  0.07 sys + 13.20 cusr  3.83 csys = 17.34 CPU)                                                                                                                                                                                           
Result: FAIL                                                                                                                                                                                                                                                                               
Failed 1/87 test programs. 0/455 subtests failed.

So apparently the tests are passing but one of the process segfaults. The backtrace:

image

I don't think it's directly caused by Alien-Build itself since the same error now occurs for 2.80 as well, but a lot have changed since when I successfully built 2.80 before, like for example, pkgconf was bumped to 2.x from 1.8 series.

I'll try to dig further and in the meantime, please let me know if you have any clue :)

felixonmars commented 2 months ago

Turns out my wild guess was correct. Downgrading pkgconf to 1.8.1 and PkgConfig-LibPkgConf to remove the patch at https://github.com/PerlAlien/PkgConfig-LibPkgConf/pull/17 makes the problem go away.

I'll try to reach out to that PR as well.

felixonmars commented 2 months ago

Oops. It turns out to be newly introduced by pkgconf 2.1+ which broke PkgConfig-LibPkgConf's tests as well. Downgrading pkgconf to 2.0.3 makes both problems go away.

I am going to close the issue here because I believe it's more likely a problem for PkgConfig-LibPkgConf. Sorry for the noise!