Opened 16 years ago

Closed 16 years ago

Last modified 7 years ago

#1791 closed bug (fixed)

sqlite locking problem

Reported by: kaliber Owned by: axeld
Priority: high Milestone: R1
Component: System/Kernel Version: R1/pre-alpha1
Keywords: Cc: kaliber
Blocked By: Blocking:
Platform: All

Description

First of all I know that sqlite is not a part of Haiku, but maybe someone could help to run sqlite on Haiku.

Here is a strace output:

SQLite version 3.4.2
Enter ".help" for instructions
[  7715] _kern_write(0x1, 0xffffffffffffffff, 0x1802c420, 0x34) = 0x00000034 (42 us)
[  7715] _kern_acquire_sem(0x59769) = 0x00000000 No error (5 us)
[  7715] _kern_release_sem(0x59769) = 0x00000000 No error (5 us)
sqlite> [  7715] _kern_write(0x1, 0xffffffffffffffff, 0x1802c420, 0x8) = 0x00000008 (46 us)
[  7715] _kern_read_stat(0x0, (nil), false, 0x7ffe664c, 0x3c) = 0x00000000 No error (40 us)
[  7715] _kern_ioctl(0x0, TCGETA, 0x7ffe65fc, 0x20) = 0x00000000 No error (20 us)

[  7715] _kern_read(0x0, 0xffffffffffffffff, 0x1802e800, 0x1) = 0x00000001 (5762338 us)
sqlite> [  7715] _kern_write(0x1, 0xffffffffffffffff, 0x1802c420, 0x8) = 0x00000008 (38 us)
CREATE table x(y text);
[  7715] _kern_read(0x0, 0xffffffffffffffff, 0x1802e800, 0x18) = 0x00000018 (10193876 us)
[  7715] _kern_resize_area(0x247de, 0x33000) = 0x00000000 No error (38 us)
[  7715] _kern_getcwd(0x18030be0, 0x1388) = 0x00000000 No error (488 us)
[  7715] _kern_open(0xffffffff, "/boot/home/sqlite-3.4.2/db", 0x8202, 0x1a4) = 0x00000003 (5589 us)
[  7715] _kern_fcntl(0x3, 0x2, 0x0) = 0x00000000 No error (171 us)
[  7715] _kern_fcntl(0x3, 0x4, 0x1) = 0x00000000 No error (9 us)
[  7715] _kern_read_stat(0x3, (nil), false, 0x7ffe6514, 0x3c) = 0x00000000 No error (28 us)
[  7715] _kern_seek(0x3, 0x0, 0x0) = 0x400000024 (26 us)
[  7715] _kern_read(0x3, 0xffffffffffffffff, 0x7ffe6748, 0x0) = 0x00000000 (16 us)
[  7715] _kern_resize_area(0x247de, 0x53000) = 0x00000000 No error (39 us)
[  7715] _kern_fcntl(0x3, 0x80, 0x7ffe6264) = 0x00000000 No error (699 us)
[  7715] _kern_fcntl(0x3, 0x80, 0x7ffe6264) = 0x00000000 No error (256 us)
[  7715] _kern_fcntl(0x3, 0x80, 0x7ffe6264) = 0x00000000 No error (328 us)
[  7715] _kern_access("/boot/home/sqlite-3.4.2/db-journal", 0x0) = 0x80006003 No such file or directory (136 us)
[  7715] _kern_read_stat(0x3, (nil), false, 0x7ffe627c, 0x3c) = 0x00000000 No error (42 us)
[  7715] _kern_fcntl(0x3, 0x80, 0x7ffe62f4) = 0x80000005 Invalid Argument (99 us)
[  7715] _kern_access("/boot/home/sqlite-3.4.2/db-journal", 0x0) = 0x80006003 No such file or directory (219 us)
[  7715] _kern_read_stat(0x3, (nil), false, 0x7ffe61cc, 0x3c) = 0x00000000 No error (55 us)
[  7715] _kern_fcntl(0x3, 0x80, 0x7ffe62f4) = 0x80000002 Permission denied (90 us)
[  7715] _kern_fcntl(0x3, 0x80, 0x7ffe6234) = 0x80000005 Invalid Argument (49 us)
SQL error: database is locked
[  7715] _kern_write(0x1, 0xffffffffffffffff, 0x1802c420, 0x1e) = 0x0000001e (39 us)
sqlite> [  7715] _kern_write(0x1, 0xffffffffffffffff, 0x1802c420, 0x8) = 0x00000008 (31 us)

Bug in fcntl?

Change History (10)

comment:1 by axeld, 16 years ago

Component: - GeneralSystem/Kernel
Priority: normalhigh

Do you have a link to the part of the source of sqlite in question here? It could very well be that our fcntl() is checking its arguments incorrectly.

comment:2 by kaliber, 16 years ago

Seems that there is only newer version (3.5.6) on sqlite.org site. Try http://downloads.openwrt.org/sources/sqlite-3.4.2.tar.gz

comment:3 by axeld, 16 years ago

Can you please also post an executable here that I can test under Haiku? That would help me finding out what went wrong exactly - at least the sqlite source looks definitely okay.

comment:4 by kaliber, 16 years ago

Cc: kaliber added

I don't have access to my computer now. But you can simply compile sqlite without any patches:

./configure --prefix=/boot/home/config --build=i586-pc-beos && make

./sqlite3 dbfile

sqlite> CREATE TABLE x(y TEXT);

comment:5 by axeld, 16 years ago

Okay, thanks, I can reproduce the problem now (I thought the BeOS version would need some patches to have a work around for the missing advisory file locking implementation).

comment:6 by axeld, 16 years ago

Resolution: fixed
Status: newclosed

Fixed in hrev24020.

comment:7 by kaliber, 16 years ago

Thanks!

comment:8 by miqlas, 7 years ago

Maybe it is related: the latest ruby cannot load any gem, i see the following in the Terminal:

~ ❯❯❯ uname -a
Haiku shredder 1 hrev50788 Dec 24 2016 19:53:03 x86_64 x86_64 Haiku
~ ❯❯❯ ruby --version
ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-haiku]
~ ❯❯❯ ruby gem
<internal:gem_prelude>:4:in `require': Operation not supported -- /packages/ruby-2.4.0-1/.self/lib/ruby/2.4.0/rubygems.rb (LoadError)
        from <internal:gem_prelude>:4:in `<internal:gem_prelude>'

While in strace:

