Furyton / xv6-lab

implementation of xv6 labs from MIT 6.S081 2020
11 stars 2 forks source link

infinite recursion detected #6

Open yurneroma opened 2 years ago

yurneroma commented 2 years ago

have you ever met this error before ? and how are u fix it ?

Furyton commented 2 years ago

@yurneroma hi, I did the whole experiments using WSL2 on windows. and I never came across this error before.

I just rebuild the project successfully on a new enviroment (on windows WSL2) following the official instructions. So I am guessing this is related to the platforms and the corresponding library?

Wahhhaaaa commented 3 months ago

add __attribute__((noreturn)) at user/sh.c:58

`diff --git a/user/sh.c b/user/sh.c index 83dd513..c96dab0 100644 --- a/user/sh.c +++ b/user/sh.c @@ -54,6 +54,7 @@ void panic(char); struct cmd parsecmd(char*);

// Execute cmd. Never returns. attribute((noreturn)) void runcmd(struct cmd *cmd) { `