Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 01 Oct 2017 20:59:45 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 222728] segfault during vagrant provision
Message-ID:  <bug-222728-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222728

            Bug ID: 222728
           Summary: segfault during vagrant provision
           Product: Base System
           Version: 10.3-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: andrew.pennebaker@gmail.com

I'm trying to run a shell script to install docker in FreeBSD on Vagrant, b=
ut
when I instruct Vagrant to run the script, it reports an ssh command failur=
e.
With debugging enabled, Vagrant shows this strange segfault near a chmod
section.

Trace:

$ VAGRANT_LOG=3Ddebug vagrant provision
...
DEBUG ssh: =3D=3D Net-SSH connection debug-level log END =3D=3D
 INFO ssh: Execute: chown -R vagrant /tmp/vagrant-shell (sudo=3Dtrue)
DEBUG ssh: stderr: Segmentation fault

DEBUG ssh: Exit status: 139
DEBUG ssh: Uploading:
/var/folders/53/300vy1ys7tv8h8fr_z3tm8gr0000gn/T/vagrant-shell20171001-3401=
-19khci5.sh
to /tmp/vagrant-shell
DEBUG ssh: Re-using SSH connection.
 INFO interface: detail: Running:
/var/folders/53/300vy1ys7tv8h8fr_z3tm8gr0000gn/T/vagrant-shell20171001-3401=
-19khci5.sh
 INFO interface: detail:     default: Running:
/var/folders/53/300vy1ys7tv8h8fr_z3tm8gr0000gn/T/vagrant-shell20171001-3401=
-19khci5.sh
    default: Running:
/var/folders/53/300vy1ys7tv8h8fr_z3tm8gr0000gn/T/vagrant-shell20171001-3401=
-19khci5.sh
DEBUG ssh: Re-using SSH connection.
 INFO ssh: Execute: chmod +x '/tmp/vagrant-shell' && /tmp/vagrant-shell
(sudo=3Dtrue)
DEBUG ssh: stderr: Segmentation fault

DEBUG ssh: Exit status: 139
ERROR warden: Error occurred: The SSH command responded with a non-zero exit
status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.

Vagrantfile:

Vagrant.configure("2") do |config|
  config.vm.box =3D "freebsd/FreeBSD-10.3-STABLE"

  config.vm.guest =3D :freebsd
  config.vm.synced_folder ".", "/vagrant", id: "vagrant-root", disabled: tr=
ue
  config.ssh.shell =3D "sh"
  config.vm.base_mac =3D "080027D14C66"

  config.vm.provider :virtualbox do |vb|
    vb.customize ["modifyvm", :id, "--memory", "1024"]
    vb.customize ["modifyvm", :id, "--cpus", "1"]
    vb.customize ["modifyvm", :id, "--hwvirtex", "on"]
    vb.customize ["modifyvm", :id, "--audio", "none"]
    vb.customize ["modifyvm", :id, "--nictype1", "virtio"]
    vb.customize ["modifyvm", :id, "--nictype2", "virtio"]
  end

  config.vm.provision "shell", path: "bootstrap.sh"
end

bootstrap.sh:

#!/bin/sh

echo "Bootstrapping..."

# sudo kldload /boot/kernel/zfs.ko

# sudo pkg install -y docker-freebsd ca_root_nss

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-222728-8>