ChanServ changed the topic of #zig to: zig programming language | https://ziglang.org | be excellent to each other | channel logs: https://irclog.whitequark.org/zig/
<noam> Yay, no sloppy mode :)
iamanoob has joined #zig
iamanoob has quit [Read error: Connection reset by peer]
iamanoob has joined #zig
iamanoob has quit [Remote host closed the connection]
klltkr has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mmurd has quit [Ping timeout: 240 seconds]
klltkr has joined #zig
klltkr has quit [Client Quit]
mmurd has joined #zig
<mikdusan> andrewrk: about a year ago we had drone issues; iirc had something to do with bad alloc, and didn't always fail,
<mikdusan> we had some talk about random ALSR contributing to unpredictable failures, and some related bug I think was fixed,
<mikdusan> then we had some talk about 8086 .c sources being compiled in our deps/softfloat library via cmake and,
<mikdusan> there was some mention of --bundled-compiler_rt or somesuch,
<mikdusan> and I can't recall if what the real cause and fix was on that long-ago drone issue.
<mikdusan> so the link you sent ok, so let's assume the fix.
<mikdusan> let's assume that was the fix for long-ago-drone issue;
<mikdusan> today the only pattern I see that seems 100% is this:
<mikdusan> "deadlock-looking failure" always is with Cavium ThunderX 88XX cpu host
<mikdusan> and success is always with Qualcomm Falkor cpu host
<andrewrk> woah
<mikdusan> the flags reported by lscpu (linux kernel I suppose) are this:
<g-w1> does using the same baseline cpu do anything?
<mikdusan> Cavium: fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
<mikdusan> Falkor: fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid asimdrdm
<mikdusan> only the last feature is diff.
<mikdusan> and that is defined according to wikichips:
<mikdusan> ARMv8.1, Rounding Double Multiply Accumulate/Subtract (SQRDMLAH/SQRDMLSH)
<mikdusan> .
<mikdusan> so what I did was:
<mikdusan> 1. stop using `zig build` and switch to `zig test ../lib/std/std.zig` which reliably FAILS on Cavium in the same "deadlock looking" manner
<mikdusan> and run the test with -mcpu=baseline and still got deadlock
<g-w1> do we know where the deadlock is? iirc it is compiling the code since when we turned off the dumb progress thing it showed the compilation
<mikdusan> don't know
<mikdusan> the progress didn't help. the point of apparent deadlock is just there, no log afterwards
<mikdusan> and the arm64-test machine we have ssh access to is APM X-Gene, neither of those pipeline host kinds
<andrewrk> did you ever get a backtrace from the deadlock?
<mikdusan> I'm going to add the `zig build-obj --show-builtin` outputs that I have for the hosts in a github comment
<mikdusan> andrewrk: no backtrace yet
<andrewrk> no luck attaching gdb to the process?
<mikdusan> nope
<mikdusan> so just rubber ducking what I got so far, will continue digging, if anyone has any hail mary ideas, spit-em out :)
<g-w1> simplify the test runner?
<andrewrk> gdb -p $(pgrep test) -ex 'thread apply all bt'
<andrewrk> the backtrace is the key
<g-w1> i dont think mikdusan has shell access
<mikdusan> i can try that blind, capture gdb bt to file, and s3cmd upload to ziglang.org ....
<mikdusan> actually I can upload to my gdrive ... even better
<mikdusan> g-w1: yeah gdb has `gdb -batch` mode works pretty neat
<andrewrk> https://github.com/fatedier/frp to get shell access
<g-w1> its in the aur, iirc it runs arch linux so it should be pretty easy to get
<g-w1> thats a cool tool
<mikdusan> fyi here's a comparison of lscpu/zig-builtin.cpu of fail/success hosts:
<mikdusan> huge speed differences too. The Cavium is roughly half the speed of Falkor to produce zig1.o
linear_cannon has joined #zig
plumm has joined #zig
factormystic has quit [Read error: Connection reset by peer]
factormystic has joined #zig
waleee-cl has quit [Quit: Connection closed for inactivity]
sm2n has quit [Remote host closed the connection]
sm2n has joined #zig
sord937 has joined #zig
ur5us__ has quit [Ping timeout: 245 seconds]
ur5us__ has joined #zig
ur5us__ has quit [Ping timeout: 250 seconds]
SLWW_ has joined #zig
SLWW has quit [Ping timeout: 246 seconds]
plumm has quit [Quit: Textual IRC Client: www.textualapp.com]
<siraben> Does anyone know of projects that formally verify Zig or aspects of Zig?
cole-h has quit [Ping timeout: 240 seconds]
bitmapper has quit [Quit: Connection closed for inactivity]
andrewrk has quit [Ping timeout: 240 seconds]
andrewrk has joined #zig
leon-p has joined #zig
Biolunar has quit [Ping timeout: 245 seconds]
earnestly has joined #zig
Biolunar has joined #zig
SLWW has joined #zig
SLWW_ has quit [Ping timeout: 260 seconds]
jokoon has joined #zig
neptunepink has quit [Ping timeout: 240 seconds]
neptunepink has joined #zig
watzon has quit [Quit: Idle for 30+ days]
plumm has joined #zig
m4r35n357 has quit [Quit: Ex-Chat]
ur5us__ has joined #zig
Bernstein has joined #zig
ur5us__ has quit [Ping timeout: 250 seconds]
Anzh has quit [Ping timeout: 268 seconds]
Biolunar has quit [Ping timeout: 260 seconds]
Biolunar has joined #zig
Biolunar has quit [Ping timeout: 260 seconds]
Biolunar has joined #zig
SLWW_ has joined #zig
SLWW has quit [Ping timeout: 246 seconds]
knebulae has quit [Read error: Connection reset by peer]
ifreund has quit [Ping timeout: 252 seconds]
jokoon has quit [Quit: Leaving]
factormystic has quit [Read error: Connection reset by peer]
factormystic has joined #zig
ifreund has joined #zig
lemur has joined #zig
SLWW_ has quit [Ping timeout: 260 seconds]
SLWW has joined #zig
cren has joined #zig
<cren> hi. How do I link libc in build.zig?
<ikskuh> artifact.linkLibC();
<ikskuh> where artifact is usually named exe or lib
<cren> yeah I getcha
<cren> does that have to come before artifact.install() ? I imagine it does
plumm has quit [Ping timeout: 252 seconds]
<ikskuh> not relevant
plumm has joined #zig
<ikskuh> artifact.install() just adds the artifact to the b.installStep() and provides a copy activity that moves the build artifact out of the cache
<cren> ok, thanks
jokoon has joined #zig
Anzh has joined #zig
zenkuro has joined #zig
waleee-cl has joined #zig
zenkuro has quit [Ping timeout: 265 seconds]
zenkuro has joined #zig
lemur has quit [Remote host closed the connection]
ifreund has quit [Quit: WeeChat 3.1]
ifreund has joined #zig
gpanders is now known as andg
andg is now known as gran
gran is now known as gpanders
jokoon has quit [Quit: Leaving]
braket3 has joined #zig
casaca has quit [Ping timeout: 260 seconds]
braket has quit [Ping timeout: 260 seconds]
braket3 is now known as braket
bitmapper has joined #zig
earnestly has quit [Ping timeout: 252 seconds]
earnestly has joined #zig
klltkr has joined #zig
cole-h has joined #zig
daex has quit [Ping timeout: 246 seconds]
daex has joined #zig
pretty_dumm_guy has joined #zig
pretty_dumm_guy has quit [Client Quit]
Anzh has quit [Ping timeout: 268 seconds]
pretty_dumm_guy has joined #zig
casaca has joined #zig
Anzh has joined #zig
Akuli has joined #zig
gazler_ has joined #zig
Stephanie has joined #zig
xentec_ has joined #zig
Piraty_ has joined #zig
Snetry- has joined #zig
notzmv has quit [*.net *.split]
Piraty has quit [*.net *.split]
WilhelmVonWeiner has quit [*.net *.split]
tughi has quit [*.net *.split]
Stephie has quit [*.net *.split]
Snetry has quit [*.net *.split]
gazler has quit [*.net *.split]
xentec has quit [*.net *.split]
klltkr has quit [Ping timeout: 240 seconds]
klltkr has joined #zig
bitmapper has quit [Quit: Connection closed for inactivity]
wootehfoot has joined #zig
tane has joined #zig
wootehfoot has quit [Quit: Leaving]
wootehfoot has joined #zig
marijnfs has joined #zig
jzelinskie has quit [Changing host]
jzelinskie has joined #zig
ur5us__ has joined #zig
notzmv has joined #zig
kushalp has quit [Read error: Connection reset by peer]
tracernz has quit [Read error: Connection reset by peer]
r0bby has quit [Read error: Connection reset by peer]
procnto has quit [Read error: Connection reset by peer]
kwilczynski has quit [Ping timeout: 260 seconds]
kwilczynski has joined #zig
kushalp has joined #zig
tracernz has joined #zig
r0bby has joined #zig
procnto has joined #zig
ur5us__ has quit [Ping timeout: 245 seconds]
cren has quit [Quit: nyaa~]
r0bby has quit [Ping timeout: 250 seconds]
r0bby has joined #zig
<noam> Random guess: using an alternate syntax for namespace lookups to disambiguate from field lookups has been proposed and rejected at least twice?
<g-w1> like :: ?
<noam> not necessarily that syntax, but yeah
plumm has quit [Quit: Textual IRC Client: www.textualapp.com]
pretty_dumm_guy has quit [Quit: WeeChat 3.2-dev]
plumm has joined #zig
cole-h has quit [Quit: Goodbye]
cole-h has joined #zig
ur5us__ has joined #zig
<noam> Does the logic in http://pixelhero.dev/tmp/1.zig look right? Working on addressing that issue before it pops up :)
SLWW has quit [Write error: Connection reset by peer]
SLWW has joined #zig
<marijnfs> why does one get a EAGAIN => return error.WouldBlock
<marijnfs> why doesn't it just block
sord937 has quit [Quit: sord937]
<fengb> "EAGAIN The file is a pipe or FIFO, the O_NONBLOCK flag is set for the file descriptor, and the thread would be delayed in the write operation."
leon-p has quit [Remote host closed the connection]
Akuli has quit [Quit: Leaving]
wootehfoot has quit [Read error: Connection reset by peer]
tane has quit [Quit: Leaving]
mikdusan has quit [Quit: WeeChat 3.0.1]
<marijnfs> ah, i see, so it's a file or socket configuration issue
marijnfs has quit [Quit: WeeChat 2.8]
xackus_ has joined #zig
teratorn_ is now known as teratorn
DarkUranium has quit [Ping timeout: 240 seconds]
DarkUranium has joined #zig
zenkuro has quit [Ping timeout: 240 seconds]
klltkr has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Bernstein has quit [Remote host closed the connection]