Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation fault compiling suckless/ubase package #90

Open
ghost opened this issue Aug 20, 2017 · 1 comment
Open

Segmentation fault compiling suckless/ubase package #90

ghost opened this issue Aug 20, 2017 · 1 comment

Comments

@ghost
Copy link

ghost commented Aug 20, 2017

My mail:
Hello Rui
I am Otto.
I have tried your compiler - it looks great!
But I think I found a bug.
I have tried to compile "suckless" project's ubase package
http://git.suckless.org/ubase/
It doesn't compile mount.c - it gives a segfault :(

(libutil/explicit_bzero.c don't compile - gives parse error or internal error)
probably it is not implemented :(

Thank you for your compiler!

mount.c-gdb-out.txt
mount.c-gdb-out2.txt
ubase-e3dacbb5_tmp_8cc.tar.gz

@ghost
Copy link
Author

ghost commented Aug 23, 2017

it seems the process stops at "defaults" in this struct
struct {
const char *opt;
const char *notopt;
unsigned long v;
} optnames[] = {
{ "defaults", NULL, 0 },
{ "remount", NULL, MS_REMOUNT },
{ "ro", "rw", MS_RDONLY },
{ "sync", "async", MS_SYNCHRONOUS },
{ "dirsync", NULL, MS_DIRSYNC },
{ "nodev", "dev", MS_NODEV },
{ "noatime", "atime", MS_NOATIME },
{ "nodiratime", "diratime", MS_NODIRATIME },
{ "noexec", "exec", MS_NOEXEC },
{ "nosuid", "suid", MS_NOSUID },
{ "mand", "nomand", MS_MANDLOCK },
{ "relatime", "norelatime", MS_RELATIME },
{ "bind", NULL, MS_BIND },
{ NULL, NULL, 0 }
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants