Hipchat on Fedora 27 crash

After install Fedora 27 Hipchat4 stop working. 

Ouput:

hello 0.301887
PackageLocation: "/opt/HipChat4/share/localweb/package.json"
package.json opened
package.json valid
package.json object
package.json version value = "4.30.2"
Reading config.ini file
force_server= false value= ""
Qt WebEngine ICU data not found at /opt/HipChat4/lib/resources. Trying parent directory...
Installed Qt WebEngine locales directory not found at location /opt/HipChat4/lib/translations/qtwebengine_locales. Trying application directory...
Qt WebEngine locales directory not found at location /opt/HipChat4/lib/qtwebengine_locales. Trying fallback directory... Translations MAY NOT not be correct.
Qt WebEngine resources not found at /opt/HipChat4/lib/resources. Trying parent directory...
[1117/005225:ERROR:resource_bundle.cc(720)] Failed to load /opt/HipChat4/lib/qtwebengine_devtools_resources.pak
Some features may not be available.
[1117/005225:WARNING:resource_bundle.cc(311)] locale_file_path.empty() for locale
[1117/005225:ERROR:browser_main_loop.cc(217)] Running without the SUID sandbox! See https://chromium.googlesource.com/chromium/src/+/master/docs/linux_suid_sandbox_development.md for more information on developing with the sandbox on.
--type=zygote
hello 0.2401
Qt WebEngine ICU data not found at /home/tm/Qt/5.7/gcc_64/resources. Trying parent directory...
Qt WebEngine ICU data not found at /home/tm/Qt/5.7/gcc_64. Trying application directory...
Installed Qt WebEngine locales directory not found at location /home/tm/Qt/5.7/gcc_64/translations/qtwebengine_locales. Trying application directory...
Qt WebEngine locales directory not found at location /opt/HipChat4/bin/qtwebengine_locales. Trying fallback directory... Translations MAY NOT not be correct.
Qt WebEngine resources not found at /home/tm/Qt/5.7/gcc_64/resources. Trying parent directory...
Qt WebEngine resources not found at /home/tm/Qt/5.7/gcc_64. Trying application directory...
[1117/005225:ERROR:resource_bundle.cc(720)] Failed to load /opt/HipChat4/bin/qtwebengine_devtools_resources.pak
Some features may not be available.
[1117/005225:WARNING:resource_bundle.cc(311)] locale_file_path.empty() for locale
[23:52:25][void HipChatApplication::initialize(HipChatApplication::Configuration&):385] "UserAgent: HipChat/4030000.1663 Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/5.7.0 Chrome/49.0.2623.111 Safari/537.36"

 

And the Qt installed by default is version 5.9. 

Under Hipchat lib folder i can see is 5.7. 

Can you help? 

 

6 answers

found a workaround here:

https://jira.atlassian.com/projects/HCPUB/issues/HCPUB-3618?filter=allissues

change line 4 of /opt/HipChat4/bin/QtWebEngineProcess to:

arguments="$@ --disable-seccomp-filter-sandbox"

hey Christian. 

Looks like that did the trick, its working now. 

Thanks a lot.

Doesn't seem to work for me, I get "Unknown option 'disable-seccomp-filter-sandbox'" message, when either running "hipchat4 --disable-seccomp-filter-sandbox" or updating QtWebEngineProcess file as mentioned here.

I have hipchat4-4.30.2.1665-1.x86_64 installed on Fedora 27.

I think same problem here!

0 vote
Gonchik Tsymzhitov Community Champion Nov 17, 2017

Hi Luis!

 

Have you tried these commands

cd /opt/HipChat4/lib
ln -s /usr/lib64/libcrypto.so.1.0.2j
ln -s libcrypto.so.1.0.2j libcrypto.so
ln -s /usr/lib64/libgcrypt.so.20.1.8
ln -s libgcrypt.so.20.1.8 libgcrypt.so
ln -s /usr/lib64/libssl.so.1.0.2j
ln -s libssl.so.1.0.2j libssl.so

from this thread

https://community.atlassian.com/t5/Hipchat-questions/Segmentation-fault-on-start-Fedora-26/qaq-p/631544/jump-to/first-unread-message

 

Cheers,

