serenity icon indicating copy to clipboard operation
serenity copied to clipboard

Mounting a hard drive without root permissions causes a crash

Open cqundefine opened this issue 3 years ago • 0 comments

When I tried to mount a hard drive image and forgot to change to root, I got an error (which is correct) and then I got a assertion failed which shouldn't happen.

The crash log: 123.931 CrashReporter(54:55): 0x00000012d43c502b: [/usr/lib/libsystem.so] syscall2 +0xb (syscall.cpp:25 => syscall.cpp:2 4) 123.937 CrashReporter(54:55): 0x0000000f11f5fee6: [/usr/lib/libc.so] abort +0x26 (stdlib.cpp:224) 123.941 CrashReporter(54:55): 0x0000000f11f661ee: [/usr/lib/libc.so] __assertion_failed.localalias +0x7e (assert.cpp:33) 123.946 CrashReporter(54:55): 0x000000096a4f7d6a: [/bin/mount] get_source_fd(AK::StringView) +0x16a (Variant.h:366 => Er ror.h:96 => Error.h:104 => mount.cpp:67) 123.954 CrashReporter(54:55): 0x000000096a4f861e: [/bin/mount] serenity_main(Main::Arguments) +0x2ee (mount.cpp:225) 123.961 CrashReporter(54:55): 0x000000096a4f74da: [/bin/mount] main +0x9a (Main.cpp:39) 123.967 CrashReporter(54:55): 0x000000096a4f7718: [/bin/mount] _entry +0x48 (crt0.cpp:43)

cqundefine avatar Aug 27 '22 16:08 cqundefine