Record Detail

Runtime Error

prepare (1/3): 
finished

make (2/3): 
make: Entering directory '/out/build/driver'
clang -std=gnu11 -O2 -o driver driver.c
driver successfully constructed
make: Leaving directory '/out/build/driver'
make: Entering directory '/out/build/mumsh'
clang -std=gnu11 -O2 -Wall -Wextra -pedantic -Wno-unused-result -o mumsh main.c redirect.c read_command.c parse.c execute.c pipe.c internal_cmds.c
In file included from main.c:8:
./read_command.h:8:7: warning: no newline at end of file [-Wnewline-eof]
#endif
      ^
In file included from main.c:9:
./parse.h:8:7: warning: no newline at end of file [-Wnewline-eof]
#endif
      ^
In file included from main.c:10:
./execute.h:7:7: warning: no newline at end of file [-Wnewline-eof]
#endif
      ^
main.c:23:14: warning: variable length array folded to constant array as an extension [-Wgnu-folding-constant]
char command[MAXSIZE];
             ^~~~~~~
main.c:25:25: warning: unused parameter 'signo' [-Wunused-parameter]
void sigint_handler(int signo) {
                        ^
5 warnings generated.
In file included from redirect.c:10:
./internal_cmds.h:8:7: warning: no newline at end of file [-Wnewline-eof]
#endif
      ^
1 warning generated.
In file included from read_command.c:8:
./read_command.h:8:7: warning: no newline at end of file [-Wnewline-eof]
#endif
      ^
read_command.c:39:2: warning: no newline at end of file [-Wnewline-eof]
}
 ^
2 warnings generated.
In file included from parse.c:1:
./parse.h:8:7: warning: no newline at end of file [-Wnewline-eof]
#endif
      ^
parse.c:20:22: warning: expression which evaluates to zero treated as a null pointer constant of type 'char *' [-Wnon-literal-null-conversion]
    *parsedCommand = '\0';
                     ^~~~
parse.c:21:2: warning: no newline at end of file [-Wnewline-eof]
}
 ^
3 warnings generated.
In file included from execute.c:9:
./pipe.h:8:7: warning: no newline at end of file [-Wnewline-eof]
#endif
      ^
In file included from execute.c:10:
./internal_cmds.h:8:7: warning: no newline at end of file [-Wnewline-eof]
#endif
      ^
execute.c:73:2: warning: no newline at end of file [-Wnewline-eof]
}
 ^
execute.c:15:9: warning: unused variable 'pos' [-Wunused-variable]
    int pos = 0;
        ^
4 warnings generated.
In file included from pipe.c:1:
./pipe.h:8:7: warning: no newline at end of file [-Wnewline-eof]
#endif
      ^
In file included from pipe.c:11:
./internal_cmds.h:8:7: warning: no newline at end of file [-Wnewline-eof]
#endif
      ^
pipe.c:65:11: warning: unused variable 'pid' [-Wunused-variable]
    pid_t pid;
          ^
3 warnings generated.
In file included from internal_cmds.c:6:
./internal_cmds.h:8:7: warning: no newline at end of file [-Wnewline-eof]
#endif
      ^
internal_cmds.c:20:21: warning: variable length array folded to constant array as an extension [-Wgnu-folding-constant]
        char buffer[MAXPATHLENGTH];
                    ^~~~~~~~~~~~~
internal_cmds.c:29:2: warning: no newline at end of file [-Wnewline-eof]
}
 ^
3 warnings generated.
clang -std=gnu11 -O2 -Wall -Wextra -pedantic -Wno-unused-result -fsanitize=address -fno-omit-frame-pointer -fsanitize=undefined -fsanitize=integer -o mumsh_memory_check main.c redirect.c read_command.c parse.c execute.c pipe.c internal_cmds.c
In file included from main.c:8:
./read_command.h:8:7: warning: no newline at end of file [-Wnewline-eof]
#endif
      ^
In file included from main.c:9:
./parse.h:8:7: warning: no newline at end of file [-Wnewline-eof]
#endif
      ^
In file included from main.c:10:
./execute.h:7:7: warning: no newline at end of file [-Wnewline-eof]
#endif
      ^
