/srv/irclogs.ubuntu.com/2018/10/25/#snappy.txt

mupPR snapcraft#2369 closed: Hide progress bar for dumb terminals <Created by eberkund> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/2369>00:03
koala_mancjwatson: I've looked into alternative routes. The stack build fails because it's linked against an old version of Cabal, and the docker build fails because multistage builds weren't introduced before 17.05 (xenial has 17.03)01:21
mupPR snapd#6038 closed: release: 2.36 <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/6038>04:23
mborzeckimorning05:43
mborzeckihow can i put an apparmor profile of a snap into complain mode?05:47
=== chihchun_afk is now known as chihchun
dot-tobiasgood morning everyone06:25
mborzeckidot-tobias: morning06:27
zygaGood morning06:39
zygamborzecki: you can use apparmor tools06:40
zygaBut I never remember which06:40
zygaJust edit the profile06:40
mborzeckizyga: something i wanted to avoid :)06:40
zygaChange the part that reads (attach_disconnected,....)06:40
zygaAnd insert “complain” there AFAIR06:41
zygaThen parse and load into the kernel06:41
mborzeckizyga: tried aa-complain, but expects a path to the binary, which is sligtly funny as you can have a profile just with a label like we do for snaps06:42
=== pstolowski|afk is now known as pstolowski
pstolowskiheyas07:04
zygaHey07:05
mborzeckilooks like this test is slightly incorrect: https://github.com/snapcore/snapd/blob/master/cmd/snapd/main_test.go#L57-L94 the daemon is started, but we never wait for it to finish07:06
mborzeckiadded some synchronization and now it's clear that Run() does not exit with nil, but raises value *errors.errorString = &errors.errorString{s:"cannot gracefully finish, still active connections on /tmp/check-8792093359864697921/0/run/snapd.socket after 5s"} ("cannot gracefully finish, still active connections on /tmp/check-8792093359864697921/0/run/snapd.socket after 5s")07:08
mborzeckithat's probably because http connections from the client are kept alive07:09
mborzeckithere are 2 intersting failures in unit tests i've seen today, first one https://paste.ubuntu.com/p/kTHywvD39V/ i can reproduce it locally if i change the sleep to something really small, hence i started adding extra synchronization around snapd.Run()07:31
mborzeckiand the 2nd one: https://paste.ubuntu.com/p/SwXy77XJ6H/ where userd got SIGQUIT ?07:32
mborzeckithis one is appearing quite often in 2.36 branch07:32
sil2100eh, I fucked up07:39
sil2100Can anyone check if the right pc i386 and amd64 gadget snaps are in stable and candidate now?07:39
sil2100I never use the snapcraft dashboard UI for promoting snaps ever again...07:40
zygamborzecki: thank you07:46
zygasil2100: define correct07:46
sil2100The last one that was supposed to be there, but I found it in the stable images07:48
sil2100Damn I'm pissed off07:48
zygaI'm still sleepy, not sure how to check07:49
zygaI can tell you the revisions I see07:49
zygabut not sure if that helps07:49
sil2100Wanted to promote 18 gadget snaps, thought the dashboard UI is smart and will promote to the right 18/stable etc.07:49
zygasil2100: 18/stable is empty07:50
zygaso perhaps not correct07:50
zygathere are some revisions in 18/beta and edve07:51
sil2100zyga: I was talking about 1607:52
sil2100I now just promoted the 18 ones07:52
zyga  stable:       16.04-0.8 (9)  856kB -07:53
zyga  candidate:    16.04-0.8 (9)  856kB -07:53
zyga  beta:         16.04-0.9 (24) 872kB -07:53
zyga  edge:         16.04-0.9 (24) 872kB -07:53
sil2100zyga: want to make sure the 16 ones are as correct as they were07:53
zygait looks rather unchanged07:53
sil2100phew07:53
zygabut I don't know what they were before07:53
zygaso hard to say07:53
mborzeckiheh, looking into problem 1, we're doing a graceful shutdown and daemon is stuck calling net.Conn.Close()08:19
zygapstolowski: could you please look at 6010, landing this would unblock me08:22
pstolowskizyga: sure08:22
mborzeckithis doesn't make any sense, it's like close(fd) which should not block08:22
zygammm08:22
zygamborzecki: is it really just that?08:23
mborzeckizyga: https://golang.org/src/net/net.go#L19708:23
zygamborzecki: sorry, I don't feel very well today and I'm slow at thinking, can you walk me through the problem statement08:23
mborzeckizyga: take a look here: https://github.com/snapcore/snapd/blob/master/cmd/snapd/main_test.go#L57-L94, there's a gorouting which runs `err := snapd.Run()`08:24
mborzeckizyga: but in the test we do not wait for the goroutine to finish08:24
mborzeckizyga: now if we wait, it's either stuck or exits with error `cannot gracefully finish, still active connections on /tmp/check-8792093359864697921/0/run/snapd.socket after 5s`08:25
zygaaha08:25
zygaand where is the graceful shutdown code?08:26
mborzeckizyga: that's because the test is poking the API via http, but net/http does not close the connection right away after the request is finished, so it's still 'seen' at the server side and we try to go through graceful shutdown calling Close() nicely on each connection08:26
mborzeckizyga: it's here https://github.com/snapcore/snapd/blob/master/daemon/daemon.go#L462-L49008:27
mborzeckizyga: specifically i see it stuck on https://github.com/snapcore/snapd/blob/master/daemon/daemon.go#L471 now08:28
=== chihchun is now known as chihchun_afk
zygamborzecki: and the net.Conn that we re interacting with08:38
zygawhat is it in reality?08:38
zygathat is, what Close are we really calling08:38
mborzeckizyga: this one https://golang.org/src/net/net.go#L19708:39
zygaand netFD?08:39
mborzeckiheh added DisableKeepAlives to the transport config and now it's closing right away08:40
mborzeckizyga: https://golang.org/src/net/fd_unix.go#L182 and then it goes into some internal/poll https://golang.org/src/internal/poll/fd_unix.go#L86 there's a comment that Close() may block08:45
dot-tobiasgreyback: Regarding i3 WM in chromium-mir-kiosk not picking up rotation: I dug into the configuration and it seems that i3 does indeed not pick up the mir-kiosk vertical rotation. However, when I enable kiosk mode in the snap, chromium is forced to fullscreen, and resizing commands are discarded by i3. Do you have a hint on where I can disable the fullscreen? Maybe in xwayland-kiosk-helper?08:46
=== chihchun_afk is now known as chihchun
greybackdot-tobias: the helper auto-generates a config file to make a surface fullscreen, see https://github.com/MirServer/xwayland-kiosk-helper/blob/master/xwayland-preload/xwayland-kiosk-launch#L12108:48
greybackdot-tobias: however chromium-mir-kiosk provides it's own i3 config file08:49
greybackI don't think enabling/disabling kiosk mode impacts the use of that config file at all08:49
zygamborzecki: a bit of internals for the morning08:50
zygaare we holding it wrong?08:50
dot-tobiasgreyback: Yeah, just found that variable 😊 I'm uncertain how the two i3 configs interact, but what I can observe is that commands in the chromium-mir-kiosk i3 config are ignored when kiosk mode is enabled for chromium-mir-kiosk. which “just” loads the kiosk Chrome app AFAIR08:51
mborzeckizyga: i think it's outside of our control, let me check the unixDialer we use08:51
greybackdot-tobias: that's not what I intended anyway. The goal was: if snap provides its own i3 config, use that. If not, fallback to an auto-generated one08:51
zygamborzecki: given that we don't do real http we could disable keepalive08:57
zygamborzecki: and perhaps leave a clear note that dragons lurk beyond08:57
zygapstolowski: one for you https://forum.snapcraft.io/t/hook-run-script-when-an-interface-is-connected/815509:03
pstolowskizyga: thanks, i'll answer09:05
pstolowskizyga: i've just hit the issue popey reported recently, with gnome-calculator. i installed its snap yesterday, it's connected to gnome platform snap yet it doesn't see it. i'm on 2.3609:11
pstolowskizyga: my laptop has been running for only a few days (since monday)09:13
zygacan you nester09:13
zygansenter09:13
zygaand then see if that place $SNAP/gnome-platform looks sane please09:13
popeyyay!09:13
pstolowskizyga: will do09:14
zygapstolowski: any files inside?09:25
zygaand any changes recently?09:25
pstolowskizyga: sorry, tryng to finish the review of your PR, will check that issue next. the only changes are09:26
pstolowski195  Done    yesterday at 17:39 CEST  yesterday at 17:39 CEST  Auto-refresh snap "lxd"09:26
pstolowski196  Done    today at 09:04 CEST      today at 09:05 CEST      Auto-refresh snaps "core", "lxd"09:26
zygathanks09:26
pstolowskiso, unrelated09:26
zygaaha, core refreshed09:26
zygacore change is related (perhaps)09:26
* zyga tries locally09:26
pstolowskihmm09:26
zygah09:28
zygaHA09:28
zygareproduced :)09:28
zygapopey: I got this now09:28
zygaI switched core from edge to beta09:29
* zyga investigates09:29
popey\o/09:29
zygaand I got the sudo nsenter + ctrl-d bug :/09:30
popeyalso yay :)09:34
mupPR snapd#6041 opened: client, cmd/daemon: allow disabling keepalive, improve degraded mode unit tests <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/6041>09:35
pstolowskizyga: a few comments09:52
pstolowskizyga: wow, you reproduced, yay x209:53
pstolowskinonetheless, looking into my namespace09:53
zygapstolowski: you can discard the namespace, I will fix that issue10:06
zygathank you for the review, looking at the response10:07
mborzeckican someone take a look at this: https://github.com/snapcore/snapd/blob/master/overlord/standby/standby.go#L80-L105 if i'm reading this right, when Stop() is called at the bad moment and m.stopCh is nil, the goroutine will go into sleep waiting for timeout even though it's supposed to exit10:08
pstolowskizyga: great you found the problem! thanks10:11
pstolowskidegville: hey, https://forum.snapcraft.io/t/hook-run-script-when-an-interface-is-connected/8155/3 reminded me of the missing doc for interface hooks10:18
pstolowskidegville: shall i describe all that in an email and send to you?10:19
mupPR snapd#6042 opened: overlord/standby: fix a race between standby goroutine and stop <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/6042>10:21
degvillepstolowski: hello - yes, that would be great - thanks!10:21
pstolowskidegville: ok, will do10:24
* zyga breaks10:32
zygasorry guys, I feel sick10:32
Chipacawhy am i getting shellcheck errors for something that's already on master :-(10:42
Chipacaand why is shellcheck now saying "unable to decommit memory"10:44
mborzeckiChipaca: whcih file?10:44
mborzeckiChipaca: btw. 6042 might be interesting for you10:45
zygaChipaca: uname?10:46
Chipacaoh. new shellcheck.10:46
Chipacamborzecki: https://pastebin.ubuntu.com/p/KSJXRVXFVz/10:47
Chipacazyga: GO AWAY YOU'RE SICK FFS10:47
Chipacazyga: we'll get IRC cooties10:47
Chipacamborzecki: fixing10:48
mborzeckiChipaca: which PR is that? shellcheck version should be printed in the log10:48
Chipacamborzecki: this is the spread-run shellcheck, so it's the snap10:49
Chipacamborzecki: the snap was created 2018-10-25T05:05:12.188830+00:0010:50
ChipacaI think that means koala_man found out that haskell-stack does not have the "cabal does not do good http" bug10:51
mborzeckiheh10:51
Chipacamborzecki: anyway, to answer your question, https://api.travis-ci.org/v3/job/445913480/log.txt10:51
Chipacamborzecki: and AFAIK the spread run does not print the shellcheck version10:52
zygaChipaca: https://ghc.haskell.org/trac/ghc/ticket/1286510:53
mupPR snapd#6028 closed: testutil, cmd/snap: introduce and use testutil.EqualsWrapped and fly <Created by chipaca> <Merged by zyga> <https://github.com/snapcore/snapd/pull/6028>10:53
Chipaca“This is a stylistic issue that does not affect correctness. If you prefer the original expression, you can't not Ignore it with a directive or flag.”10:59
Chipaca^ shellcheck being snarky about the double-negative implied by ! -z / ! -n10:59
mupPR snapd#6043 opened: tests/main: fixes for the new shellcheck <Created by chipaca> <https://github.com/snapcore/snapd/pull/6043>11:01
Chipacamborzecki: ^11:01
mborzeckiChipaca: yeah, looks good11:03
mborzeckinice that it's picky about such small things too11:03
Chipacamborzecki: also nice that it catches [ ! -z ] and ! [ -z ] the same11:05
mborzeckiyeah, one of these days it'd be nice to look at the implementation, my money is on having those actually encoded as pattern matching directly in the code11:06
Chipacahaskell doing pattern matching? sounds about right :-)11:08
zygapstolowski: updated https://github.com/snapcore/snapd/pull/601011:09
mupPR #6010: cmd/snap-discard-ns: add support for per-user mount namespaces <Created by zyga> <https://github.com/snapcore/snapd/pull/6010>11:09
pstolowskiok11:09
pstolowskizyga: +111:16
mborzeckiany ideas about https://paste.ubuntu.com/p/SwXy77XJ6H/ ? i've looked in go and check, does not look like any of those would send SIGQUIT11:16
mborzeckithe test sends SIGUSR1 to itself, but that's handed properly already11:17
zygamborzecki: nope, nothing remotely SIGQUITS this11:21
zygamaybe it is spread itself?11:21
zygabut I don't know11:21
mborzeckizyga: grepped through spread, came up empty11:22
zygaactually, I grepped in spread as well11:22
zyga:/11:22
mborzeckipushing an update to arch pacakge in a bit11:27
cjwatsonChipaca: They installed an even more terrifying hack than that11:43
Chipacacjwatson: … emacs?11:43
cjwatsonhttps://bugs.launchpad.net/launchpad-buildd/+bug/1797809/comments/311:43
mupBug #1797809: Build fails on snapcraft.io, works locally (during `cabal update`) <launchpad-buildd:Triaged> <https://launchpad.net/bugs/1797809>11:43
Chipacahah11:44
Chipacaproxies all the way down11:44
cjwatsonI also discovered that the reason newer cabal "works" even without curl is that it now supports multiple mirrors and just falls back to the next one in the list when its connection gets terminally confused by the first one11:45
cjwatsonSo I'm trying to hack persistent connection support into launchpad-buildd's internal proxy11:46
mupPR snapd#6043 closed: tests/main: fixes for the new shellcheck <Created by chipaca> <Merged by chipaca> <https://github.com/snapcore/snapd/pull/6043>11:50
dot-tobiasgreyback: re: fullscreen chromium-mir-Kiosk in rotate => https://git.launchpad.net/~gerboland/+git/chromium-kiosk-app-snap/tree/manifest.json#n3512:00
zygamborzecki, Chipaca, pstolowski: would you mind stating your opinions on https://github.com/snapcore/snapd/pull/6010/commits/0ecf1448668b726021ff94408981599d335576d012:01
mupPR #6010: cmd/snap-discard-ns: add support for per-user mount namespaces <Created by zyga> <https://github.com/snapcore/snapd/pull/6010>12:01
dot-tobiasgreyback: I suspect this launches chromium in fullscreen, and i3 does not seem to pick up the rotation coming from mir-kiosk / xwayland. Resizing commands in i3 do not work for fullscreen windows (which is logical, but impractical for my use-case)12:02
dot-tobiasgreyback: I‘ll add this to the forum topic (http://discourse.ubuntu.com/t/snaps-to-develop-a-web-kiosk-on-ubuntu-core-using-wayland/6424?page=5) once I‘m back at work. Would be very glad if you have suggestions how I can force i3 to respect the rotated layout. Thank you for your work on all the kiosk snaps 😊12:05
greybackdot-tobias: hmm interesting, I forgot about that policy setting12:05
greybackdot-tobias: yes please do update the forum. I'll try to find time to look into the problem12:06
dot-tobiasgreyback: I’ll do that and ping you here once done. Thank you for your time in advance 😊I’ll try to find a way to hide chromium UI when not in fullscreen mode.12:08
cachiozyga, hey, I need to take my son to make an audition study12:15
cachiozyga, I'll try to be back for the stand up but not sure12:15
zygacachio: noted12:17
zygathanks, good luck :)12:17
cachiozyga, tx12:18
pstolowskizyga: will do in a moment12:22
mborzeckisnapd updated in AUR, i've also updated the wiki with some extra info12:30
mborzeckifunny cause someone else edited the wiki while i was editing it and added a note about apparmor, which was like 10-15 minutes after i pushed the change to aur12:30
ijohnsonmborzecki: so is snapd on Arch now fully confined?12:31
mborzeckiijohnson: not everything is supported yet, jdstrand left some details here: https://forum.snapcraft.io/t/arch-linux-and-apparmor/703612:32
Chipacazyga: I have close to 0 opinions on C formatting style12:35
zygaChipaca: mainly if you are -1 on moving to clang-format12:35
Chipacazyga: I am not12:35
Chipacazyga: the only C formatting style I think is bad is the one that pushes the {}s and the ;s to column 8012:36
Chipacadegville: you around?12:38
degvilleChipaca: yep12:39
Chipacadegville: could you give the long help strings in https://github.com/snapcore/snapd/blob/dfef243c027b84ae8331a36dddbf61b6bf847813/cmd/snap/cmd_snapshot.go a once over?12:39
Chipacadegville: (search for "var long")12:39
pstolowskizyga: the clang-format lgtm, nothing out of ordinary,+112:39
degvilleChipaca: will do - looking now.12:40
zygathanks!12:40
Chipacasborovkov: hi12:43
sborovkovChipaca, hello12:43
Chipacasborovkov: remind me, if I'm not being rude, what was it you worked on?12:43
sborovkovscreenly, digital signage :)12:43
Chipacasborovkov: are you, or is your team, sensitive to snapd api changes?12:44
ChipacaI think it wasn't you, fwiw12:44
sborovkovhmm, not to a big extent, We currently only use it to set config.txt options12:45
Chipacaa shame, I'm going to have to talk to field engineering to get them to talk with the team in question, more roundabout than i would've preferred12:45
sborovkovso you might be thinking about someone else12:45
Chipacasborovkov: yep yep :-)12:45
Chipacasborovkov: this is about a screenshots -> media transition12:45
Chipacahappening in the 2.36 … 2.39 timeline12:46
sborovkovdefinitely not us then :)12:46
Chipacasborovkov: thank you for confirming :-) I'll go pester field eng12:46
zygamborzecki: do you know why the set of panics we see in unit tests surfaced now?12:51
zygamborzecki: is it something that changed on our side recently?12:51
Chipacamborzecki: which panics?12:54
Chipacaum12:54
Chipacazyga: ^12:54
zygaChipaca: unit tests time out and panic12:54
zygajust look at recent test failure12:54
Chipacazyga: in cmd/snap?12:55
zygayes12:55
Chipacahmm12:55
Chipacayes I did see that, thought it was a one-off12:55
Chipacamachine taking a sleep or sth12:55
Chipacai'll dig12:55
mborzeckiChipaca: w8, whci one? there's a PR addressing one of the issues i saw12:57
Chipacamborzecki: ah! which pr is that?12:57
mborzeckiChipaca: there's one here https://github.com/snapcore/snapd/pull/604112:57
mupPR #6041: client, cmd/daemon: allow disabling keepalive, improve degraded mode unit tests <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/6041>12:57
mborzeckiChipaca: another one https://github.com/snapcore/snapd/pull/6042 this was not caught by unit tests but race detector suggested and issue and IMO there is one12:58
mupPR #6042: overlord/standby: fix a race between standby goroutine and stop <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/6042>12:58
Chipacamborzecki: the one I saw (and I thought zyga was asking about) was one where you get the test killed by go because it times out12:58
mborzeckiintersting, what PR is that?12:59
zygamborzecki: I mean your PRs are good but I wonder what happened that this started to happen12:59
Chipacazyga: do you have one of these failures handy?12:59
zygaguys, I feel sick and could need to... break, at any time12:59
zygacan one of you run the standup please12:59
zygamy update: working on user mounts but interrupted by reproducing the issue popey discovered13:00
zygafixing it with top priority13:00
zygaChipaca: let me look13:00
zygaChipaca: here is one https://api.travis-ci.org/v3/job/445642309/log.txt13:01
Chipacawhoops standup13:02
mborzeckicachio: standup13:03
zygamborzecki: he said he would probably not make it13:04
mborzeckiah ok13:04
zygasorry, I should have mentioned that above13:04
Chipacazyga: you coming?13:04
zygano, sorry13:04
Chipacaah ok13:04
Chipacathe cmd/snap unit tests really need the new WrappedEquals checkers -- otherwise you can't run them from the 'go test -c' binary unless your terminal is 80 columns (or you redirect stdin)13:15
Chipacamborzecki: do you see what i mean about StandbyOpinions not being goroutine-safe?13:16
Chipacamborzecki: OTOH, why is timerCh an attribute, instead of a variable?13:18
mborzeckiChipaca: heh, probably went through a couple of review changes13:18
mborzeckiChipaca: using tomb we'd drop stopCh, then timerCh could be variable and we're left with AddOpinion() which could use some locking but not necessarily, slapping a comment that it needs to be called before Start() should be sufficient13:20
Chipacamborzecki: also setting closeCh to nil doesn't make sense; you want it closed, not nil, so the receive works (as opposed to blocking on nil)13:20
mborzeckiChipaca: oh and daemon should probably wait for standby to finish13:21
mborzeckiChipaca: right now it does not13:21
Chipacamborzecki: are either of your PRs fixing the ... value *errors.errorString = &errors.errorString{s:"dbus: connection closed by user"} ("dbus: connection closed by user") failure?13:24
mborzeckiChipaca: nope, where did you get that one?13:25
Chipacamborzecki: /snap/bin/go test -count=100 -failfast ./cmd/snap13:26
Chipacamborzecki: fails with that rather quickly13:27
Chipacamborzecki: /snap/bin/go becaue 1.10 has -failfast13:27
mborzeckiChipaca: hmm is godbus reusing the connection?13:28
Chipacamborzecki: dunno :-) i'm skipping the test to go on and find the hanging one13:29
tomwardillmore pre-refresh hook questions! Is it possible to manually run a hook? Otherwise testing this is a bit tricky.13:34
ograperhaps via "snap run --shell <snap app>"13:34
ograthat gives you a shell inside the snap env ...13:35
tomwardillooh, that might do it, thanks ogra13:36
mborzeckiChipaca: it is reusing the connection13:36
mupPR snapd#6040 closed: data/apt: close stderr when calling snap in the apt install hook <Simple 😃> <Created by chipaca> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/6040>13:48
Chipacazyga: ping13:56
zygayes?13:56
Chipacazyga: problem with the ptrace thing in other arches14:00
Chipacazyga: PTRACE_GETFPREGS i mean14:00
Chipacazyga: syscall.PTRACE_GETFPREGS is not always there14:00
Chipacai'm adding a test for this, hopefully14:00
Chipacaxnox: are you around? question about gcc-arm-linux-gnueabihf vs gcc-multilib14:01
zygayes14:02
zygaI think that's an arch specific thing but let me look14:02
Chipacazyga: do you know about gcc-arm-linux-gnueabihf vs gcc-multilib?14:03
zygaprobably not14:03
Chipacaok14:03
zygahttp://man7.org/linux/man-pages/man2/ptrace.2.html14:04
zygaChipaca: floating point regs, not on all arches14:04
xnoxChipaca, sup? two are different; and also different depending on the host's arch.14:05
xnoxChipaca, so which host arch are you on, what are you using, and why / what do you want to achieve?14:05
Chipacaxnox: I was once again trying to cross-build go to armhf, and your blog post is my only reliable reference :-) but every time I come to it I have to install one and remove the other, and then time passes and I have to reverse it, and it seems broken14:06
Chipacaxnox: so I was wondering if that was The Way, or if it was outdated and I was missing a trick14:06
xnoxha14:06
xnoxChipaca, which blog is that?14:06
Chipacahttp://blog.surgut.co.uk/2014/06/cross-compile-go-code-including-cgo.html14:06
ChipacaI use this vintage tech called a "bookmark"14:06
xnoxChipaca, no idea what that is? is like a star?14:07
Chipaca:)14:07
xnoxChipaca, also well, click chroots, don't exist anymore.... so do you use $ mk-sbuild --arch armhf bionic ; schroot -u root -c bionic-armhf ?14:07
ograxnox, nah, starts are for favourites ...14:08
Chipacaxnox: CGO_ENABLED=1 GOOS=linux GOARCH=arm CC=arm-linux-gnueabihf-gcc  GOPATH=~/canonical/snappy/ go build -v -o /dev/null ./cmd/snap-seccomp/14:08
Chipaca(the GOOS is spurious and you can ignore it)14:08
xnoxChipaca, gcc-multilib is usually to allow building "co-pairs" of things - e.g. armel/armhf/arm64 on arm platforms; i386/amd64 on x86 platforms and so on.14:08
xnoxgcc-arm-linux-gnueabihf is a generic cross-compiler which should be available on all arches; and as a bonus point it is the native compiler on armhf.14:09
xnoxthis way wherever one is, one should always be able to install and use gcc-arm-linux-gnueabihf14:09
xnoxChipaca, i'm not sure how/why/where that would conflict with gcc-multilib14:09
xnoxcause it shouldn't.....14:09
xnoxand if you are doing all that, you shouldn't need to ever install gcc-multilib, on any host.14:10
Chipacaxnox: ah, ok. Then don't look because you'll get lost down the warren.14:10
xnoxChipaca, i see that gcc-multilib declares conflicts on everything.... so like stop using gcc-multilib i guess?14:10
Chipacaxnox: ok, I'll stay like this, and the next time I need to revert it I'll flag you down again14:11
Chipacamaybe the other flow is broken :-)14:11
Chipacaxnox: thank you14:11
xnoxChipaca, on the surface, i see that gcc-multilib potentially overdeclares conflicts.....14:11
oSoMoNjdstrand, I could use your help with bug #1738164 (see my last two comments). I now have a yubikey 4 so I can easily test things14:26
mupBug #1738164: [snap] U2F doesn't work with yubikey <snap> <chromium-browser (Ubuntu):Confirmed for osomon> <https://launchpad.net/bugs/1738164>14:26
mborzeckiChipaca: so -count=n with dbus test does not work because the connection is shared, there is one reference in used and another one in dbustest, i'm working on some changes to use private connection instead14:29
Chipacamborzecki: ok14:33
Chipacamborzecki: I've forked to writing a mutliarch spread test14:33
ppisatiogra: can you still reproduce those rpi wifi issues you were mentioning me some time ago?14:47
zygais master fixed now?14:49
ograppisati, it seems to have been gotten a bit more stable lately but i still see it reboot at times (i have a acrit that pings the GW and force-reboots the board if it cant reach it) see https://paste.ubuntu.com/p/B7kDjxjKbt/15:00
ogra*a script15:01
=== chihchun is now known as chihchun_afk
zygapopey: I know what the bug is15:03
zygait's very simple to fix15:03
zygaman15:03
zygaTHANK YOU15:03
zygait's super important!!!15:03
popeyzyga: oh!?15:07
zygaI will land a quick one liner15:07
zygabut then proceed with better fix15:07
popeyI love a one-liner15:07
zygaI also added a logging subsystem to show what is going on15:07
ppisatiogra: are you using a raspberrypi official power supply?15:13
ograppisati, nope, a 2A phone charger15:14
zygaChipaca: hey15:16
zygado you have a sec?15:16
ppisatiogra: ok, if you could get one and try that, it will surely help - with my rpi3b+ i encountered a lot of instabilities, in particular duing the boot phase, and they all went away when i switched to an official raspberry power supply15:16
ppisatiogra: other than that, a tentative fix landed in the rpi tree so i might have a kernel to test, if you could give it a spin15:17
mupPR snapd#6044 opened: cmd/snap-confine: remove stale mount profile along stale namespace <Created by zyga> <https://github.com/snapcore/snapd/pull/6044>15:18
ograppisati, well, i can surely try but thats a normal pi3 ... i doubt it is underpowered ... there is a USB wbcam attached that permanently streams though ... my guess would rather go towards USB saturation than to missing power15:18
ograsure, i'll happily test15:18
Chipacazyga: more or less, why?15:19
zygaChipaca: can you please look at https://github.com/snapcore/snapd/pull/604415:19
mupPR #6044: cmd/snap-confine: remove stale mount profile along stale namespace <⚠ Critical> <Created by zyga> <https://github.com/snapcore/snapd/pull/6044>15:19
zygait's pretty critical15:19
zygaI wanted to do a staged patch, a quick fix that is provided here15:19
ogra(needs a bit though, this image is not running a sideloaded kernel, i'll need to build a new one)15:19
zygaa more lengthy fix that uses snap-discard-ns instead of reimplementing it locally15:19
Chipacazyga: is this the one for --classic not going away?15:19
zygaand perhaps a spread test if I can come up with a way to write one15:19
zygano, for mount profiles going away on base refreshes15:19
zygaor breaking all desktop apps15:20
zyga:/15:20
zygapopey: ^15:20
zygathat's the fix15:20
zygait won't fix any affected systems but for those snap-discard-ns can be ued15:20
zygasubsequently it will be OK15:21
Chipacaah15:21
ppisatiogra: bionic or xenial kernel?15:21
ograppisati, core 16 stable15:21
ograso xenial15:21
popeyI don't fully understand, but don't worry :)15:25
pstolowskizyga: \o/15:26
zygapopey: it will get fixed, I will work with mvo on making this patch released15:26
zygaand on tests so that it doesn't regress15:27
popeyok, thanks15:27
zygathank *you*15:27
Chipacazyga: did you look further into the syscall.PTRACE_SHENANIGAN thing?15:39
zyganot more that it is only available on some arches15:40
zygawhat is the problem?15:40
zygawe should just have this logic in the interface15:40
zygawe can start with easy15:40
zygaif on i386 or amd64 == add that part15:40
zygaotherwise not15:40
zygaand that should be enough15:40
Chipacazyga: master is currently broken on arm64 armhf powerpc ppc64el s390x15:41
zygabecause of that?15:41
Chipacazyga: apparently?15:41
Chipacazyga: report comes from mvo15:41
zygawell, master is broken in general, unit tests keep exploding15:41
zygaaha15:41
zygalet's do this15:41
zygalet's maker that conditional15:42
zygabut I need to get some stuff for my stomach first15:42
zygaso ~~ one hour15:42
zygathe patch should be mininal15:42
Chipacai'm working on a spread test that cross-compiles everything just in case15:42
zygaiff it can land15:42
zyganice, thank you!15:42
Chipacaso we don't break like this again15:42
Chipacabut it's taking me a bit :-)15:42
zygaChipaca: it would be great to unbreak master15:42
Chipacazyga: can you? i'll review :-D15:42
zygaI mean15:43
zygathe current one that explodes on travis15:43
Chipacaah15:43
Chipacazyga: with this timeout thing?15:43
zygaI can fix the trace issue15:43
Chipacazyga: but it's not every time is it?15:43
zygayeah15:43
Chipacai was looking at that but then this cross-thing came up15:43
Chipacawhich seemed more important :-)15:43
zygaok, I'll break now15:45
zygattyl15:45
zyga(in one hour)15:46
=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
Chipacaxnox: what's the way to get i686-linux-gnu-gcc (or i386 or w/e) on amd64?16:51
zygaChipaca: you can just use -mtune 32 or something16:53
zygaI used to do that often16:53
zygahold on16:53
Chipacazyga: yes, but16:53
xnoxChipaca, that's multilib, he doesn't want that.16:54
Chipacawas wondering if amd64/i386 were the same16:54
Chipacaas all the others :-)16:54
Chipacaif not it's fine16:54
zygaxnox: is there a difference in the resulting binary?16:54
Chipacazyga: are you back, looking at the ptrace thing?16:54
xnoxChipaca, you want gcc-i686-linux-gnu i believe16:54
zyga(or: is it worth testing with gcc on i386 vm)16:54
xnoxzyga, no, but there is a difference in # of compilers you can co-install.16:55
zygaaha16:55
zygaI see, thanks16:55
zygaso some compilers conflict with each other?16:55
Chipacazyga: oh yes16:55
Chipacazyga: I started taking a stab at the ptrace thing, and it's strange16:55
Chipacazyga: i'm getting errors in more places than i'd expect16:55
xnoxChipaca, zyga - and i strongly recommend you to use a chroot, such that you can safely install libfoo-dev:i386 libfoo-dev:amd64 etc if your native code requires C libraries/headers for a given cross-arch.16:56
xnoxe.g. mk-sbuild --arch armhf|arm64|i386 bionic, and schroot into that.16:56
xnoxit will have all the right compilers pre-installed, accessible by the right name gcc-${arch}16:56
Chipacaxnox: I'll give that a try if my current approach fails even a teeny bit more16:57
Chipacaxnox: (I don't see too much value in the chroot approach as these are for running in throwaway vms already)16:58
zygaxnox: curious about armhf, would that work on amd64 as well? I mean, is that a chroot with a native cross compiler or a chroot with a non-native native compiler16:58
Chipacazyga: is it right that there's no PTRACE_GETFPREGS on 386?16:59
xnoxChipaca, yeah, if you are already isolated from your host, it's fine to run as is.16:59
xnoxzyga, re-read again what you are saying =)16:59
zygaxnox: well, I know what I said :)17:00
zygais that a chroot for native execution on the host17:00
zygaor would it require qemu static17:00
xnoxof course not17:00
xnox=)17:00
xnoxmk-sbuild can setup native chroots, and chroots for cross-compiling17:00
xnoxsee manpage.17:00
xnoxbut the neat thing is that our cross-compilers for $foo, on all arches, and the native compiler for $foo on $foo have the same binary name.17:01
zygaChipaca: looking at the kernel17:01
popeyjdstrand: you about for an apparmor problem?17:01
Chipacazyga: ignore that bit about PTRACE_GETFPREGS on 386, i'm dumb17:01
Chipacazyga: ignore ignore17:01
zygaxnox: that _is_ neat :)17:01
xnoxthus one can always use the same CC= name17:01
zygahaha, ok Chipaca :)17:01
zygaxnox: yeah, I'm a bit of a fan of running my pet projects on weird stuff17:01
zygaand I use the assorted set of cross compilers we provide17:02
zygaI value that a lot17:02
zygaI often mix those with qemu static17:02
zygaand for some I have the hardware17:02
zyga(still waiting for that low-cost power board that is low cost)17:02
mupPR snapd#6044 closed: cmd/snap-confine: remove stale mount profile along stale namespace <⚠ Critical> <Created by zyga> <Merged by zyga> <https://github.com/snapcore/snapd/pull/6044>17:11
Chipacazyga: it's surprising to me that neither amd64 nor s390x have PTRACE_GETFPREGS17:20
Chipacazyga: running tests on a branch to fix this whole thing17:24
Chipacaincludes the cross-build spread test for arches supported by go itself17:24
Chipacabah for the intersection17:24
Chipaca{ arches supported by snapd } ∩ { arches supported by go } - { arches already covered by regular tests }17:26
Chipaca{ arm64 arm s390x }17:26
Chipacaan alarmingly short list :-)17:26
Chipacastill, should be enough to catch some bugs17:26
Chipacaooh ooh ppc64le also17:28
* Chipaca tries to add that17:28
kyrofazyga, you asked me to remind you about https://bugs.launchpad.net/snapd/+bug/180000417:33
mupBug #1800004: snap try doesn't work: "cannot find installed snap" <snapd:New> <https://launchpad.net/bugs/1800004>17:33
zygathanks!17:33
kyrofaIt's kinda killing me if you can find some cycles17:33
zygakyrofa: I'll look today17:35
zygajust updating a PR from mvo17:35
Chipacais ports.ubuntu.com the right place for -security on armhf?17:35
kyrofazyga, thank you. Please let me know if you need data from me17:36
Chipacazyga: https://github.com/snapcore/snapd/pull/604518:01
mupPR #6045: cmd/snap-seccomp: only look for PTRACE_GETFPX?REGS where available <Created by chipaca> <https://github.com/snapcore/snapd/pull/6045>18:01
mupPR snapd#6045 opened: cmd/snap-seccomp: only look for PTRACE_GETFPX?REGS where available <Created by chipaca> <https://github.com/snapcore/snapd/pull/6045>18:01
mupPR snapd#6010 closed: cmd/snap-discard-ns: add support for per-user mount namespaces <Created by zyga> <Merged by zyga> <https://github.com/snapcore/snapd/pull/6010>18:27
zygaChipaca: can we land https://github.com/snapcore/snapd/pull/6042#pullrequestreview-16852546418:30
mupPR #6042: overlord/standby: fix a race between standby goroutine and stop <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/6042>18:30
zygaChipaca: https://github.com/snapcore/snapd/pull/6046 if you want to +1 something simple18:37
mupPR #6046: cmd/snap-confine: remove SC_NS_FAIL_GRACEFULLY <Simple 😃> <Created by zyga> <https://github.com/snapcore/snapd/pull/6046>18:37
mupPR snapd#6046 opened: cmd/snap-confine: remove SC_NS_FAIL_GRACEFULLY <Simple 😃> <Created by zyga> <https://github.com/snapcore/snapd/pull/6046>18:37
zygakyrofa: ok looking now18:43
mupPR snapd#6047 opened: cmd: remove remnants of sc_should_populate_mount_ns <Simple 😃> <Created by zyga> <https://github.com/snapcore/snapd/pull/6047>18:44
kyrofazyga, wonderful!18:44
zygakyrofa: I cannot reproduce it, tried on ...18:47
zygahttps://www.irccloud.com/pastebin/HtAv4AnW/18:47
zygacan you share a snap you have that triggers this18:47
zygaI tried ...18:47
zygago/src/github.com/snapcore/snapd/tests/lib/snaps/test-snapd-sh$ sudo snap try18:48
zygaand subsequently ran some commands, all worked18:48
zygaahhh18:49
zygathe snap is in /tmp/?18:49
zygaperhaps that's why :)18:49
* zyga checks18:49
zygakyrofa: reproduced!18:49
kyrofazyga, ah, indeed, if I put it in my homedir it works18:50
kyrofaWhy would that be?18:51
kyrofaI thought the private tmp didn't come into play until we were talking about the snap's namespace18:51
zygaI'll reply in the bug18:51
kyrofaVery good18:51
zygait's silly18:51
zyga(very silly)18:52
zygareplied, looking if I can fix it18:53
zygakyrofa: ok, I see why this happens18:56
zygait's silly, api reused around and perhaps in a bad way18:56
zygakyrofa: the tl;dr; answer is because the code for running a snap wants to know how big the snap is18:58
zygawhich is silly18:58
zygabecause that is a hot path18:58
zygaand should not reuse random parts of snapd18:58
zygaand hence it is a dangling symlink from the namespace POV18:58
zygait doesn't work18:58
zygawhich is double plus silly for symlinks18:58
zygait would be useless anyway, no size18:58
* cachio afk19:03
kyrofazyga, ah, interesting19:19
zygafixed locally19:19
zygajust crafting a quick test19:19
kyrofaAwesome!19:20
zygajust running spread19:24
zygaand I should EOD, it's almost 10pm19:24
zygakyrofa: https://github.com/snapcore/snapd/pull/604819:38
mupPR #6048: cmd/snap-exec: don't fail on some try mode snaps <Created by zyga> <https://github.com/snapcore/snapd/pull/6048>19:39
zygaenjoy :)19:39
kyrofaThanks zyga!19:39
mupPR snapd#6048 opened: cmd/snap-exec: don't fail on some try mode snaps <Created by zyga> <https://github.com/snapcore/snapd/pull/6048>19:39
Chipacazyga: wrt 6042, no :-)20:32
Chipacazyga: wrt 6046, looking20:33
ChipacaI'm this >< close to losing packets today20:51
* Chipaca goes for tea20:51
* Chipaca wishes there were biscuits20:51
Chipacabrb, reboot21:55
mupPR snapd#6031 closed: snap/pack, cmd/snap: allow specifying the filename of 'snap pack' <Created by chipaca> <Merged by chipaca> <https://github.com/snapcore/snapd/pull/6031>22:11

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!