Project

General

Profile

Bug #11251

"zpool create" does a segmenation fault

Added by Hubert Garavel 4 months ago. Updated 3 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:

Description

Observed on a Dell Precision 5810 running OpenIndiana 2019.05

The following command

    # zpool create disk c5t1d0p0

causes a segmentation fault.

But the command

    # zpool create disk c5t1d0

works properly and does the job expected.

If the argument passed to the former command is incorrect, zpool should display
an error message rather than crashing abruptly.

History

#1

Updated by Toomas Soome 3 months ago

Hubert Garavel wrote:

Observed on a Dell Precision 5810 running OpenIndiana 2019.05

The following command
[...]
causes a segmentation fault.

But the command
[...]
works properly and does the job expected.

If the argument passed to the former command is incorrect, zpool should display
an error message rather than crashing abruptly.

This is indeed bug, we should never allow *p0 devices to be used for pool, the whole disk name should only end with 'dX'.

However, in my test case, the zpool did not crash, could you post the core?

#2

Updated by Hubert Garavel 3 months ago

The error message produced by "zpool create" with an a "p0" device is

Abort (core dumped)

Also available in: Atom PDF