00:11
<
noam >
Yay, no sloppy mode :)
01:00
iamanoob has joined #zig
01:08
iamanoob has quit [Read error: Connection reset by peer]
01:09
iamanoob has joined #zig
01:12
iamanoob has quit [Remote host closed the connection]
01:40
klltkr has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
01:40
mmurd has quit [Ping timeout: 240 seconds]
01:43
klltkr has joined #zig
01:43
klltkr has quit [Client Quit]
02:13
mmurd has joined #zig
03:01
<
mikdusan >
andrewrk: about a year ago we had drone issues; iirc had something to do with bad alloc, and didn't always fail,
03:02
<
mikdusan >
we had some talk about random ALSR contributing to unpredictable failures, and some related bug I think was fixed,
03:03
<
mikdusan >
then we had some talk about 8086 .c sources being compiled in our deps/softfloat library via cmake and,
03:03
<
mikdusan >
there was some mention of --bundled-compiler_rt or somesuch,
03:04
<
mikdusan >
and I can't recall if what the real cause and fix was on that long-ago drone issue.
03:04
<
mikdusan >
so the link you sent ok, so let's assume the fix.
03:04
<
mikdusan >
let's assume that was the fix for long-ago-drone issue;
03:05
<
mikdusan >
today the only pattern I see that seems 100% is this:
03:06
<
mikdusan >
"deadlock-looking failure" always is with Cavium ThunderX 88XX cpu host
03:06
<
mikdusan >
and success is always with Qualcomm Falkor cpu host
03:06
<
mikdusan >
the flags reported by lscpu (linux kernel I suppose) are this:
03:07
<
g-w1 >
does using the same baseline cpu do anything?
03:07
<
mikdusan >
Cavium: fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
03:07
<
mikdusan >
Falkor: fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid asimdrdm
03:08
<
mikdusan >
only the last feature is diff.
03:08
<
mikdusan >
and that is defined according to wikichips:
03:08
<
mikdusan >
ARMv8.1, Rounding Double Multiply Accumulate/Subtract (SQRDMLAH/SQRDMLSH)
03:08
<
mikdusan >
so what I did was:
03:09
<
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
03:09
<
mikdusan >
and run the test with -mcpu=baseline and still got deadlock
03:10
<
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
03:11
<
mikdusan >
don't know
03:11
<
mikdusan >
the progress didn't help. the point of apparent deadlock is just there, no log afterwards
03:12
<
mikdusan >
and the arm64-test machine we have ssh access to is APM X-Gene, neither of those pipeline host kinds
03:12
<
andrewrk >
did you ever get a backtrace from the deadlock?
03:13
<
mikdusan >
I'm going to add the `zig build-obj --show-builtin` outputs that I have for the hosts in a github comment
03:13
<
mikdusan >
andrewrk: no backtrace yet
03:13
<
andrewrk >
no luck attaching gdb to the process?
03:14
<
mikdusan >
so just rubber ducking what I got so far, will continue digging, if anyone has any hail mary ideas, spit-em out :)
03:14
<
g-w1 >
simplify the test runner?
03:14
<
andrewrk >
gdb -p $(pgrep test) -ex 'thread apply all bt'
03:14
<
andrewrk >
the backtrace is the key
03:15
<
g-w1 >
i dont think mikdusan has shell access
03:15
<
mikdusan >
i can try that blind, capture gdb bt to file, and s3cmd upload to ziglang.org ....
03:15
<
mikdusan >
actually I can upload to my gdrive ... even better
03:16
<
mikdusan >
g-w1: yeah gdb has `gdb -batch` mode works pretty neat
03:17
<
g-w1 >
its in the aur, iirc it runs arch linux so it should be pretty easy to get
03:17
<
g-w1 >
thats a cool tool
03:39
<
mikdusan >
fyi here's a comparison of lscpu/zig-builtin.cpu of fail/success hosts:
03:41
<
mikdusan >
huge speed differences too. The Cavium is roughly half the speed of Falkor to produce zig1.o
04:04
linear_cannon has joined #zig
04:22
plumm has joined #zig
04:35
factormystic has quit [Read error: Connection reset by peer]
04:42
factormystic has joined #zig
04:42
waleee-cl has quit [Quit: Connection closed for inactivity]
04:45
sm2n has quit [Remote host closed the connection]
04:45
sm2n has joined #zig
05:13
sord937 has joined #zig
05:18
ur5us__ has quit [Ping timeout: 245 seconds]
05:20
ur5us__ has joined #zig
05:44
ur5us__ has quit [Ping timeout: 250 seconds]
06:06
SLWW_ has joined #zig
06:09
SLWW has quit [Ping timeout: 246 seconds]
06:47
<
siraben >
Does anyone know of projects that formally verify Zig or aspects of Zig?
06:53
cole-h has quit [Ping timeout: 240 seconds]
07:04
bitmapper has quit [Quit: Connection closed for inactivity]
07:15
andrewrk has quit [Ping timeout: 240 seconds]
07:16
andrewrk has joined #zig
07:46
leon-p has joined #zig
07:53
Biolunar has quit [Ping timeout: 245 seconds]
08:00
earnestly has joined #zig
08:00
Biolunar has joined #zig
08:07
SLWW has joined #zig
08:10
SLWW_ has quit [Ping timeout: 260 seconds]
08:21
jokoon has joined #zig
08:27
neptunepink has quit [Ping timeout: 240 seconds]
08:31
neptunepink has joined #zig
09:00
watzon has quit [Quit: Idle for 30+ days]
09:00
plumm has joined #zig
09:41
m4r35n357 has quit [Quit: Ex-Chat]
09:53
ur5us__ has joined #zig
10:01
Bernstein has joined #zig
10:13
ur5us__ has quit [Ping timeout: 250 seconds]
10:32
Anzh has quit [Ping timeout: 268 seconds]
10:35
Biolunar has quit [Ping timeout: 260 seconds]
10:36
Biolunar has joined #zig
10:49
Biolunar has quit [Ping timeout: 260 seconds]
10:56
Biolunar has joined #zig
11:07
SLWW_ has joined #zig
11:09
SLWW has quit [Ping timeout: 246 seconds]
12:05
knebulae has quit [Read error: Connection reset by peer]
12:32
ifreund has quit [Ping timeout: 252 seconds]
12:33
jokoon has quit [Quit: Leaving]
12:40
factormystic has quit [Read error: Connection reset by peer]
12:40
factormystic has joined #zig
12:41
ifreund has joined #zig
12:59
lemur has joined #zig
13:10
SLWW_ has quit [Ping timeout: 260 seconds]
13:12
SLWW has joined #zig
13:14
cren has joined #zig
13:15
<
cren >
hi. How do I link libc in build.zig?
13:15
<
ikskuh >
artifact.linkLibC();
13:15
<
ikskuh >
where artifact is usually named exe or lib
13:15
<
cren >
yeah I getcha
13:16
<
cren >
does that have to come before artifact.install() ? I imagine it does
13:18
plumm has quit [Ping timeout: 252 seconds]
13:19
<
ikskuh >
not relevant
13:19
plumm has joined #zig
13:19
<
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
13:45
jokoon has joined #zig
13:48
Anzh has joined #zig
13:55
zenkuro has joined #zig
14:01
waleee-cl has joined #zig
14:02
zenkuro has quit [Ping timeout: 265 seconds]
14:03
zenkuro has joined #zig
14:14
lemur has quit [Remote host closed the connection]
14:19
ifreund has quit [Quit: WeeChat 3.1]
14:19
ifreund has joined #zig
14:28
gpanders is now known as andg
14:29
andg is now known as gran
14:29
gran is now known as gpanders
14:38
jokoon has quit [Quit: Leaving]
14:41
braket3 has joined #zig
14:41
casaca has quit [Ping timeout: 260 seconds]
14:41
braket has quit [Ping timeout: 260 seconds]
14:41
braket3 is now known as braket
14:51
bitmapper has joined #zig
15:20
earnestly has quit [Ping timeout: 252 seconds]
15:21
earnestly has joined #zig
15:24
klltkr has joined #zig
15:27
cole-h has joined #zig
15:41
daex has quit [Ping timeout: 246 seconds]
15:44
daex has joined #zig
16:06
pretty_dumm_guy has joined #zig
16:06
pretty_dumm_guy has quit [Client Quit]
16:08
Anzh has quit [Ping timeout: 268 seconds]
16:08
pretty_dumm_guy has joined #zig
16:39
casaca has joined #zig
16:48
Anzh has joined #zig
17:07
Akuli has joined #zig
17:39
gazler_ has joined #zig
17:40
Stephanie has joined #zig
17:42
xentec_ has joined #zig
17:42
Piraty_ has joined #zig
17:44
Snetry- has joined #zig
17:48
notzmv has quit [*.net *.split]
17:48
Piraty has quit [*.net *.split]
17:48
WilhelmVonWeiner has quit [*.net *.split]
17:48
tughi has quit [*.net *.split]
17:48
Stephie has quit [*.net *.split]
17:48
Snetry has quit [*.net *.split]
17:48
gazler has quit [*.net *.split]
17:48
xentec has quit [*.net *.split]
17:59
klltkr has quit [Ping timeout: 240 seconds]
18:04
klltkr has joined #zig
18:22
bitmapper has quit [Quit: Connection closed for inactivity]
19:10
wootehfoot has joined #zig
19:14
tane has joined #zig
19:19
wootehfoot has quit [Quit: Leaving]
19:25
wootehfoot has joined #zig
19:33
marijnfs has joined #zig
19:38
jzelinskie has quit [Changing host]
19:38
jzelinskie has joined #zig
19:39
ur5us__ has joined #zig
19:50
notzmv has joined #zig
19:52
kushalp has quit [Read error: Connection reset by peer]
19:52
tracernz has quit [Read error: Connection reset by peer]
19:52
r0bby has quit [Read error: Connection reset by peer]
19:52
procnto has quit [Read error: Connection reset by peer]
19:54
kwilczynski has quit [Ping timeout: 260 seconds]
19:57
kwilczynski has joined #zig
19:58
kushalp has joined #zig
19:58
tracernz has joined #zig
19:58
r0bby has joined #zig
19:58
procnto has joined #zig
20:08
ur5us__ has quit [Ping timeout: 245 seconds]
20:12
cren has quit [Quit: nyaa~]
20:21
r0bby has quit [Ping timeout: 250 seconds]
20:22
r0bby has joined #zig
20:22
<
noam >
Random guess: using an alternate syntax for namespace lookups to disambiguate from field lookups has been proposed and rejected at least twice?
20:23
<
noam >
not necessarily that syntax, but yeah
20:31
pretty_dumm_guy has quit [Quit: WeeChat 3.2-dev]
20:40
plumm has joined #zig
20:55
cole-h has quit [Quit: Goodbye]
20:57
cole-h has joined #zig
20:59
ur5us__ has joined #zig
21:09
SLWW has quit [Write error: Connection reset by peer]
21:09
SLWW has joined #zig
21:11
<
marijnfs >
why does one get a EAGAIN => return error.WouldBlock
21:11
<
marijnfs >
why doesn't it just block
21:13
sord937 has quit [Quit: sord937]
21:17
<
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."
21:19
leon-p has quit [Remote host closed the connection]
21:21
Akuli has quit [Quit: Leaving]
21:29
wootehfoot has quit [Read error: Connection reset by peer]
21:38
tane has quit [Quit: Leaving]
21:47
mikdusan has quit [Quit: WeeChat 3.0.1]
21:49
<
marijnfs >
ah, i see, so it's a file or socket configuration issue
22:02
marijnfs has quit [Quit: WeeChat 2.8]
22:47
xackus_ has joined #zig
22:56
teratorn_ is now known as teratorn
23:29
DarkUranium has quit [Ping timeout: 240 seconds]
23:29
DarkUranium has joined #zig
23:30
zenkuro has quit [Ping timeout: 240 seconds]
23:46
klltkr has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
23:47
Bernstein has quit [Remote host closed the connection]