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.
What architecture is your computer? x86 or something else?
(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
Structured Extended Features=0x29c6fbf<FSGSBASE,TSCADJ,SGX,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,NFPUSG,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PROCTRACE>
TSC: P-state invariant, performance statistics
Can you share pkg-static binary and core file? Thanks.
(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