freenode/#shirakumo - IRC Chatlog
Search
20:55:24
Shinmera
okey, so it claims the error is in bip_request_read somewhere, meaning you'll want to instert prints (and flushes) into all branches to check whether the values are valid that it gets.
21:04:19
selwyn
why isn't this written as a while loop? https://github.com/Shirakumo/libmixed/blob/master/src/bip.h#L68
21:04:20
Colleen
github.com/Shirakumo/libmix... Website (HTML), Title: libmixed/bip.h at master · Shirakumo/libmixed · GitHub
21:15:09
selwyn
ok so it really does look like the debugger is invoked in the interior of the execution of bip_request_read
21:16:30
Shinmera
if gdb on windows weren't useless you should be able to have it spit out the local variables of the frame for you, too, inculding stuff like showing struct contents.
21:16:51
Shinmera
dunno how to do that though -- I usually use lldb where that stuff is much easier (but lldb is super broken on windows)
21:41:26
selwyn
need to take some time to think what to do next. nothing looks particularly suspicious inside bip_request_read
21:41:49
selwyn
perhaps... make bip_request_read a dummy method that just doesn't do any reading? and then see if stuff still crashes
22:13:16
Shinmera
besides it's not like the read/write functions do anything other than just reading and writing struct fields
22:20:08
Shinmera
the windows backend doesn't do any cross-thread sync anyway so it should work just the same.
22:21:21
Shinmera
another thing to see is look at the assembly generated for the function to see what it actually translates this stuff to
22:27:14
Shinmera
who knows. maybe needs an __attribute__(inline) or __atribute_(always_inline) or something.