Segmentation fault Centos

Google Cloud centos Linix
yum Updated & upgraded
uname -a = 3.10.0-957.21.3.el7.x86_64 #1 SMP Tue Jun 18 16:35:19 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Xojo linux64 bit console app
Compiles works ok on OSX
Compile for linux64 bit it runs the app until it gets to the line

html= webconnection.SendSync(“GET”, “https://anyurl” , 30) - it always throws on this line (except on OSX)

(webconnection is an persistent  instance of URLConnection which never goes out of scope)

On mac it returns block 1 of the TRON token blockchain network. works fine on Mac

However, Linux (Centos 7 GC)

On that specific line it throws a segmentation fault

ldd reports
linux-vdso.so.1 => (0x00007ffd54487000)
XojoConsoleFramework64.so => /home/xxx/./xxx Libs/XojoConsoleFramework64.so (0x00007ff916d4a000)
libc.so.6 => /lib64/libc.so.6 (0x00007ff91697d000)
libgobject-2.0.so.0 => /lib64/libgobject-2.0.so.0 (0x00007ff91672d000)
libglib-2.0.so.0 => /lib64/libglib-2.0.so.0 (0x00007ff916417000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007ff9161fb000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007ff915ff7000)
librt.so.1 => /lib64/librt.so.1 (0x00007ff915def000)
libm.so.6 => /lib64/libm.so.6 (0x00007ff915aed000)
libunwind.so.8 => /lib64/libunwind.so.8 (0x00007ff9158d3000)
libunwind-x86_64.so.8 => /lib64/libunwind-x86_64.so.8 (0x00007ff9156b3000)
libc++.so.1 => /home/igg/xxx/./xxx Libs/libc++.so.1 (0x00007ff915302000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007ff9150ec000)
/lib64/ld-linux-x86-64.so.2 (0x00007ff91926e000)
libpcre.so.1 => /lib64/libpcre.so.1 (0x00007ff914e8a000)
libffi.so.6 => /lib64/libffi.so.6 (0x00007ff914c82000)

(not so sure why its got a " /./ " in the libc++.so line? could this be the issue?

Any help would be appreciated, I don’t think google cloud would let me take a mac down and run it on their network!
I have run all the Xojo requisites for Centos

Missing WebKit?

Installed

sudo yum install webkitgtk4.x86_64

still same error.

it has these other packages

PyQt4-webkit.x86_64 : Python bindings for Qt4 Webkit
PyQt4-webkit-devel.noarch : Files needed to build other bindings based on Qt4 WebKit
kdelibs-webkit.x86_64 : KDE WebKit support library
kdelibs-webkit-devel.x86_64 : Development files for KDE WebKit support library
kf5-kdewebkit.x86_64 : KDE Frameworks 5 Tier 3 integration module for QtWebKit
kf5-kdewebkit-devel.x86_64 : Development files for kf5-kdewebkit
kwebkitpart.x86_64 : A KPart based on QtWebKit
libproxy-webkitgtk3.x86_64 : Plugin for libproxy and webkitgtk3
mingw32-qt5-qtwebkit.noarch : Qt5 for Windows - QtWebkit component
mingw32-webkitgtk-static.noarch : Static version of the MinGW Windows WebKitGTK+ library
mingw64-qt5-qtwebkit.noarch : Qt5 for Windows - QtWebkit component
mingw64-webkitgtk-static.noarch : Static version of the MinGW Windows WebKitGTK+ library
perl-Gtk3-WebKit.noarch : WebKit bindings for Perl
python36-qt5-webkit.x86_64 : Python3 bindings for Qt5 Webkit
pywebkitgtk.x86_64 : Python Bindings for WebKit-gtk
qt5-qtwebkit.x86_64 : Qt5 - QtWebKit components
qt5-qtwebkit-devel.x86_64 : Development files for qt5-qtwebkit
qtwebkit.x86_64 : Qt WebKit bindings
qtwebkit-devel.x86_64 : Development files for qtwebkit
webkitgtk3-devel.i686 : Development files for webkitgtk3
webkitgtk3-devel.x86_64 : Development files for webkitgtk3
webkitgtk3-doc.noarch : Documentation files for webkitgtk3
webkitgtk4-devel.i686 : Development files for webkitgtk4
webkitgtk4-devel.x86_64 : Development files for webkitgtk4
webkitgtk4-doc.noarch : Documentation files for webkitgtk4
webkitgtk4-jsc.i686 : JavaScript engine from webkitgtk4
webkitgtk4-jsc.x86_64 : JavaScript engine from webkitgtk4
webkitgtk4-jsc-devel.i686 : Development files for JavaScript engine from webkitgtk4
webkitgtk4-jsc-devel.x86_64 : Development files for JavaScript engine from webkitgtk4
webkitgtk4-plugin-process-gtk2.i686 : GTK+ 2 based NPAPI plugins support for webkitgtk4
webkitgtk4-plugin-process-gtk2.x86_64 : GTK+ 2 based NPAPI plugins support for webkitgtk4
CutyCapt.x86_64 : A small command-line utility to capture WebKit’s rendering of a web page
chromium.x86_64 : A WebKit (Blink) powered web browser
mingw32-webkitgtk.noarch : MinGW Windows web content engine library
mingw32-webkitgtk3.noarch : MinGW Windows web content engine library
mingw64-webkitgtk.noarch : MinGW Windows web content engine library
mingw64-webkitgtk3.noarch : MinGW Windows web content engine library
webkitgtk3.i686 : GTK+ Web content engine library
webkitgtk3.x86_64 : GTK+ Web content engine library
webkitgtk4.i686 : GTK+ Web content engine library
webkitgtk4.x86_64 : GTK+ Web content engine library

Added all glibc packs

yum install glibc-common.x86_64 compat-glibc.x86_64 glibc.x86_64 glibc-devel.x86_64 glibc-headers.x86_64 glibc-static.x86_64 glibc-utils.x86_64

still errors

Have you found the cause of this crash?

We have very similar issue.

Xojo: 2019R1.1
Build linux 64 bit.

Got crash dump from “core” and gdb.

#0  0x00007f1678570901 in __strlen_sse2_pminub () from /lib64/libc.so.6
#1  0x00007f1678a75b10 in ?? () from /opt/app/bua Libs/XojoConsoleFramework64.so
#2  0x00007f1678a0d17c in ?? () from /opt/app/bua Libs/XojoConsoleFramework64.so
#3  0x00007f1678aa09d5 in ?? () from /opt/app/bua Libs/XojoConsoleFramework64.so
#4  0x00007f1678aa0068 in ?? () from /opt/app/bua Libs/XojoConsoleFramework64.so
#5  0x00007f1678aa139b in ?? () from /opt/app/bua Libs/XojoConsoleFramework64.so
#6  0x00007f1678aa0b5e in ?? () from /opt/app/bua Libs/XojoConsoleFramework64.so
#7  0x00007f1678a9f4ba in URLConnection_SendSync () from /opt/app/bua Libs/XojoConsoleFramework64.so
#8  0x000000000048d2cb in URLConnection.SendSync%s%o<URLConnection>ssi8 ()
....

the code caused it, very simple:

dim response as string = sock.SendSync("GET", url, 20)

Does your processor support SSE2 instructions?

lshw -class processor | grep -w sse2

model name : Intel® Xeon® Platinum 8175M CPU @ 2.50GHz

It’s Amazon t3.small instance

cat /proc/cpuinfo | grep sse2

flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc cpuid tsc_known_freq pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single pti fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx avx512f avx512dq rdseed adx smap clflushopt clwb avx512cd avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves ida arat pku ospke

Seems you guys need engineering help. Any chance of a feedback post with sample code replicating the problems?

That’s an issue with the strlen command as Xojo is calling it on Linux. @William Yu - is it possible that the Xojo string being parsed from SendSync is not null terminated? If not, that could cause strlen to step into a protected memory segment.

Regardless, as Rick says, this one needs a Feedback report.