Dear all,
First of all many greetings to everyone who are using FreeBSD and participating in that forum! Hello Moderators!
Just recently installed FreeBSD 11 STABLE mainly due to ZFS. My first Unix many years ago was FSBD since 4.0 version, then I switched to Gentoo and end up with Arch. Now I've made a full turn coming to FBSD back on a single machine.
(Just observations, not a question! Excuse me the length of my first message)
It's been few weeks from now where I dig in it. I have to say switching to LLVM bring quite controversial experience. Quite a lot of packages hardly depend on GCC and required it anyway. I did try everything I could, but wasn't able to switch the world and kernel back to GCC to live with a single compiler. Very sad! Even worse is, that some packages do require LLVM, when it is already installed as system compiler anyway. Sounds ridiculous. 11.2 RELEASE does have CLANG 4 and some packages push CLANG 5. Strange enough. World thinks CLANG 5 is not ready yet, but PORTS think CLANG5 is ready. That is while CLANG 7 is available. 11 STABLE has some more consistency. It does install CLANG 5 everywhere. So I ended up having 2 copies of CLANG 5 and one copy of GCC 6. Now few packages which aren't require GCC can't be actually build with CLANG and each time I have to set WITH_GCC on and off. Using GCC for all ports doesn't work either.
I'm pretty aware, that FreeBSD community has moderate resources. Therefore it sounds strange why increase entropy and make more troubles for every one. Back in 4.0 it was more consistent. CLANG will never be drop in replacement for GCC so it is better to stick with a single default compiler. And if the all packages out there are developed with GCC, then it should stay this way.
Higher complexity can be tolerated if community has enough man power for all that. Just the man power to build every single package with CLANG seems to be more, than available.
To the problem:
After starting video playing in a browser (tried Opera, Iridium and Palemoon) the whole system goes to sudden reboot. It does not happen always. Just occasionally, but pretty often. Restart playing the same video (just HTML5, no Flash, no Linux Compatibility) can easily bring the whole system down. That effect I have observed on Linux last time about 10 years ago.
If the video is playing already it is quite stable and no crash has been observed. It's only the starting process which brings the system down! Exactly the time, when I click on start button. As example it can also be observed on youtube or popular streaming services. Exact same video can be played without any issue. Just sequence of stop and continue might trigger the reboot. Its seems that usually 2-3 times restart is necessary. Looks like memory leak to me. IMHO it might be somehow related to Xorg SUID, but I'm not sure.
I would fully accept browser crash or even Xorg crash, but not the whole system reboot. How about kernel and process insulation on FreeBSD nowadays?
Among settings I tuned was setting -march=native and few security setting in sysctl.conf recommended during installation.
I am not asking to solve all the issues, just if possible tell me how to make the system not affected by single program crash.
Don't like it much, but would accept Xorg crash if not avoidable.
Side question:
I was told ZFS on Linux is so much worse comparing to FBSD, that was my main reason to try the proven solution. Have to admit, that I love how ZFS works and have no single issue so far, before I started to play with browsers in Xorg. I know I am asking biased people, but would you confirm my decision to stick with FBSD for ZFS? Or it doesn't matter much.
Many thanks and sorry for too many words!
First of all many greetings to everyone who are using FreeBSD and participating in that forum! Hello Moderators!
Just recently installed FreeBSD 11 STABLE mainly due to ZFS. My first Unix many years ago was FSBD since 4.0 version, then I switched to Gentoo and end up with Arch. Now I've made a full turn coming to FBSD back on a single machine.
(Just observations, not a question! Excuse me the length of my first message)
It's been few weeks from now where I dig in it. I have to say switching to LLVM bring quite controversial experience. Quite a lot of packages hardly depend on GCC and required it anyway. I did try everything I could, but wasn't able to switch the world and kernel back to GCC to live with a single compiler. Very sad! Even worse is, that some packages do require LLVM, when it is already installed as system compiler anyway. Sounds ridiculous. 11.2 RELEASE does have CLANG 4 and some packages push CLANG 5. Strange enough. World thinks CLANG 5 is not ready yet, but PORTS think CLANG5 is ready. That is while CLANG 7 is available. 11 STABLE has some more consistency. It does install CLANG 5 everywhere. So I ended up having 2 copies of CLANG 5 and one copy of GCC 6. Now few packages which aren't require GCC can't be actually build with CLANG and each time I have to set WITH_GCC on and off. Using GCC for all ports doesn't work either.
I'm pretty aware, that FreeBSD community has moderate resources. Therefore it sounds strange why increase entropy and make more troubles for every one. Back in 4.0 it was more consistent. CLANG will never be drop in replacement for GCC so it is better to stick with a single default compiler. And if the all packages out there are developed with GCC, then it should stay this way.
Higher complexity can be tolerated if community has enough man power for all that. Just the man power to build every single package with CLANG seems to be more, than available.
To the problem:
After starting video playing in a browser (tried Opera, Iridium and Palemoon) the whole system goes to sudden reboot. It does not happen always. Just occasionally, but pretty often. Restart playing the same video (just HTML5, no Flash, no Linux Compatibility) can easily bring the whole system down. That effect I have observed on Linux last time about 10 years ago.
If the video is playing already it is quite stable and no crash has been observed. It's only the starting process which brings the system down! Exactly the time, when I click on start button. As example it can also be observed on youtube or popular streaming services. Exact same video can be played without any issue. Just sequence of stop and continue might trigger the reboot. Its seems that usually 2-3 times restart is necessary. Looks like memory leak to me. IMHO it might be somehow related to Xorg SUID, but I'm not sure.
I would fully accept browser crash or even Xorg crash, but not the whole system reboot. How about kernel and process insulation on FreeBSD nowadays?
Among settings I tuned was setting -march=native and few security setting in sysctl.conf recommended during installation.
I am not asking to solve all the issues, just if possible tell me how to make the system not affected by single program crash.
Don't like it much, but would accept Xorg crash if not avoidable.
Side question:
I was told ZFS on Linux is so much worse comparing to FBSD, that was my main reason to try the proven solution. Have to admit, that I love how ZFS works and have no single issue so far, before I started to play with browsers in Xorg. I know I am asking biased people, but would you confirm my decision to stick with FBSD for ZFS? Or it doesn't matter much.
Many thanks and sorry for too many words!