Skip to content

Unable to start oz-daemon: panic: reflect: call of reflect.Value.Int on zero Value #135

Description

@onny

Hey,
I'm trying to port oz to ArchLinux and wrote this PKGBUILD script https://aur.archlinux.org/packages/subgraph-oz/
If I run oz-daemon I get following error:

2018/03/08 01:26:25 Oz Global Config: &{ProfileDir:/var/lib/oz/cells.d ShellPath:/bin/bash PrefixPath:/usr EtcPrefix:/etc/oz SandboxPath:/srv/oz OpenVPNRunPath:/var/run/openvpn OpenVPNConfDir:/var/lib/oz/openvpn OpenVPNGroup:oz-openvpn RouteTableBase:8000 DivertSuffix: DivertPath:true NMIgnoreFile:/etc/NetworkManager/conf.d/oz.conf UseFullDev:false AllowRootShell:false LogXpra:true EnableEphemerals:false EnvironmentVars:[USER USERNAME LOGNAME LANG LANGUAGE _ TZ=UTC XDG_SESSION_TYPE XDG_RUNTIME_DIR XDG_DATA_DIRS XDG_SEAT XDG_SESSION_TYPE XDG_SESSION_ID GNOME_DESKTOP_SESSION_ID=this-is-deprecated] DefaultGroups:[audio video] EtcIncludes:[/etc/alternatives/ /etc/ssl/certs/ /etc/console-setup/ /etc/dbus-1/ /etc/default/locale /etc/fonts/ /etc/gnome/defaults.list /etc/group /etc/gtk-2.0/ /etc/gtk-3.0/ /etc/host.conf /etc/inputrc /etc/locale.alias /etc/localtime /etc/magic /etc/magic.mime /etc/mailcap /etc/mailcap.order /etc/mime.types /etc/passwd /etc/protocols /etc/pulse/ /etc/resolvconf/run/resolv.conf /etc/services /etc/shells /etc/terminfo/ /etc/timezone /etc/vconsole.conf /etc/xdg/-mimeapps.list /etc/xdg/user-dirs.conf /etc/xdg/user-dirs.defaults /etc/xpra/ /etc/X11/ /etc/oz]}
2018/03/08 01:26:25 22 profiles loaded
panic: reflect: call of reflect.Value.Int on zero Value

goroutine 1 [running]:
reflect.Value.Int(0x0, 0x0, 0x0, 0x2)
	/usr/lib/go/src/reflect/value.go:931 +0x127
github.com/subgraph/oz/ipc.reflectFD(0x7bbbc0, 0xc42016a810, 0x20)
	/home/onny/.cache/pacaur/subgraph-oz/src/gopath/src/github.com/subgraph/oz/ipc/util.go:15 +0x96
github.com/subgraph/oz/ipc.setPassCred(0x7bbbc0, 0xc42016a810, 0xc42017b240, 0xc42016a810)
	/home/onny/.cache/pacaur/subgraph-oz/src/gopath/src/github.com/subgraph/oz/ipc/util.go:9 +0x35
github.com/subgraph/oz/ipc.NewServer(0x7e2892, 0xb, 0xc42008b710, 0xc42016a000, 0xc4201f9e68, 0x10, 0x10, 0x789b60, 0x828d01, 0xc42017e9e0)
	/home/onny/.cache/pacaur/subgraph-oz/src/gopath/src/github.com/subgraph/oz/ipc/ipc.go:54 +0x121
github.com/subgraph/oz/oz-daemon.runServer(0xc42016a000, 0xc4201f9e68, 0x10, 0x10, 0x1, 0x1)
	/home/onny/.cache/pacaur/subgraph-oz/src/gopath/src/github.com/subgraph/oz/oz-daemon/daemon.go:257 +0x71
github.com/subgraph/oz/oz-daemon.Main()
	/home/onny/.cache/pacaur/subgraph-oz/src/gopath/src/github.com/subgraph/oz/oz-daemon/daemon.go:52 +0x669
main.main()
	/home/onny/.cache/pacaur/subgraph-oz/src/gopath/src/github.com/subgraph/oz/cmd/oz-daemon/main.go:8 +0x20

Of course my package for Archlinux is not complete yet and is missing some dependencies. But looking at this error I'm not sure how to proceed ...

Best regards,
Jonas

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions