omrikiei / ktunnel

A cli that exposes your local resources to kubernetes
GNU General Public License v3.0
925 stars 71 forks source link

ktunnel v1.3.9 killed on Mac OS Big Sur #55

Closed amenuor closed 3 years ago

amenuor commented 3 years ago

Description

On Mac OS Big Sur (Version 11.3.1) running ktunnel 1.3.9 results in process being terminated with SIGKILL

Expected Behavior

We would expect ktunnel to work normally

Current Behavior

Even a simple invocation, just invoking the command ktunnel without any argument, results in the process being killed

$ ktunnel
[1]    35494 killed     ktunnel

Steps to Reproduce

  1. brew tap omrikiei/ktunnel && brew install ktunnel or brew upgrade ktunnel if already installed
  2. run ktunnel

Work around

Build 1.3.8 from source:

brew uninstall ktunnel
git clone https://github.com/omrikiei/ktunnel.git
git checkout tags/v1.3.8
CGO_ENABLED=0 go build -l$dflags="-s -w"
./ktunnel
omrikiei commented 3 years ago

Hi @amenuor, I'm trying to get a hold of a big sur machine to check it, in the meanwhile - would you mind sending me the following trace on version 1.3.9? does it also happen when building 1.3.9 from source? sudo dtruss ktunnel

amenuor commented 3 years ago

Hi @omrikiei, sure, output from the trace:

dtrace: system integrity protection is on, some features will not be available

dtrace: failed to execute ktunnel: Cannot allocate memory

Now the interesting bit: when building both tags/v1.3.9 and HEAD the problem is not there, everything runs smoothly. The issue happens when installing from brew

omrikiei commented 3 years ago

thank you @amenuor , I think UPX was causing it so removed it from the actions pipeline, could you check with v1.4.0?

amenuor commented 3 years ago

Hello @omrikiei, 1.4.0 works like a charm. Great work!