Bug 225412 - pkg-static: bus error
Summary: pkg-static: bus error
Status: Closed Overcome By Events
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 11.1-RELEASE
Hardware: Any Any
: --- Affects Many People
Assignee: Baptiste Daroussin
Depends on:
Reported: 2018-01-23 22:36 UTC by loic.blot
Modified: 2020-03-24 16:46 UTC (History)
2 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description loic.blot 2018-01-23 22:36:58 UTC
i'm finishing mattermost port on FreeBSD and i was unable to package mattermost-webapp due to a strange bus-error on pkg-static on my FreeBSD 11.1.

I'm running it through poudriere.

Here is the error reported by dmesg

pid 51561 (pkg-static), uid 65534: exited on signal 10

Here is the poudriere log:

===>  Building package for mattermost-webapp-4.6.0
Child process pid=51561 terminated abnormally: Bus error

By re-testing my port using poudriere testport i found some incorrect entries, my pkg-plist contains some package folders.

Removing them from the plist permits to the bus error to disappear, but i don't think pkg should be lazy and verify if a file is a directory before trying to package it and crash with a bus error.
Comment 1 Conrad Meyer freebsd_committer 2018-01-23 22:51:33 UTC
What architecture is your computer?  x86 or something else?
Comment 2 loic.blot 2018-01-23 23:29:44 UTC
(In reply to Conrad Meyer from comment #1)

Hello Conrad, it's amd64, here is the CPU

CPU: Intel(R) Xeon(R) CPU E3-1240 v6 @ 3.70GHz (3696.19-MHz K8-class CPU)
  Origin="GenuineIntel"  Id=0x906e9  Family=0x6  Model=0x9e  Stepping=9
  AMD Features=0x2c100800<SYSCALL,NX,Page1GB,RDTSCP,LM>
  AMD Features2=0x121<LAHF,ABM,Prefetch>
  TSC: P-state invariant, performance statistics
Comment 3 Conrad Meyer freebsd_committer 2018-01-23 23:41:23 UTC
Can you share pkg-static binary and core file?  Thanks.
Comment 4 loic.blot 2018-01-24 07:32:58 UTC
(In reply to Conrad Meyer from comment #3)
You will find pkg-static here: https://ftp.unix-experience.fr/pkg-static

for the core file i didn't found it on my server, i think it was removed by poudriere