~ ❯❯❯ strace ruby gem
[  4348] _kern_set_area_protection(0x10138, 0x5) = 0x0 No error (6 us)
[  4348] _kern_set_area_protection(0x1013a, 0x5) = 0x0 No error (6 us)
[  4348] _kern_set_area_protection(0x1013d, 0x5) = 0x0 No error (14 us)
[  4348] _kern_set_area_protection(0x10140, 0x5) = 0x0 No error (15 us)
[  4348] _kern_set_area_protection(0x10143, 0x5) = 0x0 No error (5 us)
[  4348] _kern_set_area_protection(0x10145, 0x5) = 0x0 No error (9 us)
[  4348] _kern_set_area_protection(0x10148, 0x5) = 0x0 No error (5 us)
[  4348] _kern_get_system_info(0x7ff5ee05f2d0) = 0x0 No error (4 us)
[  4348] _kern_get_system_info(0x7ff5ee05f0e0) = 0x0 No error (3 us)
[  4348] _kern_reserve_address_range([0xe9b65e7000], 0x7, 0x1000000000) = 0x0 No error (4 us)
[  4348] _kern_create_area("heap", 0x128b5cade80, 0x1, 0x40000, 0x0, 0x3) = 0x1014c (12 us)
[  4348] _kern_resize_area(0x1014c, 0x60000) = 0x0 No error (5 us)
[  4348] _kern_get_next_image_info(0x0, [0x1], 0x7ff5ee05f040, 0x450) = 0x0 No error (2 us)
[  4348] _kern_read_stat(0xffffffff, "/boot/system/bin/lib/libroot-addon-icu.so", false, 0x7ff5ee05d860, 0x80) = 0x80006003 No such file or directory (19 us)
[  4348] _kern_read_stat(0xffffffff, "/boot/home/config/non-packaged/lib/libroot-addon-icu.so", false, 0x7ff5ee05d860, 0x80) = 0x80006003 No such file or directory (11 us)
[  4348] _kern_read_stat(0xffffffff, "/boot/home/config/lib/libroot-addon-icu.so", false, 0x7ff5ee05d860, 0x80) = 0x80006003 No such file or directory (7 us)
[  4348] _kern_read_stat(0xffffffff, "/boot/system/non-packaged/lib/libroot-addon-icu.so", false, 0x7ff5ee05d860, 0x80) = 0x80006003 No such file or directory (11 us)
[  4348] _kern_read_stat(0xffffffff, "/boot/system/lib/libroot-addon-icu.so", false, 0x7ff5ee05d860, 0x80) = 0x0 No error (11 us)
[  4348] _kern_open(0xffffffff, "/boot/system/lib/libroot-addon-icu.so", 0x0, 0x0) = 0x3 (10 us)
[  4348] _kern_read_stat(0x3, (nil), true, 0x7ff5ee05d960, 0x80) = 0x0 No error (1 us)
[  4348] _kern_normalize_path("/boot/system/lib/libroot-addon-icu.so", true, 0x7ff5ee05ef20) = 0x0 No error (26 us)
[  4348] _kern_read(0x3, 0x0, 0x7ff5ee05dee0, 0x40) = 0x40 (6 us)
[  4348] _kern_read(0x3, 0x40, 0x7ff5ee05df20, 0xa8) = 0xa8 (3 us)
[  4348] _kern_reserve_address_range([0x13ddfb0c000], 0x7, 0x212000) = 0x0 No error (4 us)
[  4348] _kern_map_file("libroot-addon-icu.so_seg0ro", 0x7ff5ee05de40, 0x1, 0x11000, 0x1003, 0x1, true, 0x0, 0x0) = 0x1014d (11 us)
[  4348] _kern_map_file("libroot-addon-icu.so_seg1rw", 0x7ff5ee05de40, 0x1, 0x1000, 0x3, 0x1, true, 0x0, 0x8) = 0x1014e (9 us)
[  4348] _kern_read_stat(0x3, (nil), false, 0x7ff5ee05ddd0, 0x80) = 0x0 No error (2 us)
[  4348] _kern_register_image(0x7ff5ee05d960, 0x470) = 0x3e11 (6 us)
[  4348] _kern_close(0x3) = 0x0 No error (3 us)
[  4348] _kern_read_stat(0xffffffff, "/boot/system/bin/lib/libicudata.so.57", false, 0x7ff5ee05d800, 0x80) = 0x80006003 No such file or directory (10 us)
[  4348] _kern_read_stat(0xffffffff, "/boot/home/config/non-packaged/lib/libicudata.so.57", false, 0x7ff5ee05d800, 0x80) = 0x80006003 No such file or directory (10 us)
[  4348] _kern_read_stat(0xffffffff, "/boot/home/config/lib/libicudata.so.57", false, 0x7ff5ee05d800, 0x80) = 0x80006003 No such file or directory (7 us)
[  4348] _kern_read_stat(0xffffffff, "/boot/system/non-packaged/lib/libicudata.so.57", false, 0x7ff5ee05d800, 0x80) = 0x80006003 No such file or directory (9 us)
[  4348] _kern_read_stat(0xffffffff, "/boot/system/lib/libicudata.so.57", false, 0x7ff5ee05d800, 0x80) = 0x0 No error (10 us)
[  4348] _kern_read_link(0xffffffff, "/boot/system/lib/libicudata.so.57", 0x7ff5ee05d3f0, [0x12]) = 0x0 No error (12 us)
[  4348] _kern_open(0xffffffff, "/boot/system/lib/libicudata.so.57.1", 0x0, 0x0) = 0x3 (10 us)
[  4348] _kern_read_stat(0x3, (nil), true, 0x7ff5ee05d900, 0x80) = 0x0 No error (1 us)
[  4348] _kern_normalize_path("/boot/system/lib/libicudata.so.57.1", true, 0x7ff5ee05eec0) = 0x0 No error (22 us)
[  4348] _kern_read(0x3, 0x0, 0x7ff5ee05de80, 0x40) = 0x40 (6 us)
[  4348] _kern_read(0x3, 0x40, 0x7ff5ee05dec0, 0xe0) = 0xe0 (3 us)
[  4348] _kern_reserve_address_range([0xdd5abbd000], 0x7, 0x1a7e000) = 0x0 No error (3 us)
[  4348] _kern_map_file("libicudata.so.57.1_seg0ro", 0x7ff5ee05dde0, 0x1, 0x187e000, 0x1003, 0x1, true, 0x0, 0x0) = 0x1014f (273 us)
[  4348] _kern_map_file("libicudata.so.57.1_seg1rw", 0x7ff5ee05dde0, 0x1, 0x1000, 0x3, 0x1, true, 0x0, 0x8) = 0x10150 (10 us)
[  4348] _kern_read_stat(0x3, (nil), false, 0x7ff5ee05dd70, 0x80) = 0x0 No error (2 us)
[  4348] _kern_register_image(0x7ff5ee05d900, 0x470) = 0x3e12 (5 us)
[  4348] _kern_close(0x3) = 0x0 No error (2 us)
[  4348] _kern_read_stat(0xffffffff, "/boot/system/bin/lib/libicui18n.so.57", false, 0x7ff5ee05d800, 0x80) = 0x80006003 No such file or directory (9 us)
[  4348] _kern_read_stat(0xffffffff, "/boot/home/config/non-packaged/lib/libicui18n.so.57", false, 0x7ff5ee05d800, 0x80) = 0x80006003 No such file or directory (10 us)
[  4348] _kern_read_stat(0xffffffff, "/boot/home/config/lib/libicui18n.so.57", false, 0x7ff5ee05d800, 0x80) = 0x80006003 No such file or directory (6 us)
[  4348] _kern_read_stat(0xffffffff, "/boot/system/non-packaged/lib/libicui18n.so.57", false, 0x7ff5ee05d800, 0x80) = 0x80006003 No such file or directory (9 us)
[  4348] _kern_read_stat(0xffffffff, "/boot/system/lib/libicui18n.so.57", false, 0x7ff5ee05d800, 0x80) = 0x0 No error (11 us)
[  4348] _kern_read_link(0xffffffff, "/boot/system/lib/libicui18n.so.57", 0x7ff5ee05d3f0, [0x12]) = 0x0 No error (10 us)
[  4348] _kern_open(0xffffffff, "/boot/system/lib/libicui18n.so.57.1", 0x0, 0x0) = 0x3 (10 us)
[  4348] _kern_read_stat(0x3, (nil), true, 0x7ff5ee05d900, 0x80) = 0x0 No error (1 us)
[  4348] _kern_normalize_path("/boot/system/lib/libicui18n.so.57.1", true, 0x7ff5ee05eec0) = 0x0 No error (22 us)
[  4348] _kern_read(0x3, 0x0, 0x7ff5ee05de80, 0x40) = 0x40 (9 us)
[  4348] _kern_read(0x3, 0x40, 0x7ff5ee05dec0, 0xa8) = 0xa8 (3 us)
[  4348] _kern_reserve_address_range([0x8362a3b000], 0x7, 0x491000) = 0x0 No error (3 us)
[  4348] _kern_map_file("libicui18n.so.57.1_seg0ro", 0x7ff5ee05dde0, 0x1, 0x27d000, 0x1003, 0x1, true, 0x0, 0x0) = 0x10151 (22 us)
[  4348] _kern_map_file("libicui18n.so.57.1_seg1rw", 0x7ff5ee05dde0, 0x1, 0x15000, 0x3, 0x1, true, 0x0, 0x8) = 0x10152 (10 us)
[  4348] _kern_read_stat(0x3, (nil), false, 0x7ff5ee05dd70, 0x80) = 0x0 No error (2 us)
[  4348] _kern_register_image(0x7ff5ee05d900, 0x470) = 0x3e13 (5 us)
[  4348] _kern_close(0x3) = 0x0 No error (3 us)
[  4348] _kern_read_stat(0xffffffff, "/boot/system/bin/lib/libicuio.so.57", false, 0x7ff5ee05d800, 0x80) = 0x80006003 No such file or directory (8 us)
[  4348] _kern_read_stat(0xffffffff, "/boot/home/config/non-packaged/lib/libicuio.so.57", false, 0x7ff5ee05d800, 0x80) = 0x80006003 No such file or directory (11 us)
[  4348] _kern_read_stat(0xffffffff, "/boot/home/config/lib/libicuio.so.57", false, 0x7ff5ee05d800, 0x80) = 0x80006003 No such file or directory (7 us)
[  4348] _kern_read_stat(0xffffffff, "/boot/system/non-packaged/lib/libicuio.so.57", false, 0x7ff5ee05d800, 0x80) = 0x80006003 No such file or directory (9 us)
[  4348] _kern_read_stat(0xffffffff, "/boot/system/lib/libicuio.so.57", false, 0x7ff5ee05d800, 0x80) = 0x0 No error (9 us)
[  4348] _kern_read_link(0xffffffff, "/boot/system/lib/libicuio.so.57", 0x7ff5ee05d3f0, [0x10]) = 0x0 No error (10 us)
[  4348] _kern_open(0xffffffff, "/boot/system/lib/libicuio.so.57.1", 0x0, 0x0) = 0x3 (11 us)
[  4348] _kern_read_stat(0x3, (nil), true, 0x7ff5ee05d900, 0x80) = 0x0 No error (1 us)
[  4348] _kern_normalize_path("/boot/system/lib/libicuio.so.57.1", true, 0x7ff5ee05eec0) = 0x0 No error (22 us)
[  4348] _kern_read(0x3, 0x0, 0x7ff5ee05de80, 0x40) = 0x40 (4 us)
[  4348] _kern_read(0x3, 0x40, 0x7ff5ee05dec0, 0xa8) = 0xa8 (3 us)
[  4348] _kern_reserve_address_range([0x19d570ab000], 0x7, 0x20d000) = 0x0 No error (4 us)
[  4348] _kern_map_file("libicuio.so.57.1_seg0ro", 0x7ff5ee05dde0, 0x1, 0xc000, 0x1003, 0x1, true, 0x0, 0x0) = 0x10153 (10 us)
[  4348] _kern_map_file("libicuio.so.57.1_seg1rw", 0x7ff5ee05dde0, 0x1, 0x2000, 0x3, 0x1, true, 0x0, 0x8) = 0x10154 (9 us)
[  4348] _kern_read_stat(0x3, (nil), false, 0x7ff5ee05dd70, 0x80) = 0x0 No error (2 us)
[  4348] _kern_register_image(0x7ff5ee05d900, 0x470) = 0x3e14 (4 us)
[  4348] _kern_close(0x3) = 0x0 No error (2 us)
[  4348] _kern_read_stat(0xffffffff, "/boot/system/bin/lib/libicule.so.57", false, 0x7ff5ee05d800, 0x80) = 0x80006003 No such file or directory (10 us)
[  4348] _kern_read_stat(0xffffffff, "/boot/home/config/non-packaged/lib/libicule.so.57", false, 0x7ff5ee05d800, 0x80) = 0x80006003 No such file or directory (9 us)
[  4348] _kern_read_stat(0xffffffff, "/boot/home/config/lib/libicule.so.57", false, 0x7ff5ee05d800, 0x80) = 0x80006003 No such file or directory (7 us)
[  4348] _kern_read_stat(0xffffffff, "/boot/system/non-packaged/lib/libicule.so.57", false, 0x7ff5ee05d800, 0x80) = 0x80006003 No such file or directory (9 us)
[  4348] _kern_read_stat(0xffffffff, "/boot/system/lib/libicule.so.57", false, 0x7ff5ee05d800, 0x80) = 0x0 No error (10 us)
[  4348] _kern_read_link(0xffffffff, "/boot/system/lib/libicule.so.57", 0x7ff5ee05d3f0, [0x10]) = 0x0 No error (10 us)
[  4348] _kern_open(0xffffffff, "/boot/system/lib/libicule.so.57.1", 0x0, 0x0) = 0x3 (11 us)
[  4348] _kern_read_stat(0x3, (nil), true, 0x7ff5ee05d900, 0x80) = 0x0 No error (1 us)
[  4348] _kern_normalize_path("/boot/system/lib/libicule.so.57.1", true, 0x7ff5ee05eec0) = 0x0 No error (21 us)
[  4348] _kern_read(0x3, 0x0, 0x7ff5ee05de80, 0x40) = 0x40 (5 us)
[  4348] _kern_read(0x3, 0x40, 0x7ff5ee05dec0, 0xa8) = 0xa8 (3 us)
[  4348] _kern_reserve_address_range([0x643fd7b000], 0x7, 0x258000) = 0x0 No error (3 us)
[  4348] _kern_map_file("libicule.so.57.1_seg0ro", 0x7ff5ee05dde0, 0x1, 0x55000, 0x1003, 0x1, true, 0x0, 0x0) = 0x10155 (10 us)
[  4348] _kern_map_file("libicule.so.57.1_seg1rw", 0x7ff5ee05dde0, 0x1, 0x3000, 0x3, 0x1, true, 0x0, 0x8) = 0x10156 (9 us)
[  4348] _kern_read_stat(0x3, (nil), false, 0x7ff5ee05dd70, 0x80) = 0x0 No error (1 us)
[  4348] _kern_register_image(0x7ff5ee05d900, 0x470) = 0x3e15 (4 us)
[  4348] _kern_close(0x3) = 0x0 No error (3 us)
[  4348] _kern_read_stat(0xffffffff, "/boot/system/bin/lib/libiculx.so.57", false, 0x7ff5ee05d800, 0x80) = 0x80006003 No such file or directory (9 us)
[  4348] _kern_read_stat(0xffffffff, "/boot/home/config/non-packaged/lib/libiculx.so.57", false, 0x7ff5ee05d800, 0x80) = 0x80006003 No such file or directory (10 us)
[  4348] _kern_read_stat(0xffffffff, "/boot/home/config/lib/libiculx.so.57", false, 0x7ff5ee05d800, 0x80) = 0x80006003 No such file or directory (7 us)
[  4348] _kern_read_stat(0xffffffff, "/boot/system/non-packaged/lib/libiculx.so.57", false, 0x7ff5ee05d800, 0x80) = 0x80006003 No such file or directory (9 us)
[  4348] _kern_read_stat(0xffffffff, "/boot/system/lib/libiculx.so.57", false, 0x7ff5ee05d800, 0x80) = 0x0 No error (9 us)
[  4348] _kern_read_link(0xffffffff, "/boot/system/lib/libiculx.so.57", 0x7ff5ee05d3f0, [0x10]) = 0x0 No error (10 us)
[  4348] _kern_open(0xffffffff, "/boot/system/lib/libiculx.so.57.1", 0x0, 0x0) = 0x3 (10 us)
[  4348] _kern_read_stat(0x3, (nil), true, 0x7ff5ee05d900, 0x80) = 0x0 No error (2 us)
[  4348] _kern_normalize_path("/boot/system/lib/libiculx.so.57.1", true, 0x7ff5ee05eec0) = 0x0 No error (21 us)
[  4348] _kern_read(0x3, 0x0, 0x7ff5ee05de80, 0x40) = 0x40 (4 us)
[  4348] _kern_read(0x3, 0x40, 0x7ff5ee05dec0, 0xa8) = 0xa8 (3 us)
[  4348] _kern_reserve_address_range([0x16b8b9e1000], 0x7, 0x20c000) = 0x0 No error (4 us)
[  4348] _kern_map_file("libiculx.so.57.1_seg0ro", 0x7ff5ee05dde0, 0x1, 0xb000, 0x1003, 0x1, true, 0x0, 0x0) = 0x10157 (9 us)
[  4348] _kern_map_file("libiculx.so.57.1_seg1rw", 0x7ff5ee05dde0, 0x1, 0x1000, 0x3, 0x1, true, 0x0, 0x8) = 0x10158 (9 us)
[  4348] _kern_read_stat(0x3, (nil), false, 0x7ff5ee05dd70, 0x80) = 0x0 No error (2 us)
[  4348] _kern_register_image(0x7ff5ee05d900, 0x470) = 0x3e16 (5 us)
[  4348] _kern_close(0x3) = 0x0 No error (2 us)
[  4348] _kern_read_stat(0xffffffff, "/boot/system/bin/lib/libicutu.so.57", false, 0x7ff5ee05d800, 0x80) = 0x80006003 No such file or directory (9 us)
[  4348] _kern_read_stat(0xffffffff, "/boot/home/config/non-packaged/lib/libicutu.so.57", false, 0x7ff5ee05d800, 0x80) = 0x80006003 No such file or directory (9 us)
[  4348] _kern_read_stat(0xffffffff, "/boot/home/config/lib/libicutu.so.57", false, 0x7ff5ee05d800, 0x80) = 0x80006003 No such file or directory (6 us)
[  4348] _kern_read_stat(0xffffffff, "/boot/system/non-packaged/lib/libicutu.so.57", false, 0x7ff5ee05d800, 0x80) = 0x80006003 No such file or directory (9 us)
[  4348] _kern_read_stat(0xffffffff, "/boot/system/lib/libicutu.so.57", false, 0x7ff5ee05d800, 0x80) = 0x0 No error (10 us)
[  4348] _kern_read_link(0xffffffff, "/boot/system/lib/libicutu.so.57", 0x7ff5ee05d3f0, [0x10]) = 0x0 No error (10 us)
[  4348] _kern_open(0xffffffff, "/boot/system/lib/libicutu.so.57.1", 0x0, 0x0) = 0x3 (10 us)
[  4348] _kern_read_stat(0x3, (nil), true, 0x7ff5ee05d900, 0x80) = 0x0 No error (2 us)
[  4348] _kern_normalize_path("/boot/system/lib/libicutu.so.57.1", true, 0x7ff5ee05eec0) = 0x0 No error (22 us)
[  4348] _kern_read(0x3, 0x0, 0x7ff5ee05de80, 0x40) = 0x40 (4 us)
[  4348] _kern_read(0x3, 0x40, 0x7ff5ee05dec0, 0xa8) = 0xa8 (3 us)
[  4348] _kern_reserve_address_range([0xaa8c96e000], 0x7, 0x263000) = 0x0 No error (3 us)
[  4348] _kern_map_file("libicutu.so.57.1_seg0ro", 0x7ff5ee05dde0, 0x1, 0x2f000, 0x1003, 0x1, true, 0x0, 0x0) = 0x10159 (11 us)
[  4348] _kern_map_file("libicutu.so.57.1_seg1rw", 0x7ff5ee05dde0, 0x1, 0x2000, 0x3, 0x1, true, 0x0, 0x8) = 0x1015a (10 us)
[  4348] _kern_create_area("libicutu.so.57.1_seg2rw", 0x7ff5ee05dde0, 0x1, 0x32000, 0x0, 0x3) = 0x1015b (6 us)
[  4348] _kern_read_stat(0x3, (nil), false, 0x7ff5ee05dd70, 0x80) = 0x0 No error (1 us)
[  4348] _kern_register_image(0x7ff5ee05d900, 0x470) = 0x3e17 (5 us)
[  4348] _kern_close(0x3) = 0x0 No error (2 us)
[  4348] _kern_read_stat(0xffffffff, "/boot/system/bin/lib/libicuuc.so.57", false, 0x7ff5ee05d800, 0x80) = 0x80006003 No such file or directory (10 us)
[  4348] _kern_read_stat(0xffffffff, "/boot/home/config/non-packaged/lib/libicuuc.so.57", false, 0x7ff5ee05d800, 0x80) = 0x80006003 No such file or directory (9 us)
[  4348] _kern_read_stat(0xffffffff, "/boot/home/config/lib/libicuuc.so.57", false, 0x7ff5ee05d800, 0x80) = 0x80006003 No such file or directory (7 us)
[  4348] _kern_read_stat(0xffffffff, "/boot/system/non-packaged/lib/libicuuc.so.57", false, 0x7ff5ee05d800, 0x80) = 0x80006003 No such file or directory (8 us)
[  4348] _kern_read_stat(0xffffffff, "/boot/system/lib/libicuuc.so.57", false, 0x7ff5ee05d800, 0x80) = 0x0 No error (10 us)
[  4348] _kern_read_link(0xffffffff, "/boot/system/lib/libicuuc.so.57", 0x7ff5ee05d3f0, [0x10]) = 0x0 No error (10 us)
[  4348] _kern_open(0xffffffff, "/boot/system/lib/libicuuc.so.57.1", 0x0, 0x0) = 0x3 (111 us)
[  4348] _kern_read_stat(0x3, (nil), true, 0x7ff5ee05d900, 0x80) = 0x0 No error (2 us)
[  4348] _kern_normalize_path("/boot/system/lib/libicuuc.so.57.1", true, 0x7ff5ee05eec0) = 0x0 No error (22 us)
[  4348] _kern_read(0x3, 0x0, 0x7ff5ee05de80, 0x40) = 0x40 (7 us)
[  4348] _kern_read(0x3, 0x40, 0x7ff5ee05dec0, 0xa8) = 0xa8 (3 us)
[  4348] _kern_reserve_address_range([0x82e80a9000], 0x7, 0x3ac000) = 0x0 No error (3 us)
[  4348] _kern_map_file("libicuuc.so.57.1_seg0ro", 0x7ff5ee05dde0, 0x1, 0x198000, 0x1003, 0x1, true, 0x0, 0x0) = 0x1015c (17 us)
[  4348] _kern_map_file("libicuuc.so.57.1_seg1rw", 0x7ff5ee05dde0, 0x1, 0x15000, 0x3, 0x1, true, 0x0, 0x8) = 0x1015d (12 us)
[  4348] _kern_read_stat(0x3, (nil), false, 0x7ff5ee05dd70, 0x80) = 0x0 No error (2 us)
[  4348] _kern_register_image(0x7ff5ee05d900, 0x470) = 0x3e18 (5 us)
[  4348] _kern_close(0x3) = 0x0 No error (2 us)
[  4348] _kern_image_relocated(0x3e12) (1 us)
[  4348] _kern_image_relocated(0x3e18) (3 us)
[  4348] _kern_create_area("rld heap", 0x7ff5ee05f238, 0x6, 0x10000, 0x0, 0x3) = 0x1015e (13 us)
[  4348] _kern_image_relocated(0x3e13) (2 us)
[  4348] _kern_image_relocated(0x3e14) (1 us)
[  4348] _kern_image_relocated(0x3e15) (1 us)
[  4348] _kern_image_relocated(0x3e16) (1 us)
[  4348] _kern_image_relocated(0x3e17) (1 us)
[  4348] _kern_image_relocated(0x3e11) (1 us)
[  4348] _kern_set_area_protection(0x1014d, 0x5) = 0x0 No error (8 us)
[  4348] _kern_set_area_protection(0x1014f, 0x5) = 0x0 No error (8 us)
[  4348] _kern_set_area_protection(0x10151, 0x5) = 0x0 No error (14 us)
[  4348] _kern_set_area_protection(0x10153, 0x5) = 0x0 No error (5 us)
[  4348] _kern_set_area_protection(0x10155, 0x5) = 0x0 No error (8 us)
[  4348] _kern_set_area_protection(0x10157, 0x5) = 0x0 No error (6 us)
[  4348] _kern_set_area_protection(0x10159, 0x5) = 0x0 No error (6 us)
[  4348] _kern_set_area_protection(0x1015c, 0x5) = 0x0 No error (9 us)
[  4348] _kern_resize_area(0x1014c, 0x80000) = 0x0 No error (5 us)
[  4348] _kern_resize_area(0x1014c, 0xa0000) = 0x0 No error (5 us)
[  4348] _kern_read_stat(0x0, (nil), false, 0x7ff5ee05f4a0, 0x80) = 0x0 No error (3 us)
[  4348] _kern_read_stat(0x1, (nil), false, 0x7ff5ee05f4a0, 0x80) = 0x0 No error (1 us)
[  4348] _kern_read_stat(0x2, (nil), false, 0x7ff5ee05f4a0, 0x80) = 0x0 No error (1 us)
[  4348] _kern_get_thread_info(0x10fc, 0x7ff5ee05f490) = 0x0 No error (2 us)
[  4348] _kern_sigaction(0x1b, 0x7ff5ee05f410, 0x7ff5ee05f3f0) = 0x0 No error (2 us)
[  4348] _kern_resize_area(0x1014c, 0x1d0000) = 0x0 No error (5 us)
[  4348] _kern_resize_area(0x1014c, 0x1e0000) = 0x0 No error (4 us)
[  4348] _kern_resize_area(0x1014c, 0x1f0000) = 0x0 No error (4 us)
[  4348] _kern_resize_area(0x1014c, 0x200000) = 0x0 No error (4 us)
[  4348] _kern_resize_area(0x1014c, 0x210000) = 0x0 No error (4 us)
[  4348] _kern_resize_area(0x1014c, 0x220000) = 0x0 No error (4 us)
[  4348] _kern_resize_area(0x1014c, 0x230000) = 0x0 No error (4 us)
[  4348] _kern_resize_area(0x1014c, 0x240000) = 0x0 No error (4 us)
[  4348] _kern_resize_area(0x1014c, 0x250000) = 0x0 No error (4 us)
[  4348] _kern_resize_area(0x1014c, 0x260000) = 0x0 No error (3 us)
[  4348] _kern_resize_area(0x1014c, 0x270000) = 0x0 No error (3 us)
[  4348] _kern_resize_area(0x1014c, 0x280000) = 0x0 No error (3 us)
[  4348] _kern_resize_area(0x1014c, 0x290000) = 0x0 No error (3 us)
[  4348] _kern_resize_area(0x1014c, 0x2a0000) = 0x0 No error (4 us)
[  4348] _kern_resize_area(0x1014c, 0x2b0000) = 0x0 No error (4 us)
[  4348] _kern_resize_area(0x1014c, 0x2c0000) = 0x0 No error (3 us)
[  4348] _kern_get_clock(0xfffffffe, [0xa3b7]) = 0x0 No error (2 us)
[  4348] _kern_resize_area(0x1014c, 0x2d0000) = 0x0 No error (3 us)
[  4348] _kern_resize_area(0x1014c, 0x2e0000) = 0x0 No error (3 us)
[  4348] _kern_open(0xffffffff, "/dev/urandom", 0x10c0, 0x0) = 0x3 (135 us)
[  4348] _kern_fcntl(0x3, 0x2, 0x128b5ca0000) = 0x1 No Error (1) (1 us)
[  4348] _kern_read_stat(0x3, (nil), false, 0x7ff5ee05e990, 0x80) = 0x0 No error (1 us)
[  4348] _kern_read(0x3, 0xffffffffffffffff, 0x7ff5ee05eaa0, 0x10) = 0x10 (3 us)
[  4348] _kern_close(0x3) = 0x0 No error (6 us)
[  4348] _kern_resize_area(0x1014c, 0x2f0000) = 0x0 No error (4 us)
[  4348] _kern_resize_area(0x1014c, 0x310000) = 0x0 No error (5 us)
[  4348] _kern_ioctl(0x0, TCGETA, 0x7ff5ee05f370, 0x20) = 0x0 No error (3 us)
[  4348] _kern_ioctl(0x1, TCGETA, 0x7ff5ee05f370, 0x20) = 0x0 No error (2 us)
[  4348] _kern_ioctl(0x2, TCGETA, 0x7ff5ee05f370, 0x20) = 0x0 No error (2 us)
[  4348] _kern_resize_area(0x1014c, 0x320000) = 0x0 No error (4 us)
[  4348] _kern_resize_area(0x1014c, 0x330000) = 0x0 No error (4 us)
[  4348] _kern_resize_area(0x1014c, 0x350000) = 0x0 No error (5 us)
[  4348] _kern_open(0xffffffff, "/dev/urandom", 0x10c0, 0x0) = 0x3 (84 us)
[  4348] _kern_read_stat(0x3, (nil), false, 0x7ff5ee05f2e0, 0x80) = 0x0 No error (1 us)
[  4348] _kern_read(0x3, 0xffffffffffffffff, 0x7ff5ee05f400, 0x10) = 0x10 (280 us)
[  4348] _kern_close(0x3) = 0x0 No error (4 us)
[  4348] _kern_set_signal_mask(0x3, 0x7ff5ee05f448, (nil)) = 0x0 No error (1 us)
[  4348] _kern_sigaction(0x2, 0x7ff5ee05f400, 0x7ff5ee05f3e0) = 0x0 No error (1 us)
[  4348] _kern_sigaction(0x1, 0x7ff5ee05f400, 0x7ff5ee05f3e0) = 0x0 No error (1 us)
[  4348] _kern_sigaction(0x3, 0x7ff5ee05f400, 0x7ff5ee05f3e0) = 0x0 No error (0 us)
[  4348] _kern_sigaction(0xf, 0x7ff5ee05f400, 0x7ff5ee05f3e0) = 0x0 No error (1 us)
[  4348] _kern_sigaction(0xe, 0x7ff5ee05f400, 0x7ff5ee05f3e0) = 0x0 No error (0 us)
[  4348] _kern_sigaction(0x12, 0x7ff5ee05f400, 0x7ff5ee05f3e0) = 0x0 No error (1 us)
[  4348] _kern_sigaction(0x13, 0x7ff5ee05f400, 0x7ff5ee05f3e0) = 0x0 No error (1 us)
[  4348] _kern_sigaction(0x1e, 0x7ff5ee05f400, 0x7ff5ee05f3e0) = 0x0 No error (0 us)
[  4348] _kern_sigaction(0x4, 0x7ff5ee05f400, 0x7ff5ee05f3e0) = 0x0 No error (1 us)
[  4348] _kern_set_signal_stack(0x7ff5ee05f430, 0x7ff5ee05f410) = 0x0 No error (0 us)
[  4348] _kern_sigaction(0xb, 0x7ff5ee05f400, 0x7ff5ee05f3e0) = 0x0 No error (1 us)
[  4348] _kern_sigaction(0x7, 0x7ff5ee05f400, 0x7ff5ee05f3e0) = 0x0 No error (1 us)
[  4348] _kern_sigaction(0x19, 0x7ff5ee05f400, 0x7ff5ee05f3e0) = 0x0 No error (1 us)
[  4348] _kern_sigaction(0x5, 0x7ff5ee05f400, 0x7ff5ee05f3e0) = 0x0 No error (1 us)
[  4348] _kern_set_signal_mask(0x3, 0x7ff5ee05f448, (nil)) = 0x0 No error (0 us)
[  4348] _kern_create_pipe([0x3]) = 0x0 No error (51 us)
[  4348] _kern_fcntl(0x3, 0x2, 0x2000) = 0x0 No error (1 us)
[  4348] _kern_fcntl(0x3, 0x4, 0x1) = 0x0 No error (1 us)
[  4348] _kern_fcntl(0x4, 0x2, 0x1) = 0x0 No error (1 us)
[  4348] _kern_fcntl(0x4, 0x4, 0x1) = 0x0 No error (1 us)
[  4348] _kern_fcntl(0x3, 0x8, 0x1) = 0x0 No error (0 us)
[  4348] _kern_fcntl(0x3, 0x10, 0x80) = 0x0 No error (1 us)
[  4348] _kern_fcntl(0x4, 0x8, 0x80) = 0x1 No Error (1) (0 us)
[  4348] _kern_fcntl(0x4, 0x10, 0x81) = 0x0 No error (1 us)
[  4348] _kern_create_pipe([0x5]) = 0x0 No error (43 us)
[  4348] _kern_fcntl(0x5, 0x2, 0x81) = 0x0 No error (1 us)
[  4348] _kern_fcntl(0x5, 0x4, 0x1) = 0x0 No error (1 us)
[  4348] _kern_fcntl(0x6, 0x2, 0x1) = 0x0 No error (1 us)
[  4348] _kern_fcntl(0x6, 0x4, 0x1) = 0x0 No error (1 us)
[  4348] _kern_fcntl(0x5, 0x8, 0x1) = 0x0 No error (0 us)
[  4348] _kern_fcntl(0x5, 0x10, 0x80) = 0x0 No error (1 us)
[  4348] _kern_fcntl(0x6, 0x8, 0x80) = 0x1 No Error (1) (0 us)
[  4348] _kern_fcntl(0x6, 0x10, 0x81) = 0x0 No error (1 us)
[  4348] _kern_spawn_thread(0x7ff5ee05f3b0) = 0x10fe (69 us)
[  4348] _kern_resume_thread(0x10fe) = 0x0 No error (42 us)
[  4348] _kern_getuid(true) = 0x0 (1 us)
[  4348] _kern_getgid(true) = 0x0 (0 us)
[  4348] _kern_resize_area(0x1014c, 0x370000) = 0x0 No error (5 us)
[  4348] _kern_resize_area(0x1014c, 0x380000) = 0x0 No error (4 us)
[  4348] _kern_getuid(false) = 0x0 (1 us)
[  4348] _kern_getuid(true) = 0x0 (0 us)
[  4348] _kern_getgid(false) = 0x0 (1 us)
[  4348] _kern_getgid(true) = 0x0 (0 us)
[  4348] _kern_open(0xffffffff, "/packages/ruby-2.4.0-1/.self/lib/ruby/site_ruby/2.4.0/enc/encdb.so", 0xc0, 0x0) = 0x80006003 (38 us)
[  4348] _kern_open(0xffffffff, "/packages/ruby-2.4.0-1/.self/lib/ruby/site_ruby/2.4.0/x86_64-haiku/enc/encdb.so", 0xc0, 0x0) = 0x80006003 (23 us)
[  4348] _kern_open(0xffffffff, "/packages/ruby-2.4.0-1/.self/lib/ruby/site_ruby/enc/encdb.so", 0xc0, 0x0) = 0x80006003 (18 us)
[  4348] _kern_open(0xffffffff, "/packages/ruby-2.4.0-1/.self/lib/ruby/vendor_ruby/2.4.0/enc/encdb.so", 0xc0, 0x0) = 0x80006003 (20 us)
[  4348] _kern_open(0xffffffff, "/packages/ruby-2.4.0-1/.self/lib/ruby/vendor_ruby/2.4.0/x86_64-haiku/enc/encdb.so", 0xc0, 0x0) = 0x80006003 (25 us)
[  4348] _kern_open(0xffffffff, "/packages/ruby-2.4.0-1/.self/lib/ruby/vendor_ruby/enc/encdb.so", 0xc0, 0x0) = 0x80006003 (18 us)
[  4348] _kern_open(0xffffffff, "/packages/ruby-2.4.0-1/.self/lib/ruby/2.4.0/enc/encdb.so", 0xc0, 0x0) = 0x80006003 (18 us)
[  4348] _kern_open(0xffffffff, "/packages/ruby-2.4.0-1/.self/lib/ruby/2.4.0/x86_64-haiku/enc/encdb.so", 0xc0, 0x0) = 0x7 (26 us)
[  4348] _kern_read_stat(0x7, (nil), false, 0x7ff5ee05eb80, 0x80) = 0x0 No error (2 us)
[  4348] _kern_close(0x7) = 0x0 No error (3 us)
[  4348] _kern_open(0xffffffff, "/packages/ruby-2.4.0-1/.self/lib/ruby/2.4.0/x86_64-haiku/enc/encdb.so", 0x0, 0x0) = 0x7 (25 us)
[  4348] _kern_normalize_path("/boot/system/lib/ruby/2.4.0/x86_64-haiku/enc/encdb.so", true, 0x7ff5ee05e730) = 0x0 No error (44 us)
[  4348] _kern_read(0x7, 0x0, 0x7ff5ee05d6f0, 0x40) = 0x40 (6 us)
[  4348] _kern_read(0x7, 0x40, 0x7ff5ee05d730, 0xa8) = 0xa8 (3 us)
[  4348] _kern_reserve_address_range([0x15003721000], 0x7, 0x202000) = 0x0 No error (4 us)
[  4348] _kern_map_file("encdb.so_seg0ro", 0x7ff5ee05d650, 0x1, 0x2000, 0x1003, 0x1, true, 0x0, 0x0) = 0x10161 (10 us)
[  4348] _kern_map_file("encdb.so_seg1rw", 0x7ff5ee05d650, 0x1, 0x1000, 0x3, 0x1, true, 0x0, 0x8) = 0x10162 (8 us)
[  4348] _kern_read_stat(0x7, (nil), false, 0x7ff5ee05d5e0, 0x80) = 0x0 No error (2 us)
[  4348] _kern_register_image(0x7ff5ee05d170, 0x470) = 0x3e19 (5 us)
[  4348] _kern_close(0x7) = 0x0 No error (2 us)
[  4348] _kern_image_relocated(0x3e19) (1 us)
[  4348] _kern_set_area_protection(0x10161, 0x5) = 0x0 No error (6 us)
[  4348] _kern_open(0xffffffff, "/packages/ruby-2.4.0-1/.self/lib/ruby/site_ruby/2.4.0/enc/trans/transdb.so", 0xc0, 0x0) = 0x80006003 (23 us)
[  4348] _kern_open(0xffffffff, "/packages/ruby-2.4.0-1/.self/lib/ruby/site_ruby/2.4.0/x86_64-haiku/enc/trans/transdb.so", 0xc0, 0x0) = 0x80006003 (21 us)
[  4348] _kern_open(0xffffffff, "/packages/ruby-2.4.0-1/.self/lib/ruby/site_ruby/enc/trans/transdb.so", 0xc0, 0x0) = 0x80006003 (19 us)
[  4348] _kern_open(0xffffffff, "/packages/ruby-2.4.0-1/.self/lib/ruby/vendor_ruby/2.4.0/enc/trans/transdb.so", 0xc0, 0x0) = 0x80006003 (19 us)
[  4348] _kern_open(0xffffffff, "/packages/ruby-2.4.0-1/.self/lib/ruby/vendor_ruby/2.4.0/x86_64-haiku/enc/trans/transdb.so", 0xc0, 0x0) = 0x80006003 (21 us)
[  4348] _kern_open(0xffffffff, "/packages/ruby-2.4.0-1/.self/lib/ruby/vendor_ruby/enc/trans/transdb.so", 0xc0, 0x0) = 0x80006003 (18 us)
[  4348] _kern_open(0xffffffff, "/packages/ruby-2.4.0-1/.self/lib/ruby/2.4.0/enc/trans/transdb.so", 0xc0, 0x0) = 0x80006003 (18 us)
[  4348] _kern_open(0xffffffff, "/packages/ruby-2.4.0-1/.self/lib/ruby/2.4.0/x86_64-haiku/enc/trans/transdb.so", 0xc0, 0x0) = 0x7 (26 us)
[  4348] _kern_read_stat(0x7, (nil), false, 0x7ff5ee05eb80, 0x80) = 0x0 No error (1 us)
[  4348] _kern_close(0x7) = 0x0 No error (2 us)
[  4348] _kern_open(0xffffffff, "/packages/ruby-2.4.0-1/.self/lib/ruby/2.4.0/x86_64-haiku/enc/trans/transdb.so", 0x0, 0x0) = 0x7 (25 us)
[  4348] _kern_normalize_path("/boot/system/lib/ruby/2.4.0/x86_64-haiku/enc/trans/transdb.so", true, 0x7ff5ee05e730) = 0x0 No error (39 us)
[  4348] _kern_read(0x7, 0x0, 0x7ff5ee05d6f0, 0x40) = 0x40 (4 us)
[  4348] _kern_read(0x7, 0x40, 0x7ff5ee05d730, 0xa8) = 0xa8 (2 us)
[  4348] _kern_reserve_address_range([0x2261b2000], 0x7, 0x203000) = 0x0 No error (3 us)
[  4348] _kern_map_file("transdb.so_seg0ro", 0x7ff5ee05d650, 0x1, 0x3000, 0x1003, 0x1, true, 0x0, 0x0) = 0x10163 (8 us)
[  4348] _kern_map_file("transdb.so_seg1rw", 0x7ff5ee05d650, 0x1, 0x1000, 0x3, 0x1, true, 0x0, 0x8) = 0x10164 (9 us)
[  4348] _kern_read_stat(0x7, (nil), false, 0x7ff5ee05d5e0, 0x80) = 0x0 No error (1 us)
[  4348] _kern_register_image(0x7ff5ee05d170, 0x470) = 0x3e1a (4 us)
[  4348] _kern_close(0x7) = 0x0 No error (2 us)
[  4348] _kern_image_relocated(0x3e1a) (1 us)
[  4348] _kern_set_area_protection(0x10163, 0x5) = 0x0 No error (6 us)
[  4348] _kern_open(0xffffffff, "/packages/ruby-2.4.0-1/.self/lib/ruby/site_ruby/2.4.0/unicode_normalize.rb", 0xc0, 0x0) = 0x80006003 (25 us)
[  4348] _kern_open(0xffffffff, "/packages/ruby-2.4.0-1/.self/lib/ruby/site_ruby/2.4.0/x86_64-haiku/unicode_normalize.rb", 0xc0, 0x0) = 0x80006003 (21 us)
[  4348] _kern_open(0xffffffff, "/packages/ruby-2.4.0-1/.self/lib/ruby/site_ruby/unicode_normalize.rb", 0xc0, 0x0) = 0x80006003 (18 us)
[  4348] _kern_open(0xffffffff, "/packages/ruby-2.4.0-1/.self/lib/ruby/vendor_ruby/2.4.0/unicode_normalize.rb", 0xc0, 0x0) = 0x80006003 (19 us)
[  4348] _kern_open(0xffffffff, "/packages/ruby-2.4.0-1/.self/lib/ruby/vendor_ruby/2.4.0/x86_64-haiku/unicode_normalize.rb", 0xc0, 0x0) = 0x80006003 (20 us)
[  4348] _kern_open(0xffffffff, "/packages/ruby-2.4.0-1/.self/lib/ruby/vendor_ruby/unicode_normalize.rb", 0xc0, 0x0) = 0x80006003 (18 us)
[  4348] _kern_open(0xffffffff, "/packages/ruby-2.4.0-1/.self/lib/ruby/2.4.0/unicode_normalize.rb", 0xc0, 0x0) = 0x7 (22 us)
[  4348] _kern_read_stat(0x7, (nil), false, 0x7ff5ee05d800, 0x80) = 0x0 No error (2 us)
[  4348] _kern_close(0x7) = 0x0 No error (2 us)
[  4348] _kern_getuid(false) = 0x0 (1 us)
[  4348] _kern_getuid(true) = 0x0 (1 us)
[  4348] _kern_getgid(false) = 0x0 (0 us)
[  4348] _kern_getgid(true) = 0x0 (0 us)
[  4348] _kern_open(0xffffffff, "/packages/ruby-2.4.0-1/.self/lib/ruby/2.4.0/unicode_normalize.rb", 0xc0, 0x0) = 0x7 (21 us)
[  4348] _kern_fcntl(0x7, 0x10, 0x0) = 0x8000600e Operation not supported (1 us)
[  4348] _kern_close(0x7) = 0x0 No error (2 us)
[  4348] _kern_open(0xffffffff, "/packages/ruby-2.4.0-1/.self/lib/ruby/site_ruby/2.4.0/rubygems.rb", 0xc0, 0x0) = 0x80006003 (23 us)
[  4348] _kern_open(0xffffffff, "/packages/ruby-2.4.0-1/.self/lib/ruby/site_ruby/2.4.0/x86_64-haiku/rubygems.rb", 0xc0, 0x0) = 0x80006003 (21 us)
[  4348] _kern_open(0xffffffff, "/packages/ruby-2.4.0-1/.self/lib/ruby/site_ruby/rubygems.rb", 0xc0, 0x0) = 0x80006003 (18 us)
[  4348] _kern_open(0xffffffff, "/packages/ruby-2.4.0-1/.self/lib/ruby/vendor_ruby/2.4.0/rubygems.rb", 0xc0, 0x0) = 0x80006003 (18 us)
[  4348] _kern_open(0xffffffff, "/packages/ruby-2.4.0-1/.self/lib/ruby/vendor_ruby/2.4.0/x86_64-haiku/rubygems.rb", 0xc0, 0x0) = 0x80006003 (20 us)
[  4348] _kern_open(0xffffffff, "/packages/ruby-2.4.0-1/.self/lib/ruby/vendor_ruby/rubygems.rb", 0xc0, 0x0) = 0x80006003 (21 us)
[  4348] _kern_open(0xffffffff, "/packages/ruby-2.4.0-1/.self/lib/ruby/2.4.0/rubygems.rb", 0xc0, 0x0) = 0x7 (20 us)
[  4348] _kern_read_stat(0x7, (nil), false, 0x7ff5ee05d830, 0x80) = 0x0 No error (1 us)
[  4348] _kern_close(0x7) = 0x0 No error (2 us)
[  4348] _kern_getuid(false) = 0x0 (0 us)
[  4348] _kern_getuid(true) = 0x0 (0 us)
[  4348] _kern_getgid(false) = 0x0 (1 us)
[  4348] _kern_getgid(true) = 0x0 (0 us)
[  4348] _kern_open(0xffffffff, "/packages/ruby-2.4.0-1/.self/lib/ruby/2.4.0/rubygems.rb", 0xc0, 0x0) = 0x7 (21 us)
[  4348] _kern_fcntl(0x7, 0x10, 0x0) = 0x8000600e Operation not supported (1 us)
[  4348] _kern_close(0x7) = 0x0 No error (1 us)
<internal:gem_prelude>:4:in `require'[  4348] _kern_write(0x2, 0xffffffffffffffff, 0xe9b6931320, 0x25) = 0x25 (10 us)
: [  4348] _kern_write(0x2, 0xffffffffffffffff, 0x147be443ab4, 0x2) = 0x2 (6 us)
Operation not supported -- /packages/ruby-2.4.0-1/.self/lib/ruby/2.4.0/rubygems.rb[  4348] _kern_write(0x2, 0xffffffffffffffff, 0xe9b6940100, 0x52) = 0x52 (9 us)
 ([  4348] _kern_write(0x2, 0xffffffffffffffff, 0x147be443ad7, 0x2) = 0x2 (5 us)
LoadError[  4348] _kern_write(0x2, 0xffffffffffffffff, 0xe9b67eb2e8, 0x9) = 0x9 (5 us)
)
[  4348] _kern_write(0x2, 0xffffffffffffffff, 0x147be443ada, 0x2) = 0x2 (4 us)
        from <internal:gem_prelude>:4:in `<internal:gem_prelude>'
