snap calling other snap fails with userlookup

Bug #1844759 reported by Wouter van Bommel
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd
Triaged
Medium
Unassigned

Bug Description

Xenial, running snapd 2.40

We have a snap installed in develop mode that call's juju, this call failes with the following errorstack:
     83559: .2 83559: s.so.2panic: user: lookup userid 1000: invalid argument

goroutine 1 [running]:
github.com/snapcore/snapd/client.storeAuthDataFilename(0x0, 0x0, 0x55c181ec6fbe, 0x55c18283fa00)
        /build/snapd-mCqUEj/snapd-2.41/_build/src/github.com/snapcore/snapd/client/login.go:99 +0x11a
github.com/snapcore/snapd/client.readAuthData(0x0, 0x0, 0x0)
        /build/snapd-mCqUEj/snapd-2.41/_build/src/github.com/snapcore/snapd/client/login.go:135 +0x3d
github.com/snapcore/snapd/client.(*Client).setAuthorization(0xc42013a700, 0xc420158900, 0xc42026f8d8, 0xc4200ba8a0)
        /build/snapd-mCqUEj/snapd-2.41/_build/src/github.com/snapcore/snapd/client/client.go:153 +0x36
github.com/snapcore/snapd/client.(*Client).raw(0xc42013a700, 0x55c18241eeb9, 0x3, 0x55c18242913a, 0xf, 0x0, 0x0, 0x0, 0x0, 0x70, ...)
        /build/snapd-mCqUEj/snapd-2.41/_build/src/github.com/snapcore/snapd/client/client.go:214 +0x391
github.com/snapcore/snapd/client.(*Client).do(0xc42013a700, 0x55c18241eeb9, 0x3, 0x55c18242913a, 0xf, 0x0, 0x0, 0x0, 0x0, 0x55c1827dcba0, ...)
        /build/snapd-mCqUEj/snapd-2.41/_build/src/github.com/snapcore/snapd/client/client.go:271 +0x11d
github.com/snapcore/snapd/client.(*Client).doSync(0xc42013a700, 0x55c18241eeb9, 0x3, 0x55c18242913a, 0xf, 0x0, 0x0, 0x0, 0x0, 0x55c1827979e0, ...)
        /build/snapd-mCqUEj/snapd-2.41/_build/src/github.com/snapcore/snapd/client/client.go:315 +0xd8
github.com/snapcore/snapd/client.(*Client).SysInfo(0xc42013a700, 0x1c, 0x0, 0x0)
        /build/snapd-mCqUEj/snapd-2.41/_build/src/github.com/snapcore/snapd/client/client.go:570 +0xa4
main.maybeWaitForSecurityProfileRegeneration(0xc42013a700, 0x0, 0xc4200d6500)
        /build/snapd-mCqUEj/snapd-2.41/_build/src/github.com/snapcore/snapd/cmd/snap/cmd_run.go:149 +0xff
main.(*cmdRun).Execute(0xc42026ff08, 0xc4200c6160, 0x2, 0x3, 0x0, 0x0)
main.(*cmdRun).Execute(0xc420243f08, 0xc42001e190, 0x2, 0x3, 0x0, 0x0)
        /build/snapd-mCqUEj/snapd-2.41/_build/src/github.com/snapcore/snapd/cmd/snap/cmd_run.go:185 +0x175
main.main()
        /build/snapd-mCqUEj/snapd-2.41/_build/src/github.com/snapcore/snapd/cmd/snap/main.go:434 +0x527
Exception calling juju status command. Command '['/snap/bin/juju', 'status', '--format=yaml']' returned non-zero exit status 2

(The last line if from python)

Running juju by hand works okay, validated that the same executable is called.

Tags: bootstack
Revision history for this message
Wouter van Bommel (woutervb) wrote :

#field-medium

tags: added: bootstack
tags: added: field-medium
tags: removed: field-medium
Zygmunt Krynicki (zyga)
Changed in snapd:
status: New → Triaged
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.