Bug 225412 - pkg-static: bus error
Summary: pkg-static: bus error
Status: New
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
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-23 22:36 UTC by loic.blot
Modified: 2018-01-27 14:36 UTC (History)
2 users (show)

See Also:


Attachments

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
Hello
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
  Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
  Features2=0x7ffafbff<SSE3,PCLMULQDQ,DTES64,MON,DS_CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,TSCDLT,AESNI,XSAVE,OSXSAVE,AVX,F16C,RDRAND>
  AMD Features=0x2c100800<SYSCALL,NX,Page1GB,RDTSCP,LM>
  AMD Features2=0x121<LAHF,ABM,Prefetch>
  Structured Extended Features=0x29c6fbf<FSGSBASE,TSCADJ,SGX,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,NFPUSG,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PROCTRACE>
  XSAVE Features=0xf<XSAVEOPT,XSAVEC,XINUSE,XSAVES>
  VT-x: PAT,HLT,MTF,PAUSE,EPT,UG,VPID
  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