<Pellescours>I fixed the root cause that was making code entering in cpp_errno_filename (which segfault) <Pellescours>the root cause is because read fails and should not. I’m trying to understand and reproduce it in a simple example <Pellescours>my fix was (just before the read) close and reopen the file. I’m trying to know if it’s because of the O_NONBLOCK in open that read fails ***Server sets mode: +nt
***Server sets mode: +nt
<Pellescours>it’s because of a ternary check to decide of flag to set or not. If I remove the ternary check it work <Pellescours>22 int a = O_RDONLY | O_NOCTTY | (val != NULL) ? O_NONBLOCK : 0; <Pellescours>25 int file = open(filename, O_RDONLY | O_NOCTTY | (val != NULL) ? O_NONBLOCK : 0, 0666); <youpi>so | goes into the parameter of ? <youpi>instead of getting combined with the ?: result <Pellescours>I don’t know why problem did not appear before (gcc is built on hurd so it should have trigger this problem) <Pellescours>I know. It’s because on gcc they don’t have this ternary operation <dogtooth>I'm interested in hanging around and doing Hurd stuff. I'm still pretty new so I'll just try to chase a bug here or there and ask questions when I get stuck. <dogtooth>I was going to see about GSoC but I understand the deadline has already passed by. <dogtooth>The Hurd is very cool, I'm enjoying playing with it in qemu right now ***rekado_ is now known as rekado
<gnu_srs1>damo22: Not much is happening recently. Any ideas on how to make at least the rumpdisk boot startup/shutdown working? <damo22>i cant do much work on hurd this week, i am moving house <damo22>that said, we're getting closer to fixing the stat issue, and that will help shutdown/startup <Pellescours>now compile blocks with CLOCK_REALTIME not defined :D <youpi>that's a missing #include or #define <Pellescours>it’s because the corresponding include is done only if __linux__ is defined <youpi>that's just completely posix <youpi>there is no reason to use ifdefs for such thing <youpi>really there is no reason to have an ifdef, time.h is in posix since ages <youpi>possibly that conflicts with definitions above, but a #else would be enough <Pellescours>so except the two tools issues (patches are sent) we should no encounter problem for building rump <dogtooth>very cool @Pellescours, just trying to get a sense of when this chat is active <ThinkT510>dogtooth: there is a link in the /topic for channel logs too ***Emulatorman_ is now known as Emulatorman