Gonchik Tsymzhitov

Hi Gonchik.

Thanks a lot for your reply. 

I did but is the same. I dont think the crypt libs are the problem here. The stack is a bit different. 

have a look...

 

[23:15:44][QUrl WebBridge::createLocalURL(QString) const:38] url = QUrl("file:///opt/HipChat4/share/clientweb/index.html")
/qwebengine/qtwebengine/src/3rdparty/chromium/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc:**CRASHING**:seccomp-bpf failure in syscall 0281
Received signal 11 SEGV_MAPERR 00000c003119
#0 0x7ff361989f0e <unknown>
#1 0x7ff36198a2d1 <unknown>
#2 0x7ff35ef16720 <unknown>
#3 0x7ff3620ea749 <unknown>
#4 0x7ff36224ce15 <unknown>
#5 0x7ff35ef16720 <unknown>
#6 0x7ff35eff8fd6 __GI_epoll_pwait
#7 0x7ff362d1d20c <unknown>
#8 0x7ff362d1b323 <unknown>
#9 0x7ff36198135e <unknown>
#10 0x7ff3619b9212 <unknown>
#11 0x7ff3619a40e5 <unknown>
#12 0x7ff3619d1264 <unknown>
#13 0x7ff3619cd947 <unknown>
#14 0x7ff35a2d1609 start_thread
#15 0x7ff35eff8e6f __GI___clone
r8: 0000000000000002 r9: 00000000cccccccd r10: 0000000000000000 r11: 0000000000000246
r12: 00007ff34cb65320 r13: 00000000011dfb30 r14: 00007ff34cb65440 r15: 00007ff34cb65380
di: 0000000000000001 si: 00007ff3638ecf21 bp: 00007ff34cb65380 bx: 0000000000000119
dx: 0000000000003000 ax: 000000000c003119 cx: 00007ff35efe7edb sp: 00007ff34cb65320
ip: 00007ff3620ea749 efl: 0000000000010202 cgf: 002b000000000033 erf: 0000000000000006
trp: 000000000000000e msk: 0000000000000000 cr2: 000000000c003119
[end of stack trace]
[23:15:44][HipClientView::HipClientView(AbstractHipMainWindow*, Utils*, AccountInfo*):79] Set Client URL : true
[23:15:44][void AbstractHipMainWindow::addClientView(AccountInfo*):227] currentWebView: QVariant(QObject*, QQuickWebEngineView_QML_6(0x140c5f0, name = "webView"))
[23:15:44][void AbstractHipMainWindow::addClientView(AccountInfo*):229] Set currentWebView : true
[23:15:44][qml][onParentChanged:10] Client Parent Changed : HipMainWindow_QMLTYPE_1(0x13e36c0)
[23:15:44][void AbstractHipMainWindow::addClientView(AccountInfo*):231] Set Client Parent : true
/qwebengine/qtwebengine/src/3rdparty/chromium/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc:**CRASHING**:seccomp-bpf failure in syscall 0281
Received signal 11 SEGV_MAPERR 00000c003119

And keep going and going and going....

Thanks.

Gonchik Tsymzhitov Community Champion Nov 18, 2017

Hi Luis, 

I have found related issue

https://bugreports.qt.io/browse/QTBUG-57709

 

Could you provide: 

uname -a 

I have tried to reproduce it on VM with Fedora 27, it looks like work it normal. 

 

Thanks

 

Cheers,

Gonchik Tsymzhitov

Hi again Gonchick.

Sure.

uname -a
Linux hostname 4.13.12-300.fc27.x86_64 #1 SMP Wed Nov 8 16:38:01 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

I had Hipchat working on Fedora 26 and i upgraded it to 27, after that i encounter this problem. 

I dont know if is relevant to the problem but here are my qt5 installed packages:

