nuta / resea

A microkernel-based hackable operating system.
Other
522 stars 29 forks source link

hello doesn't work #5

Closed ghost closed 4 years ago

ghost commented 4 years ago

Running hello completely blocks the shell.

static error_t run_app(const char *name) {
    char path[128];
    strncpy(path, "/apps/", sizeof(path));
    strncpy(&path[6], name, sizeof(path) - 6);
     TRACE ("AT %d", __LINE__);

    // Open the executable file.
    struct message m;
    m.type = FS_OPEN_MSG;
    m.fs_open.path = path;
    m.fs_open.len = strlen(path) + 1;
     TRACE ("AT %d", __LINE__);
    error_t err = ipc_call(fs_server, &m);
     TRACE ("AT %d", __LINE__);

My test code shows

[shell] AT 202 [shell] AT 209

In servers/shell/main.c at line 208 error_t err = ipc_call(fs_server, &m); doesn't return.

nuta commented 4 years ago

Could you share the whole kernel log? It's not reproducible in my environment.

nuta commented 4 years ago

Closing this issue since the implementation has been updated. Feel free to reopen if this problem still reproduces.