main.c:23:14: warning: variable length array folded to constant array as an extension [-Wgnu-folding-constant]
char command[MAXSIZE];
             ^~~~~~~
main.c:25:25: warning: unused parameter 'signo' [-Wunused-parameter]
void sigint_handler(int signo) {
                        ^
5 warnings generated.
In file included from redirect.c:10:
./internal_cmds.h:8:7: warning: no newline at end of file [-Wnewline-eof]
#endif
      ^
1 warning generated.
In file included from read_command.c:8:
./read_command.h:8:7: warning: no newline at end of file [-Wnewline-eof]
#endif
      ^
read_command.c:39:2: warning: no newline at end of file [-Wnewline-eof]
}
 ^
2 warnings generated.
In file included from parse.c:1:
./parse.h:8:7: warning: no newline at end of file [-Wnewline-eof]
#endif
      ^
parse.c:20:22: warning: expression which evaluates to zero treated as a null pointer constant of type 'char *' [-Wnon-literal-null-conversion]
    *parsedCommand = '\0';
                     ^~~~
parse.c:21:2: warning: no newline at end of file [-Wnewline-eof]
}
 ^
3 warnings generated.
In file included from execute.c:9:
./pipe.h:8:7: warning: no newline at end of file [-Wnewline-eof]
#endif
      ^
In file included from execute.c:10:
./internal_cmds.h:8:7: warning: no newline at end of file [-Wnewline-eof]
#endif
      ^
execute.c:73:2: warning: no newline at end of file [-Wnewline-eof]
}
 ^
execute.c:15:9: warning: unused variable 'pos' [-Wunused-variable]
    int pos = 0;
        ^
4 warnings generated.
In file included from pipe.c:1:
./pipe.h:8:7: warning: no newline at end of file [-Wnewline-eof]
#endif
      ^
In file included from pipe.c:11:
./internal_cmds.h:8:7: warning: no newline at end of file [-Wnewline-eof]
#endif
      ^
pipe.c:65:11: warning: unused variable 'pid' [-Wunused-variable]
    pid_t pid;
          ^
3 warnings generated.
In file included from internal_cmds.c:6:
./internal_cmds.h:8:7: warning: no newline at end of file [-Wnewline-eof]
#endif
      ^
internal_cmds.c:20:21: warning: variable length array folded to constant array as an extension [-Wgnu-folding-constant]
        char buffer[MAXPATHLENGTH];
                    ^~~~~~~~~~~~~
internal_cmds.c:29:2: warning: no newline at end of file [-Wnewline-eof]
}
 ^
3 warnings generated.
mumsh successfully constructed
make: Leaving directory '/out/build/mumsh'
finished

clean (3/3): 
finished

all tasks finished, build successfully
# Status Time Cost Memory Cost
#1 Accepted Detail 13ms 5.992 MiB
#2 Accepted Detail 12ms 5.859 MiB
#3 Accepted Detail 13ms 5.883 MiB
#4 Accepted Detail 25ms 5.641 MiB
#5 Wrong Answer Detail 17ms 5.355 MiB
#6 Wrong Answer Detail 11ms 5.035 MiB
#7 Runtime Error (1) Detail 9ms 5.289 MiB
#8 Runtime Error (1) Detail 11ms 5.434 MiB
#9 Runtime Error (1) Detail 9ms 5.375 MiB
#10 Accepted Detail 13ms 4.48 MiB
#11 Accepted Detail 10ms 4.441 MiB
#12 Accepted Detail 18ms 5.148 MiB
#13 Accepted Detail 20ms 5.328 MiB
#14 Accepted Detail 19ms 5.254 MiB
#15 Accepted Detail 40ms 6.449 MiB
#16 Runtime Error (1) Detail 42ms 6.039 MiB
#17 Accepted Detail 39ms 5.547 MiB
#18 Runtime Error (1) Detail 23ms 5.32 MiB

Information

Submit By
Type
Submission
Homework
Project 1 Milestone 2
Language
GNU Make
Submit At
2020-09-26 12:37:16
Judged At
2020-09-26 12:37:16
Judged By
Score
110
Total Time
354ms
Peak Memory
6.449 MiB