[  4348] _kern_write(0x2, 0xffffffffffffffff, 0xe9b6940060, 0x3b) = 0x3b (8 us)
[  4348] _kern_sigaction(0x2, 0x7ff5ee05f3e0, 0x7ff5ee05f3c0) = 0x0 No error (2 us)
[  4348] _kern_sigaction(0x2, 0x7ff5ee05f3e0, 0x7ff5ee05f3c0) = 0x0 No error (1 us)
[  4348] _kern_close(0x4) = 0x0 No error (6 us)
[  4348] _kern_close(0x6) = 0x0 No error (40 us)
[  4348] _kern_wait_for_thread(0x10fe, [0x0]) = 0x0 No error (2 us)
[  4348] _kern_exit_team(0x1) (4 us)
~ ❯❯❯ 

Could it be a reincarnation of this problem?

comment:9 by axeld, 7 years ago

You mean after nine years the bug resurfaces all of a sudden? :-)

No, fcntl() does pretty much everything. The original bug was related to file locking, this one calls fcntl() with an obviously unsupported F_SETFL flag. Looking at the kernel sources (vfs.cpp), a very obvious reason for this error would be that the underlying file system does not support it. Since we're talking about the read-only packagefs, it's not very surprising that it isn't.

I'd say Haiku's ruby port needs some more patching.

comment:10 by mmu_man, 7 years ago

I'd guess the rubygems.rb file is a list of the installed gems that is maintained by ruby itself, hence the need to lock it. So it definitely must be put elsewhere than in the (read-only) package.

Note: See TracTickets for help on using tickets.