/srv/irclogs.ubuntu.com/2019/01/11/#snappy.txt

mupPR snapcraft#2437 opened: repo,baseplugin: support trusting repo keys <Created by kyrofa> <https://github.com/snapcore/snapcraft/pull/2437>01:44
zygaGood morning05:35
mborzeckimorning06:07
zygahey mborzecki  :)06:34
mborzeckizyga: hey hey06:34
zygaI'd love to land some boring stuff today06:35
zygamost blocked by https://github.com/snapcore/snapd/pull/635306:35
mupPR #6353: cmd/snap-update-ns: move existing code around, renaming some functions <Per-user mount ns  🐎> <Simple 😃> <Created by zyga> <https://github.com/snapcore/snapd/pull/6353>06:35
mborzeckizyga: which pr should i start with first?06:35
zygaI think this one is the only one I really need06:35
zygathough all the <simple> ones should be a moment to review06:35
mborzeckiack06:36
mupPR snapd#6355 closed: release: 2.37~pre1 <Created by mvo5> <Merged by zyga> <https://github.com/snapcore/snapd/pull/6355>06:40
mborzeckizyga: one suggestion under #6349, other than that it's +107:02
mupPR #6349: cmd/snap-update-ns: move XDG code to dedicated file <Per-user mount ns  🐎> <Simple 😃> <Created by zyga> <https://github.com/snapcore/snapd/pull/6349>07:02
zygalooking07:02
zyganice :)07:03
zygapushed07:05
zygaI prepared another branch but I will need https://github.com/snapcore/snapd/pull/6346 as well07:06
mupPR #6346: osutil: add helper for loading fstab from string <Simple 😃> <Created by zyga> <https://github.com/snapcore/snapd/pull/6346>07:06
zygamborzecki: updated https://github.com/snapcore/snapd/pull/6346 based on your comment07:08
mupPR #6346: osutil: add helper for loading fstab from string <Simple 😃> <Created by zyga> <https://github.com/snapcore/snapd/pull/6346>07:08
mborzeckizyga: regarding #6345 none of the patches that start to make use of FromSnapConfine in s-u-n user mounts are up yet, right?07:54
mupPR #6345: cmd/libsnap: pass --from-snap-confine when calling snap-update-ns as user <Per-user mount ns  🐎> <Simple 😃> <Created by zyga> <https://github.com/snapcore/snapd/pull/6345>07:54
mborzeckizyga: same for freezer07:54
zygamborzecki: the main branch is07:55
zygamborzecki: the only use of --from-snap-confine is to lock/freeze07:55
zygabut that is arguably one of the last patches in this pile07:55
mborzeckizyga: mhm07:55
mborzeckibtw. have dropped codecov?07:57
mborzeckis/have/have we/07:57
zygaI ... don't remember we did08:01
zygabut perhaps?08:01
mborzeckiidk, haven't seen any coments being added to the new PRs08:02
=== pstolowski|afk is now known as pstolowski
pstolowskimorning08:02
mborzeckipstolowski: heya08:04
zygahey Pawel08:04
zygapstolowski: hey, could you do a 2nd review for https://github.com/snapcore/snapd/pull/635308:13
pstolowskizyga: sure08:13
mupPR #6353: cmd/snap-update-ns: move existing code around, renaming some functions <Per-user mount ns  🐎> <Simple 😃> <Created by zyga> <https://github.com/snapcore/snapd/pull/6353>08:13
Chipacamoin moin08:20
zygahey chipaca :)08:20
zygaChipaca: can I bug you for one little review in the morning please? https://github.com/snapcore/snapd/pull/634608:21
mupPR #6346: osutil: add helper for loading fstab from string <Simple 😃> <Created by zyga> <https://github.com/snapcore/snapd/pull/6346>08:21
Chipacazyga: you can bug me all you want08:21
* Chipaca adds zyga to his ignore list08:21
mborzeckiChipaca: hey08:22
zygare08:34
Chipacashould I have another coffee?08:45
ChipacaI should have another coffee.08:45
* Chipaca obeys08:45
zygaChipaca: I hear you08:57
zygacoffee is good08:57
mupPR snapd#6356 opened: overlord/snapstate: during refresh, re-refresh on epoch bump <Created by chipaca> <https://github.com/snapcore/snapd/pull/6356>08:57
Chipacapedronis: ^_^08:58
pedronisChipaca: thx08:58
Chipacapedronis: and good morning08:58
pedroniswe'll see if I get to it today08:59
zygapstolowski: https://github.com/snapcore/snapd/pull/6353#issuecomment-45343841408:59
mupPR #6353: cmd/snap-update-ns: move existing code around, renaming some functions <Per-user mount ns  🐎> <Simple 😃> <Created by zyga> <https://github.com/snapcore/snapd/pull/6353>08:59
pstolowskizyga: sure09:00
zygathanks!09:00
zygaI didn't notice 2017 :)09:00
mupPR snapd#6353 closed: cmd/snap-update-ns: move existing code around, renaming some functions <Per-user mount ns  🐎> <Simple 😃> <Created by zyga> <Merged by zyga> <https://github.com/snapcore/snapd/pull/6353>09:00
zygaChipaca: the pic in your response is lovely09:01
=== chihchun_afk is now known as chihchun
zygafeels like the way to spend time :)09:01
Chipacazyga: :-)09:01
mupPR snapd#6346 closed: osutil: add helper for loading fstab from string <Simple 😃> <Created by zyga> <Merged by zyga> <https://github.com/snapcore/snapd/pull/6346>09:01
pedronisChipaca: next on your list, I think, is snapshot user docs?  and maybe picking up/rework #6348? does that sounds right?09:03
mupPR #6348: snap: split alignment calculation and display for channels <Created by mvo5> <https://github.com/snapcore/snapd/pull/6348>09:03
Chipacapedronis: I'd like to know what to do about #6034 also09:04
mupPR #6034: many: save media info when installing, show it when listing <⛔ Blocked> <Created by chipaca> <https://github.com/snapcore/snapd/pull/6034>09:04
Chipacapedronis: but, yes, snapshot user docs, info refactor, then maybe per-architecture info09:04
pedronisChipaca: yes, I'm aware of 6034, but indeed needs discussion so it's blocked atm09:05
Chipacapedronis: we're not going to have time to have that discussion before the town of capes, right?09:05
* Chipaca hopes everybody packed capes09:05
pedronislikely not but we'll see09:06
pedronisChipaca: also next week sprint is organized a bit differently, with lots of everybody sessions all in the morning, so I might not be busy all the time, just almost all the time09:07
Chipacapedronis: also I notice you removed the block on #6280, does that mean it's gtg (pending 2nd review)?09:07
mupPR #6280: cmd/snap: make 'snap warnings' output yamlish <Created by chipaca> <https://github.com/snapcore/snapd/pull/6280>09:07
Chipacapedronis: you're going to a sprint, and think you might not be busy all the time09:07
Chipaca*giggle*09:07
pedronisChipaca: I should probably look at it again (6280) but is not blocked about the --unicode oddities vs non-ttys09:09
Chipacapedronis: ah :-) ok09:09
pedronisChipaca: mvo asked for gustavo's input but if I understand it is something that was discussed with him, no?09:09
Chipacapedronis: yep09:09
Chipacaat the london sprint (!)09:09
pedronisalso the general principle, if too wide for tabular/naive output, be yaml-like/parsable09:09
niemeyerHeya09:13
pedronisniemeyer: hi09:14
zygabrb09:48
pedronisChipaca: can you remind me how to poke at the API with http ?09:51
Chipacapedronis: http snapd:///v2/find name==go09:52
Chipacapedronis: or, http --pretty=all snapd:///v2/find name==go | less -R09:52
pedronisChipaca: thank you09:53
Chipacahuh, I thought snapshots were in 2.3610:16
Chipacajust had a user on 2.36.3 tell me it didn't work there10:17
pedronisChipaca: no, they are not, not they client bits10:31
pedronisthey are in 2.3710:31
Chipaca2.37 is going to be a big'un10:34
pedronispstolowski: hi, btw I started yesterday looking again at the hotplug-connect PR but didn't finish, we'll try to do so today10:39
pstolowskipedronis: ack, thanks10:40
zygapedronis: added one suggestion to the doc you just shared, it was something on the back of my mind for several interfaces (e.g. optical drive is the same)10:59
Chipacawhy isn't architecture in `snap version`?11:02
pedroniszyga: add it "all" to what?11:02
pedronisthe plug, the slot?11:02
zygato the interface, I will clarify my comment11:02
zygawell, to the slot side11:03
zygaif you have "all" you are the old legacy camera11:03
zygaif you don't have that you are a precise camera11:03
zygaeither hotplug or gadget11:03
pedronisI was basing that on having a path or not11:03
pedronisbut we can do both11:04
pedronison the slot side, anyway this is a discussion to have11:04
pedronisthose were just jumping points11:04
zygathat's good, it's the same idea11:07
zygaah, I see it's on the following line11:07
zygaI'll retract my suggestion11:08
mborzeckiany clue if we'll be merging master to 2.37 again?11:29
zygamaster to 2.37?11:31
zyganever?11:31
zygaI think it is cherry picking from now on11:31
mborzeckihm ok11:31
zygaproxy leaking from test to test? https://www.irccloud.com/pastebin/cw3P0RWp/11:31
zygasoliciting 2nd review for https://github.com/snapcore/snapd/pull/634911:33
mupPR #6349: cmd/snap-update-ns: move XDG code to dedicated file <Per-user mount ns  🐎> <Simple 😃> <Created by zyga> <https://github.com/snapcore/snapd/pull/6349>11:33
zygapstolowski: do you have a moment?11:33
pstolowskizyga: ok11:38
zygamborzecki: https://github.com/snapcore/snapd/pull/6352#discussion_r11:42
mupPR #6352: many: remove .user-fstab files from /run/snapd/ns <Per-user mount ns  🐎> <Simple 😃> <Created by zyga> <https://github.com/snapcore/snapd/pull/6352>11:42
mborzeckizyga: yup11:43
mborzeckizyga: wonder if that should use rm -f {} \: instead, so that find does not stop if there's a failure to remove11:44
zygathose are plain files11:45
zygashould remove fine11:45
zygapushed11:45
zygaI think we only had -f to "fix" rm -f *.foo expanding to "*.foo"11:45
mborzeckiit'd be good if Chipaca could take a look too11:46
zyga+111:46
zygaI added him to the review now11:46
zyga+4, -1611:46
zyga:)11:46
pedronispstolowski: +1 with a comment still, also would be good if you got reviews from mborzecki and mvo for it11:47
mborzeckihehe :)11:47
pstolowskipedronis: k11:47
zygare12:20
zygasome kitchen emergency, all good now12:20
* pstolowski lunch12:24
zygaI'm seeing one test fail often today;12:31
zygatests/main/xdg-open-compat fails with ERROR 503 while talking to launchpad.nett https://www.irccloud.com/pastebin/74kd9yef/12:32
Chipacazyga: .nett?12:32
zygano, .net, just a typo12:33
Chipacazyga: launchpad might be sad today12:35
mupPR snapd#6357 opened: cmd/snap-update-ns: make freezer mockable <Per-user mount ns  🐎> <Simple 😃> <Created by zyga> <https://github.com/snapcore/snapd/pull/6357>13:01
mupPR snapd#6358 opened: cmd/snap-update-ns: close internal lock on error <Per-user mount ns  🐎> <Simple 😃> <Created by zyga> <https://github.com/snapcore/snapd/pull/6358>13:05
zygamborzecki, pstolowski: I would love a review for the two above, this would make the refactor purely a refactor with 0 new features or fixes13:05
zygaI broke the two patches out to make that true13:06
zygathey are both really tiny13:06
mupPR snapd#6349 closed: cmd/snap-update-ns: move XDG code to dedicated file <Per-user mount ns  🐎> <Simple 😃> <Created by zyga> <Merged by zyga> <https://github.com/snapcore/snapd/pull/6349>13:07
=== ricab is now known as ricab|lunch
diddledanis the store api down (snap find foo isn't working) or just my system having issues?13:34
diddledanaha. it's gone through now13:34
diddledantransient13:34
diddledanignore me13:34
cmatsuokaworking for me13:34
diddledan:-)13:34
zygare13:36
diddledanthe knights who say "re"?13:36
mupPR snapd#6359 opened: tests: use double quotes for regex on listing test to match \\* <Created by sergiocazzolato> <https://github.com/snapcore/snapd/pull/6359>13:36
diddledan:-p13:36
zygastore down and wonky errors https://www.irccloud.com/pastebin/pj7DG1v2/13:36
zygaChipaca: ^13:37
pedronisChipaca: standup?14:02
Chipacaagh, yes14:02
Chipacawas distracted by CVEs14:02
* Chipaca goes14:02
ali1234how do i tell my snapcraft.yaml that i want to stage-packages from 16.04?14:21
diddledanif you don't tell it you want `base: core18` it will use 16.04 by default (you are using multipass, right?)14:22
ali1234i don't know14:22
zygadiddledan: I don't think that's true14:25
zygadiddledan: if you use base: core18 you will use the new base and the new multipass builder14:25
zygadiddledan: but in absence of that I think you will build the old way14:25
zygadiddledan: I may be wrong, but that's what I think was the approach14:25
ali1234"Issues while validating snapcraft.yaml: The 'version' property does not match the required schema: 0 is not a valid snap version string."14:25
diddledanzyga: yes, which is why I caveated my comment with the multipass14:26
zygaright but multipass is not on uless you use base: *14:26
zygabut there's no published core16 base14:26
ali1234what is a valid version string then?14:26
zygaali1234: perhaps "1"14:26
zyganot sure why 0 is rejected14:26
ali1234nope, 1 also does not work14:26
diddledanif you aren't knowingly using multipass then you'll use the old build which builds against your host. if you specify `base: core18` then you will use multipass14:26
ali1234i want to use 16.04 as base when building on 18.0414:27
diddledanthe solution to use multipass correctly is `env SNAPCRAFT_BUILD_ENVIRONMENT=multipass snapcraft`14:27
ali1234yeah what happens is if you don't have "base:" in snapcraft.yaml it builds against the host14:30
diddledannot if you tell it to use multipass14:30
ali1234if you have "base" it installs multipass for you, then fails to work because it won't accept any version string14:30
diddledanthe only `base` value that is accepted is `core18`. don't set it but tell snapcraft to use multipass14:31
ali1234if i set base: core18 then it still fails to accept the version string. but doing it your way works14:32
ali1234it is now launching a VM14:32
=== ricab|lunch is now known as ricab
ali1234it seems to be stuck...14:36
mupPR snapd#6358 closed: cmd/snap-update-ns: close internal lock on error <Per-user mount ns  🐎> <Simple 😃> <Created by zyga> <Closed by zyga> <https://github.com/snapcore/snapd/pull/6358>14:36
zygaali1234: quick question, is there a reason you don't want to just say "base: core18"14:36
ali1234yes, the package isn't available in ubuntu 18.04, if it was i'd just install it normally14:37
ali1234"launch failed: timed out waiting for instance to respond"14:38
ograinstance failed instantly :)14:40
zygaali1234: I'm not sure I understand14:41
ali1234which part?14:41
zygaali1234: using base: core18 will just build your project against ubuntu 18.04 build system14:41
zygaali1234: is that breaking your software?14:41
ali1234i dont have any software14:42
diddledano_O14:42
zygaali1234: which package is not available in 18.04?14:42
ali1234eagle14:42
zygaeagle?14:43
ali1234yes, eagle14:43
zygaand is it advailable in 16.04?14:43
zygahttps://packages.ubuntu.com/search?keywords=eagle&searchon=names&suite=all&section=all14:43
ali1234yes14:43
ograthe CAD tool ?14:43
ali1234yes, the CAD tool14:43
zygaaaah14:43
ali1234which is non-free14:43
zygawell14:43
zygathat's not from the ubuntu archive :)14:43
zygawhat are you trying to build?14:43
ali1234eagle14:44
zygaan eagle snap?14:44
ali1234yes14:44
ali1234specifically an eagle 6.6 snap14:44
zygaI think you can use base: core18 just fine, you need to teach your snapcraft.yaml about where to get eagle from14:44
ali1234the version that is available for ubuntu 16.0414:44
zygaunless eagle just plainly doesn't work on any other version of ubuntu14:44
ali1234it isn't available any more14:44
ali1234the only place it is available is the ubuntu package14:44
diddledaneagle isn't available for ubuntu 16.04 specifically - you download it from autodesk as a tarball14:45
zygaI think the error  you are seeing is unrelated to core18 or eagle and it would be the best to migrate to core18 for your software, integrate fetching the eagle .deb (however legal is that)14:45
zygaI'm not just saying this because core18 is better14:46
ali1234diddledan: no, it is available as an ubuntu package for 16.0414:46
diddledannope14:46
zygabut because the old build model (building natively) is going away14:46
zygasnapcraft switched to build with multipass-managed virtual machines14:46
ali1234https://launchpad.net/ubuntu/+source/eagle/6.6.0-214:46
mborzeckior migrate to kicad :)14:46
diddledanthat's not available in xenial14:47
zygai386?14:47
ali1234yes it is: https://launchpad.net/ubuntu/+source/eagle/14:47
zygaEagle is a powerful IM client designed to fit in perfectly in an enterprise environment.14:47
ali1234yes, it's i386 only14:47
zygaweird14:47
zygaanyway, I'm back to coding14:48
mupPR snapd#6357 closed: cmd/snap-update-ns: make freezer mockable <Per-user mount ns  🐎> <Simple 😃> <Created by zyga> <Merged by zyga> <https://github.com/snapcore/snapd/pull/6357>14:48
zygapstolowski: could you do a 2nd review for https://github.com/snapcore/snapd/pull/634514:49
mupPR #6345: cmd/libsnap: pass --from-snap-confine when calling snap-update-ns as user <Per-user mount ns  🐎> <Simple 😃> <Created by zyga> <https://github.com/snapcore/snapd/pull/6345>14:49
ograali1234, regarding your version issue, i can build just fine here using "version: 0" in a snap14:52
ali1234yes, here it won't accept any version string at all14:52
ogradid you put any quotes areound the version string or some such ?14:52
ali1234no14:52
ogra*around14:52
ogravery weird14:52
ali1234what is the most simple possible snapcraft.yaml that should always be guaranteed to build?14:53
ograwhat snapcraft version isthat ?14:53
ogra$ snap info snapcraft|grep installed14:53
ograinstalled:   3.0.1                (2374) 28MB classic14:53
ali1234whatever you get with 18.0414:53
ograyou dont use the snap ?14:53
mupPR snapd#6345 closed: cmd/libsnap: pass --from-snap-confine when calling snap-update-ns as user <Per-user mount ns  🐎> <Simple 😃> <Created by zyga> <Merged by stolowski> <https://github.com/snapcore/snapd/pull/6345>14:53
zyga\o/14:53
zygathanks!14:53
* ogra has long stopped using snapcraft from the archive ... never had issues 14:54
ali1234snapcraft, version 3.0.114:54
diddledanI try to use a snap if one is available unless I hit issues with it that I can't fudge14:54
ograwell, then i dont get why it doesnt work the same way as mine14:54
ali1234actually i do have it installed through snap: installed:   3.0.1                (2374) 28MB classic14:55
ograprobably some other typo in the snapcraft.yaml ? (and the version thingie just being fallout)14:55
ali1234this is my entire snapcraft.yaml: http://paste.ubuntu.com/p/cQZFmSnm49/14:58
ograi doubt thats valid14:58
ograbetter use snapcraft init and modify the created file then14:59
mupPR snapd#6360 opened: cmd/snap-update-ns: refactor of profile application <Per-user mount ns  🐎> <Created by zyga> <https://github.com/snapcore/snapd/pull/6360>14:59
ograyou are surely missing a lot of required fields14:59
ogra(description, confinement ... not sure but probably also grade)15:00
diddledan`version: 0` is actually invalid because snapcraft (or rather the python yaml parser) reads it as a number when it's expecting a string15:00
ogradiddledan, it doesnt for me15:00
diddledanreplacing it with `version: '0'` works15:00
ograi just took one of my snaps changed version to 0 and called snapcraft ... no errors for me15:01
ali1234okay i did "snapcraft init" and then "snapcraft" - it's hanging at launching the VM again15:02
diddledanogra: with ali1234's yaml: https://www.irccloud.com/pastebin/OeZVLYOb/15:04
ali1234"snapcraft init" also generates a quoted version field15:05
zyganiemeyer: the wikipedia reference on that bug is fantastic15:05
zyga"That looks great. Just one thing: get rid of the duck."15:05
zyga:"D15:05
ogradiddledan, well, but that snapcraft.yaml is generalyl broken15:05
diddledanthe rest of the brokenness is besides the point though. snapcraft _expects_ a string.15:06
diddledanif you managed to get a working build with a number then you've hit a bug15:06
ali1234i just tried removing the quotes from the generated snapcraft.yaml and it produces the same error15:06
ali1234the error message could be more helpful.15:07
ali1234is multipass using docker?15:09
diddledanno, kvm15:09
ali1234"multipass launch" works, it is actually doing something15:11
ali1234i can see qemu using CPU, it's still spinning though15:13
ali1234nope, failed15:17
ograhow ?15:20
ogra(surely different than before ?)15:20
ali1234nope, identical. it spins for about 8 minutes then says "launch failed: timed out waiting for instance to respond"15:20
ali1234now running it with verbose15:22
ograhave you tried a reboot ... or logout/login cycle, after installing multipass ?15:22
ali1234no15:22
ogra(did you wiggle the cable ?) :P15:22
ali1234https://paste.ubuntu.com/p/26DQgRrWKQ/15:23
ograwow15:24
ograclassic snaps ... the pain ...15:25
ogralooks like it is somehow clashing with your deb-installed qemu15:25
ali1234i have qemu arm installed15:26
ograthere is a #multipass channel15:26
ali1234okay so multipass works now. how do i tell it to stage i386 packages?16:12
ali1234i tried "--target-arch=i386" but it had no effect. dpkg still only supports amd64 inside the instance16:12
* cachio lunch16:13
ali1234ah there we go. run snapcraft with --debug, then run "sudo dpkg --add-architecture i386" inside the instance, then exit and run snapcraft again16:15
zygaI found a bug in go :)16:30
zygabut that's for next week16:30
zygaI'm happy I also found a workaround16:30
CrocodillianI'm trying to install spotify from snap, when it tries to download a core it says x509: certificate has expired or is not yet valid16:30
Crocodillianis ssl just broken on my system16:31
zygaCrocodillian: is the time set correctly?16:32
zygaperhaps some certs *are* invalid though16:32
Crocodillianno, it looks like my timezone is wrong16:32
Crocodillianthanks!16:32
* cmatsuoka creates his first wine-based snap package16:39
cmatsuokalots of room for improvements tho16:39
* zyga takes a small break16:42
mupPR snapd#6361 opened: kvm: load required kernel modules if necessary <Created by gerboland> <https://github.com/snapcore/snapd/pull/6361>16:42
=== pstolowski is now known as pstolowski|afk
zygamwhudson: hey17:22
zyganot sure if you are the person to go to17:22
zygabut I'm pretty much hopeless now :)17:22
zygahttps://github.com/golang/go/issues/2968917:22
mupPR snapd#6362 opened: cmd/snap-update-ns: explicitly check for return value from parse_arg_u <Simple 😃> <Created by zyga> <https://github.com/snapcore/snapd/pull/6362>17:35
mupPR snapd#6363 opened: cmd/snap-update-ns: save errno from strtoul <Simple 😃> <Created by zyga> <https://github.com/snapcore/snapd/pull/6363>17:35
mupPR snapd#6364 opened: cmd/snap-update-ns: let the go parser know we are parsing -u <Per-user mount ns  🐎> <Simple 😃> <Created by zyga> <https://github.com/snapcore/snapd/pull/6364>17:36
mupPR snapd#6365 opened: cmd/snap-update-ns: manually implement isspace <Per-user mount ns  🐎> <Created by zyga> <https://github.com/snapcore/snapd/pull/6365>17:41
zygaChipaca: ^ (that last one is cool017:41
* Chipaca is suspicious of C code being called "cool0"17:42
Chipacazyga: is the C string being passed zero-terminated?17:42
zygaChipaca: yes17:43
Chipacazyga: does it still crash if you -O0?17:43
zygalook at https://github.com/zyga/go-bug-2968917:43
zygaisspace doesn't care17:43
zygacalling issspace(0) is enough17:43
zygaor whatever17:43
zygaideas welcome :)17:43
zygayou can also shrink the reproducer even more if you want17:44
Chipacazyga: yeah that's not a "minimal" reproducer17:52
mborzeckizyga: that go bug, doesn't crash here17:52
Chipacastill, strange17:52
Chipacamborzecki: 1.10?17:52
zygawait, you mean you can run my reproducer17:52
zygaand not crash>17:52
mborzecki1.11.417:52
zygaI triied on 1.10 and 1.11.417:52
zygaand my keyboard seems to have some repeat issues sometimes, weird17:53
zygamborzecki: go build && ./go-bug 100017:53
zygathat doesn't crash for you?17:53
zygamaybe depends on locale/17:53
mupBug #1000: There are too many bug reports in Malone <lp-foundations> <NULL Project:Invalid> <https://launchpad.net/bugs/1000>17:53
mborzeckiuh, ok, that crashes17:53
mborzeckihaven't passed any args before :P17:54
zyga:D17:55
zygaREADME17:55
zygabut that's good17:55
zygait's just broken17:55
mborzeckihm, idk why but it doesn't crash under dlv, or maybe i'm not passing the command line args again17:56
Chipacahm17:57
Chipacazyga: if I remove the __attribute__ bit it no longer crashes17:57
zygabecause that code doesn't run anymore17:58
zygaadd printf to check17:58
mborzeckizyga: must be some weird libc interaction, when built statically it doesn't crash17:58
zygaperhaps the problem is related to how isspace is implemented17:58
zygait uses a lookup table17:58
zygaperhaps that code runs before various relocations are applied?17:59
zygabut meh17:59
zyganot fun17:59
zygaand makes me think we should split out the C code to snap-run-in-namespace --user --snap-name17:59
mborzeckizyga: that's from s-u-n right?18:00
zygayes18:00
mborzeckizyga: i recall having some issues with code crashing in isalpha in s-u-n back when i was working on parallel instances18:01
mborzeckiwould crash unless i build the binary statically18:01
Chipacabuilding it statically has it not working again18:02
zygaha18:02
zygainteresting18:02
Chipacazyga: what is it that calls bootstrap()?18:02
zyganot working?18:02
zygaChipaca: the dynamic linker18:03
Chipacazyga: as in it isn't called18:03
zygalook at main.go18:03
zygaer18:03
zygabootstrap.go18:03
zygait's explained there18:03
zyga*MAGIC*18:03
mborzeckizyga: looking at glibc implementation, macro black magic f****ery, but it looks liek there's an array of points to actual functions that implement each op18:06
zygayou mean issspace/18:06
zygaisspace?18:06
mborzeckizyga: yeah18:06
zygait looks like a single function call + array lookup on the result18:07
mborzeckizyga: right, so it's a LUT indexed by char, the table is in thread specific data (?), and that's set up by some early locale init18:16
mborzeckizyga: wonder what would hapend if i  add setlocale(LC_ALL, "") somewhere early18:17
mborzeckizyga: and it works now :P18:18
mborzeckizyga: https://paste.ubuntu.com/p/X2vgcX5Fr8/18:19
Chipacazyga: so18:21
Chipacazyga: you got a reply :-)18:21
mborzeckihah, makes sense18:22
mupPR snapcraft#2435 closed: Appstream desktop <Created by sergiusens> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/2435>18:25
mborzeckizyga: something to keep you busy on the flight, dump .preinit_array and .init_array and see where bootstrap ends up and where locale tables are set up18:34
mupPR snapcraft#2438 opened: rust plugin: new link for rustup <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/2438>18:37
zygaChipaca, mborzecki: so we were just lucky so far18:51
mborzeckizyga: and built statically, cause we had to18:53
zygaI think I will write a snap-lowlevel-exec18:53
mborzeckihaha18:53
zygaI'm serious18:54
zygathis sucks18:54
zygawe can drop the c code from snap-update-ns this way18:54
mborzeckizyga: srsly, maybe we should take a look at what podman/docker/crio18:54
zygawe did18:54
zygathey do setns the same way18:54
mborzeckisame preinit_array trick?18:55
zygaat least AFAIK18:55
zygaI can be wrong18:55
mborzeckizyga: otoh, there's no pressing need to fix it right away, so we can take time and research18:55
zygayeah18:56
zygaas long as we don't need to call more functions :)18:56
zygacan you review https://github.com/snapcore/snapd/pull/6365 please18:56
mupPR #6365: cmd/snap-update-ns: manually implement isspace <Per-user mount ns  🐎> <Created by zyga> <https://github.com/snapcore/snapd/pull/6365>18:56
zygaI'm still pushing out the user-mount patches18:56
mupPR snapd#6352 closed: many: remove .user-fstab files from /run/snapd/ns <Per-user mount ns  🐎> <Simple 😃> <Created by zyga> <Merged by zyga> <https://github.com/snapcore/snapd/pull/6352>18:56
mborzeckizyga: even if you drop isspace, there's still islower & isdigit in the code18:59
zygabut it doesn't crash18:59
zygaperhaps doesn't need a table the same way?18:59
zygaI'm after getting fixes in place :)18:59
mborzeckizyga: i suppose you need to use a snap name with instance key18:59
zygaoh18:59
zygaI see18:59
mborzeckiwrapping it up19:02
mborzeckizyga: pedronis: save travel19:02
zygathank you!19:02
mborzeckis/save/safe/ :)19:02
mborzeckienjoy the summer19:02
zygaHAHA19:02
zygaI think I will :)19:02
mupPR # closed: core-build#11, core-build#22, core-build#26, core-build#3719:50
mupPR # opened: core-build#11, core-build#22, core-build#26, core-build#3719:51
mupPR snapd#6366 opened: cmd/snap-discard-ns: fix name of user fstab files <Per-user mount ns  🐎> <Simple 😃> <Created by zyga> <https://github.com/snapcore/snapd/pull/6366>19:58
mupPR snapd#6367 opened: cmd/snap-update-ns: allow switching to user mount namespace <Created by zyga> <https://github.com/snapcore/snapd/pull/6367>19:59
mupPR core#38 closed: Add another pi-config option <Created by sergey-borovkov> <https://github.com/snapcore/core/pull/38>20:37
mupPR core#83 closed: move most of the ubuntu-core config deb into the snap snap build <Created by mvo5> <https://github.com/snapcore/core/pull/83>20:37
mupPR core#98 closed: Add force_turbo rpi option <Created by sergey-borovkov> <https://github.com/snapcore/core/pull/98>20:37
mupPR core#38 opened: Add another pi-config option <Created by sergey-borovkov> <https://github.com/snapcore/core/pull/38>20:38
mupPR core#83 opened: move most of the ubuntu-core config deb into the snap snap build <Created by mvo5> <https://github.com/snapcore/core/pull/83>20:38
mupPR core#98 opened: Add force_turbo rpi option <Created by sergey-borovkov> <https://github.com/snapcore/core/pull/98>20:38
diddledanis mup ok?20:55
diddledan4 successive "this was closed.. oh no, psych! it's open really :-p" messages20:55
mupPR snapcraft#2439 closed: snap: add xslt dependencies for lxml <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/2439>21:00
mupPR snapcraft#2439 opened: snap: add xslt dependencies for lxml <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/2439>21:03
mupPR snapd#6368 opened: tests: check denials considering all the log lines instead of last 100 lines <Created by sergiocazzolato> <https://github.com/snapcore/snapd/pull/6368>21:19
om26erpopey, ping22:22
=== pachulo_ is now known as pachulo
mupPR snapd#6369 opened: Add check for snap binaries dir not being in path <Created by liamg> <https://github.com/snapcore/snapd/pull/6369>22:48

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