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
(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
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
#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)
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.