mafintosh/fuse-bindings

Segmentation fault on unmount

julien-f opened this issue · 1 comments

var fuse = require('fuse-bindings')

var dir = process.argv[2]

fuse.mount(dir, {}, error => {
  if (error) {
    return console.error(error)
  }
  console.log('mounted')

  // unmount after 1 second
  setTimeout(() => {
    fuse.unmount(dir, error => {
      if (error) {
        return console.error(error)
      }
      console.log('unmounted')
    })
  }, 1e3)
})
> node index.js foo/mounted
fish: 'node index.js foo/' terminated by signal SIGSEGV (Address boundary error)

FYI, my environment is Debian Stretch with:

> npm version
{ npm: '4.0.3',
  ares: '1.10.1-DEV',
  http_parser: '2.7.0',
  icu: '57.1',
  modules: '48',
  node: '6.9.1',
  openssl: '1.0.2j',
  uv: '1.9.1',
  v8: '5.1.281.84',
  zlib: '1.2.8' }

It seems this does not happen when run as root.