rpm -qa |grep qt5
qt5-qtgraphicaleffects-5.9.2-1.fc27.x86_64
qt5-qtbase-devel-5.9.2-4.fc27.x86_64
qt5-qtmultimedia-5.9.2-1.fc27.x86_64
qt5-qtscript-5.9.2-1.fc27.x86_64
qt5-qtwebengine-examples-5.9.2-2.fc27.x86_64
qt5-qtsensors-5.9.2-1.fc27.x86_64
qt5-qdbusviewer-5.9.2-1.fc27.x86_64
qt5-qttools-common-5.9.2-1.fc27.noarch
qt5-qtbase-common-5.9.2-4.fc27.noarch
qt5-qtquickcontrols-5.9.2-1.fc27.x86_64
qt5-qtx11extras-5.9.2-1.fc27.x86_64
qt5-qtwebsockets-5.9.2-1.fc27.x86_64
qt5-qtbase-gui-5.9.2-4.fc27.x86_64
qt5-qtwayland-5.9.2-1.fc27.x86_64
qt5-qtdeclarative-devel-5.9.2-2.fc27.x86_64
qt5-qtconnectivity-5.9.2-1.fc27.x86_64
qt5-qtbase-mysql-5.9.2-4.fc27.x86_64
qt5-qtwebchannel-5.9.2-1.fc27.x86_64
qt5-qtlocation-5.9.2-1.fc27.x86_64
qt5-qtserialport-5.9.2-1.fc27.x86_64
qt5-qtimageformats-5.9.2-1.fc27.x86_64
qt5-qtlocation-devel-5.9.2-1.fc27.x86_64
qt5-qtxmlpatterns-5.9.2-1.fc27.x86_64
qt5-qttools-5.9.2-1.fc27.x86_64
qt5-5.9.1-2.fc27.noarch
qt5-qtbase-5.9.2-4.fc27.x86_64
qt5-qtsvg-5.9.2-1.fc27.x86_64
qt5-rpm-macros-5.9.1-2.fc27.noarch
adwaita-qt5-1.0-3.fc27.x86_64
qt5-qttools-libs-designer-5.9.2-1.fc27.x86_64
qt5-qtbase-postgresql-5.9.2-4.fc27.x86_64
qt5-qtwebengine-devel-5.9.2-2.fc27.x86_64
qt5-qtdeclarative-5.9.2-2.fc27.x86_64
qt5-qtwebengine-5.9.2-2.fc27.x86_64
qt5-qtquickcontrols2-5.9.2-1.fc27.x86_64
qt5-qtwebchannel-devel-5.9.2-1.fc27.x86_64
qt5-qt3d-5.9.2-1.fc27.x86_64
qt5-qtwebkit-5.212.0-0.12.alpha2.fc27.x86_64
qt5-qtdoc-5.9.2-1.fc27.noarch

 

Thanks a lot for helping me.

Just for completion (current versions in f27)

ln -s /usr/lib64/libcrypto.so.1.0.2m
ln -s libcrypto.so.1.0.2m /opt/HipChat4/lib/libcrypto.so
ln -s /usr/lib64/libgcrypt.so.20.2.1
ln -s libgcrypt.so.20.2.1 /opt/HipChat4/lib/libgcrypt.so
ln -s /usr/lib64/libssl.so.1.0.2m
ln -s libssl.so.1.0.2m /opt/HipChat4/lib/libssl.so

Just a side node: guys at atlassian really should consider building packages with OBS https://build.opensuse.org/ for cross distribution / -system packages while maintaining bound crosslibs integrity to each system based OS libs.

That reduces the package size a lot (at least for linux) and for missing / changed libs users don't need to copy/link libs on their own...

This whole unnecessary libshipping / symlinking stuff really should end!

0 vote

I updated to Fedora 27 and hipchat started just showing the white window, so I tried relinking as above, but that didn't work.

Adding the argument change did work for me.

Here is my version and OS info:

HipChat4
hello 0.347035
PackageLocation: "/opt/HipChat4/share/localweb/package.json"
package.json opened
package.json valid
package.json object
package.json version value = "4.30.3"
Reading config.ini file
force_server= false value= ""
HipChat 4.30.2.1665 (Web Core 4.30.3)

Linux hostname 4.14.5-300.fc27.x86_64 #1 SMP Mon Dec 11 16:00:36 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Mar 26, 2018 in Hipchat Data Center

Migration of Hipchat server to Data Center - a retrospective

Background While our Hipchat server environment was reliable and performing well, as a significant and growing part of our business, the need to leverage the benefits of Hipchat Data Center&nbs...

522 views 2 7
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you