-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
segfault when creating pool #1118
Comments
I don't get this segfault when I take out the "listsnaps=on" from the -o property. |
Okay, I now realize that I had totally wrong syntax for the comment. I'd argue that it still shouldn't segfault, though. |
Yeah it does seem to be the wrong syntax, basically it is crashing here:
Which is pretty much the line trying to tell you about the syntax problem:
It is easily patched with something like https://github.com/lundman/zfs-master/commit/b80557183fcbb05f4ebc0472723ae80a76403ec3
|
@jefferai It absolutely shouldn't segfault regardless of your syntax. @lundman I was going to say we should make the |
Incorrect syntax should never cause a segfault. In this case listing multiple comma delimited options after '-o' triggered the problem. For example: zpool create -o ashift=12,listsnaps=on This patch resolves the issue by wrapping the calls which use hdr with a NULL test. Signed-off-by: Brian Behlendorf <[email protected]> Closes openzfs#1118
…gent (openzfs#1118) build(deps): bump async-lock in /cmd/zfs_object_agent Bumps [async-lock](https://github.com/smol-rs/async-lock) from 2.7.0 to 2.8.0. - [Release notes](https://github.com/smol-rs/async-lock/releases) - [Changelog](https://github.com/smol-rs/async-lock/blob/master/CHANGELOG.md) - [Commits](smol-rs/async-lock@v2.7.0...v2.8.0) --- updated-dependencies: - dependency-name: async-lock dependency-type: indirect update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Hello,
I'm on Ubuntu 12.04 LTS using the current zfs/spl packages from the official PPA (version 0.6.0.86-0ubuntu1~precise1).
I get a repeated segmentation fault when I try to create the pool:
root@wiki:~# zpool create -o ashift=12,listsnaps=on -O atime=off,compression=lzjb,normalization=formD,utf8only=on -m /storage storage vdb
Segmentation fault
dmesg shows:
[ 2768.876276] zpool[2272]: segfault at 43c ip 00007f8f704f7d4f sp 00007fffc59f2110 error 6 in libc-2.15.so[7f8f703ef000+1b5000]
Please let me know how I can help debug this.
Thanks!
The text was updated successfully, but these errors were encountered: