Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"bus error" occurs when plist contains @sample keyword with no arguments #612

Closed
metalefty opened this issue May 6, 2018 · 3 comments
Closed

Comments

@metalefty
Copy link
Member

Hi, I found invalid plist leads poudiere testport to Child process pid=29775 terminated abnormally: Bus error.

Step to reproduce

  1. Choose any port, for example, x11/xterm
  2. Add @sample keyword to PLIST_FILES or pkg-plist with no arguments
  3. Run poudriere build test
  4. It should fail but no helpful messages shown
(snip)
=>> Checking for staging violations... done
=======================<phase: package        >============================                                            
===>  Building package for xterm-333
Child process pid=29775 terminated abnormally: Bus error
*** Error code 1

Stop.
make: stopped in /usr/ports/x11/xterm
build of x11/xterm | xterm-333 ended at Sun May  6 23:31:55 JST 2018                                                   
build time: 00:00:18
!!! build failure encountered !!!
[00:00:23] Error: Build failed in phase: package
[00:00:23] Cleaning up
[00:00:24] Unmounting file systems

In this case, of course make package should fail because @sample keyword requires an argument.

====> Compressing man pages (compress-man)
====> Running Q/A tests (stage-qa)
===>  Building package for xterm-333
pkg-static: Plist error, directory listed as a file: 

Expected behaviour

poudriere should fail with helpful text, shouldn't terminated abnormally

(snip)
=>> Checking for staging violations... done
=======================<phase: package        >============================                                            
===>  Building package for xterm-333
MESSAGES LIKE "Plist error, directory listed as a file: " SHOULD BE SHOWN HERE
*** Error code 1

Stop.
make: stopped in /usr/ports/x11/xterm
build of x11/xterm | xterm-333 ended at Sun May  6 23:31:55 JST 2018                                                   
build time: 00:00:18
!!! build failure encountered !!!
@metalefty
Copy link
Member Author

Just in case, not only PLIST_FILES, same bus error occurs if pkg-plist contains @sample with no arguments.

@bapt
Copy link
Member

bapt commented May 6, 2018

This is not a poudriere bug, this is a pkg bug can you report the bug to pkg, please?

@metalefty
Copy link
Member Author

Okay.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants