Re: [osv-dev] Some boost based unit tests failing on Fedora 30 when linked with boost from host - 1.69.0

2019-11-28 Thread Nadav Har'El
On Thu, Nov 28, 2019 at 10:04 PM Waldek Kozaczuk wrote: > > >>> >>> >>> Please note I have removed this line from the tests Makefile: > -$(boost-tests:%=$(out)/tests/%): CXXFLAGS += -D_GLIBCXX_USE_CXX11_ABI=0 \ > I do not fully understand the significance of it nor the reasons for it in > the fir

[osv-dev] Ancient libgcc_s.so from external

2019-11-28 Thread Waldek Kozaczuk
This is related to https://github.com/cloudius-systems/osv/issues/743. I have been trying to eliminate ancient libgcc_s.so from usr.manifest.skel and replace it with the version from host. When I do that most (C++ only?) apps fail like so: Cmdline: /java_isolated.so -cp /tests/java/tests.jar i

Re: [osv-dev] Some boost based unit tests failing on Fedora 30 when linked with boost from host - 1.69.0

2019-11-28 Thread Waldek Kozaczuk
On Thursday, November 28, 2019 at 3:08:53 AM UTC-5, Nadav Har'El wrote: > > > On Thu, Nov 28, 2019 at 8:00 AM Waldek Kozaczuk > wrote: > >> I have been trying to upgrade unit tests to use boost from host instead >> of depending on externals. One one the previous patches I sent fixed >> compila

[osv-dev] [COMMIT osv master] osv: fix keyboard reset, add pci reset

2019-11-28 Thread Commit Bot
From: yuchenq Committer: Nadav Har'El Branch: master osv: fix keyboard reset, add pci reset The original keyboard reset does not wait a for short period, so we see the triple fault being triggered even if the keyboard reset is successful sometimes. Added a wait there to make sure the keyboard

Re: [osv-dev] [PATCH] osv: fix keyboard reset, add pci reset

2019-11-28 Thread Nadav Har'El
On Thu, Nov 28, 2019 at 4:29 PM 'YuChen Qian' via OSv Development < osv-dev@googlegroups.com> wrote: > From: yuchenq > > The original keyboard reset does not wait a for short period, so we see > the triple fault being triggered even if the keyboard reset is > successful sometimes. Added a wait th

Re: [osv-dev] [PATCH] osv: fix keyboard reset, add pci reset

2019-11-28 Thread Nadav Har'El
On Thu, Nov 28, 2019 at 4:03 PM wrote: > Thanks for the comment :) Please see my reply in the comments. > > On 27.11.19 15:43, Nadav Har'El wrote: > > > +u8 v = processor::inb(0x0cf9) & ~6; >> +processor::outb(v|2, 0x0cf9); // request hard reset >> +usleep(50); >> +processor::outb

[osv-dev] [COMMIT osv master] tests: fix compilation warning in tests/tst-run.cc

2019-11-28 Thread Commit Bot
From: Nadav Har'El Committer: Waldemar Kozaczuk Branch: master tests: fix compilation warning in tests/tst-run.cc It is generally a bad idea to catch exceptions by value, because it forces an unnecessary copy of the caught value. It's even worse when the type is polymorphic - in that case the

[osv-dev] [COMMIT osv master] tests: fix warning in tst-symlink

2019-11-28 Thread Commit Bot
From: Nadav Har'El Committer: Waldemar Kozaczuk Branch: master tests: fix warning in tst-symlink The compiler correctly warns that we can't fill 4097 bytes of an array size 4096 (=PATH_MAX). I don't know why this code had 4097 in the first place. The test still passes with this fix, and the w

[osv-dev] [COMMIT osv master] tests: fix warning in tst-mmap.cc

2019-11-28 Thread Commit Bot
From: Nadav Har'El Committer: Waldemar Kozaczuk Branch: master tests: fix warning in tst-mmap.cc When building tests, we get this warning: tst-mmap.hh:76:19: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 76 | char byte = **(volatile

[osv-dev] [PATCH] osv: fix keyboard reset, add pci reset

2019-11-28 Thread 'YuChen Qian' via OSv Development
From: yuchenq The original keyboard reset does not wait a for short period, so we see the triple fault being triggered even if the keyboard reset is successful sometimes. Added a wait there to make sure the keyboard reset completes before triggering the triple fault. Added PCI reset, and enabled

Re: [osv-dev] [PATCH] osv: fix keyboard reset, add pci reset

2019-11-28 Thread yuchenq via OSv Development
Thanks for the comment :) Please see my reply in the comments. On 27.11.19 15:43, Nadav Har'El wrote: Hi, thanks for the patch! I have some questions: On Wed, Nov 27, 2019 at 3:46 PM 'YuChen Qian' via OSv Development mailto:osv-dev@googlegroups.com>> wrote: The original keyboard reset do

[osv-dev] [PATCH] tests: fix compilation warning in tests/tst-run.cc

2019-11-28 Thread Nadav Har'El
It is generally a bad idea to catch exceptions by value, because it forces an unnecessary copy of the caught value. It's even worse when the type is polymorphic - in that case the copy will only be a slice of the original type. This is why recent compilers started to warn when code catches a polymo

[osv-dev] [PATCH] tests: fix warning in tst-symlink

2019-11-28 Thread Nadav Har'El
The compiler correctly warns that we can't fill 4097 bytes of an array size 4096 (=PATH_MAX). I don't know why this code had 4097 in the first place. The test still passes with this fix, and the warning is gone. Refs #976. Signed-off-by: Nadav Har'El --- tests/tst-symlink.cc | 2 +- 1 file cha

[osv-dev] [PATCH] tests: fix warning in tst-mmap.cc

2019-11-28 Thread Nadav Har'El
When building tests, we get this warning: tst-mmap.hh:76:19: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 76 | char byte = **(volatile char**)&func; | ^~ I think this code was actually wrong...

Re: [osv-dev] Some boost based unit tests failing on Fedora 30 when linked with boost from host - 1.69.0

2019-11-28 Thread Nadav Har'El
On Thu, Nov 28, 2019 at 8:00 AM Waldek Kozaczuk wrote: > I have been trying to upgrade unit tests to use boost from host instead of > depending on externals. One one the previous patches I sent fixed > compilation errors. > > However when I update the tests makefile and manifest file I see that s

[osv-dev] [COMMIT osv master] unit tests: replace deprecated BOOST_MESSAGE with BOOST_TEST_MESSAGE

2019-11-28 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Nadav Har'El Branch: master unit tests: replace deprecated BOOST_MESSAGE with BOOST_TEST_MESSAGE This patch resolves compilations errors with newer versions of boost. Signed-off-by: Waldemar Kozaczuk Message-Id: <20191128054258.13240-1-jwkozac...@gmail.com>