Hello,
I am having problems with code interfacing a C library on Ubuntu 12.10 32bit. I loaded my code into a clean Pharo 2.0 install. My code works perfectly when run on Windows 7. The Linux libraries work perfectly when running the demo C apps which come with the library. "I create the object." s := FXSession new. "I attempt to login" s login: ( FXSession demoArgs ). "If login is successful, I test with getServerTime." s getServerTime. Creating the object is successful. The login seems to freeze the UI. Then after a number of minutes. I don't know how many. I didn't watch. I then get the below output in the terminal. jimmie@squirrel:~/Dev/Pharo/pharo2.0$ ./pharo shared/Pharo2.0.image ALL=0;ERR=0;LAST=0;ARML=0ALL=0;ERR=0;LAST=0;ARML=0ALL=1;ERR=1;LAST=0;ARML=0ALL=1;ERR=1;LAST=0;ARML=0^C jimmie@squirrel:~/Dev/Pharo/pharo2.0$ ./pharo shared/Pharo2.0.image ALL=0;ERR=0;LAST=0;ARML=0ALL=0;ERR=0;LAST=0;ARML=0ALL=1;ERR=1;LAST=0;ARML=0ALL=1;ERR=1;LAST=0;ARML=0ALL=2;ERR=2;LAST=0;ARML=0ALL=2;ERR=2;LAST=0;ARML=0ALL=3;ERR=3;LAST=0;ARML=0ALL=3;ERR=3;LAST=0;ARML=0ALL=4;ERR=4;LAST=0;ARML=0ALL=4;ERR=4;LAST=0;ARML=0ALL=5;ERR=5;LAST=0;ARML=0ALL=5;ERR=5;LAST=0;ARML=0ALL=6;ERR=6;LAST=0;ARML=0ALL=6;ERR=6;LAST=0;ARML=0ALL=7;ERR=7;LAST=0;ARML=0ALL=7;ERR=7;LAST=0;ARML=0ALL=8;ERR=8;LAST=0;ARML=0ALL=0;ERR=0;LAST=0;ARML=0ALL=1;ERR=1;LAST=0;ARML=0ALL=2;ERR=2;LAST=0;ARML=0ALL=3;ERR=3;LAST=0;ARML=0ALL=4;ERR=4;LAST=0;ARML=0ALL=5;ERR=5;LAST=0;ARML=0ALL=6;ERR=6;LAST=0;ARML=0ALL=7;ERR=7;LAST=0;ARML=0ALL=8;ERR=8;LAST=0;ARML=0ALL=9;ERR=9;LAST=0;ARML=0ALL=10;ERR=10;LAST=0;ARML=0ALL=11;ERR=11;LAST=0;ARML=0ALL=12;ERR=12;LAST=0;ARML=0ALL=13;ERR=13;LAST=0;ARML=0ALL=14;ERR=14;LAST=0;ARML=0ALL=15;ERR=15;LAST=0;ARML=0ALL=16;ERR=16;LAST=0;ARML=0ALL=17;ERR=17;LAST=0;ARML=0ALL=18;ERR=18;LAST=0;ARML=0ALL=19;ERR=19;LAST=0;ARML=0ALL=20;ERR=20;LAST=0;ARML=0ALL=21;ERR=21;LAST=0;ARML=0ALL=22;ERR=22;LAST=0;ARML=0ALL=23;ERR=23;LAST=0;ARML=0ALL=24;ERR=24;LAST=0;ARML=0ALL=25;ERR=25;LAST=0;ARML=0ALL=26;ERR=26;LAST=0;ARML=0ALL=27;ERR=27;LAST=0;ARML=0ALL=28;ERR=28;LAST=0;ARML=0ALL=29;ERR=29;LAST=0;ARML=0ALL=30;ERR=30;LAST=0;ARML=0 Segmentation fault Tue Apr 2 21:10:46 2013 pharo VM version: 3.9-7 #1 Wed Mar 13 18:22:44 CET 2013 gcc 4.4.3 Built from: NBCoInterpreter NativeBoost-CogPlugin-EstebanLorenzano.18 uuid: a53445f9-c0c0-4015-97a3-be7db8d9ed6b Mar 13 2013 With: NBCogit NativeBoost-CogPlugin-EstebanLorenzano.18 uuid: a53445f9-c0c0-4015-97a3-be7db8d9ed6b Mar 13 2013 Revision: git://gitorious.org/cogvm/blessed.git Commit: 412abef33cbed05cf1d75329e451d71c0c6aa5a7 Date: 2013-03-13 17:48:50 +0100 By: Esteban Lorenzano <[hidden email]> Jenkins build #14535 Build host: Linux linux-ubuntu-10 2.6.32-38-server #83-Ubuntu SMP Wed Jan 4 11:26:59 UTC 2012 x86_64 GNU/Linux plugin path: /home/jimmie/Dev/Pharo/pharo2.0/bin [default: /home/jimmie/Dev/Pharo/pharo2.0/bin/] C stack backtrace: /home/jimmie/Dev/Pharo/pharo2.0/bin/pharo[0x80a0c0c] /home/jimmie/Dev/Pharo/pharo2.0/bin/pharo[0x80a0f28] [0xb76f240c] /home/jimmie/Dev/ForexConnectAPI-1.2.2-Linux-i686/lib/libForexConnect.so(_ZN18ServerCommunicator24connectToPriceFeedServerEPKc+0x62)[0x76f16632] /home/jimmie/Dev/ForexConnectAPI-1.2.2-Linux-i686/lib/libForexConnect.so(_ZN18ServerCommunicator13onReconnectedEv+0x3e)[0x76f175ee] /home/jimmie/Dev/ForexConnectAPI-1.2.2-Linux-i686/lib/libForexConnect.so(_ZN15CStatusListener27onTradeSessionStatusChangedEii+0xec)[0x76f153dc] /home/jimmie/Dev/ForexConnectAPI-1.2.2-Linux-i686/lib/libForexConnect.so(_ZN15CStatusListener6updateEPK12IUserSessionPK14ISessionStatus+0x89)[0x76f15479] /home/jimmie/Dev/ForexConnectAPI-1.2.2-Linux-i686/lib/libfxmsg.so(_ZN20UniversalUserSession16sendStatusUpdateEv+0x159)[0x76b94b89] /home/jimmie/Dev/ForexConnectAPI-1.2.2-Linux-i686/lib/libfxmsg.so(_ZN17UniversalRelogger21onReloginSuccessfullyEP17ITransportSession+0xf0)[0x76b90860] /home/jimmie/Dev/ForexConnectAPI-1.2.2-Linux-i686/lib/libfxmsg.so(_ZN17UniversalRelogger7reloginEP17ITransportSession+0xaf)[0x76b9098f] /home/jimmie/Dev/ForexConnectAPI-1.2.2-Linux-i686/lib/libfxmsg.so(_ZN17UniversalRelogger3runEPv+0x2f9)[0x76b90cc9] /home/jimmie/Dev/ForexConnectAPI-1.2.2-Linux-i686/lib/libfxmsg.so(_ZN9threading7AThread12threadRunnerEPv+0x1f)[0x76b9901f] /lib/i386-linux-gnu/libpthread.so.0(+0x6d4c)[0xb7693d4c] /lib/i386-linux-gnu/libc.so.6(clone+0x5e)[0xb75d1d3e] Can't dump Smalltalk stack(s). Not in VM thread Most recent primitives relinquishProcessorForMicroseconds: ... I don't know what I may be doing wrong, or if there is something not working right in the NBLinux VM. I can email the code if that helps. There is nothing personal in the code. I created a test library to attempt to narrow down the problem. It is code to access the FXCM servers for Forex Trading. I used a demo account to login. It isn't personal data. http://www.fxcm.com I plan on releasing the Pharo wrapper around this C library when it is ready. Any help greatly appreciated. Jimmie |
I can take a look at it, if you send me the image/instructions to install.
On 3 April 2013 07:00, Jimmie Houchin <[hidden email]> wrote: > Hello, > > I am having problems with code interfacing a C library on Ubuntu 12.10 > 32bit. > I loaded my code into a clean Pharo 2.0 install. > > My code works perfectly when run on Windows 7. > The Linux libraries work perfectly when running the demo C apps which come > with the library. > > "I create the object." > s := FXSession new. > > "I attempt to login" > s login: ( FXSession demoArgs ). > > "If login is successful, I test with getServerTime." > s getServerTime. > > Creating the object is successful. The login seems to freeze the UI. Then > after a number of minutes. I don't know how many. I didn't watch. > > I then get the below output in the terminal. > > > jimmie@squirrel:~/Dev/Pharo/pharo2.0$ ./pharo shared/Pharo2.0.image > ALL=0;ERR=0;LAST=0;ARML=0ALL=0;ERR=0;LAST=0;ARML=0ALL=1;ERR=1;LAST=0;ARML=0ALL=1;ERR=1;LAST=0;ARML=0^C > jimmie@squirrel:~/Dev/Pharo/pharo2.0$ ./pharo shared/Pharo2.0.image > ALL=0;ERR=0;LAST=0;ARML=0ALL=0;ERR=0;LAST=0;ARML=0ALL=1;ERR=1;LAST=0;ARML=0ALL=1;ERR=1;LAST=0;ARML=0ALL=2;ERR=2;LAST=0;ARML=0ALL=2;ERR=2;LAST=0;ARML=0ALL=3;ERR=3;LAST=0;ARML=0ALL=3;ERR=3;LAST=0;ARML=0ALL=4;ERR=4;LAST=0;ARML=0ALL=4;ERR=4;LAST=0;ARML=0ALL=5;ERR=5;LAST=0;ARML=0ALL=5;ERR=5;LAST=0;ARML=0ALL=6;ERR=6;LAST=0;ARML=0ALL=6;ERR=6;LAST=0;ARML=0ALL=7;ERR=7;LAST=0;ARML=0ALL=7;ERR=7;LAST=0;ARML=0ALL=8;ERR=8;LAST=0;ARML=0ALL=0;ERR=0;LAST=0;ARML=0ALL=1;ERR=1;LAST=0;ARML=0ALL=2;ERR=2;LAST=0;ARML=0ALL=3;ERR=3;LAST=0;ARML=0ALL=4;ERR=4;LAST=0;ARML=0ALL=5;ERR=5;LAST=0;ARML=0ALL=6;ERR=6;LAST=0;ARML=0ALL=7;ERR=7;LAST=0;ARML=0ALL=8;ERR=8;LAST=0;ARML=0ALL=9;ERR=9;LAST=0;ARML=0ALL=10;ERR=10;LAST=0;ARML=0ALL=11;ERR=11;LAST=0;ARML=0ALL=12;ERR=12;LAST=0;ARML=0ALL=13;ERR=13;LAST=0;ARML=0ALL=14;ERR=14;LAST=0;ARML=0ALL=15;ERR=15;LAST=0;ARML=0ALL=16;ERR=16;LAST=0;ARML=0ALL=17;ERR=17;LAST=0;ARML=0ALL=18;ERR=18;LAST=0;ARML=0ALL=19;ERR=19;LAST=0;ARML=0ALL=20;ERR=20;LAST=0;ARML=0ALL=21;ERR=21;LAST=0;ARML=0ALL=22;ERR=22;LAST=0;ARML=0ALL=23;ERR=23;LAST=0;ARML=0ALL=24;ERR=24;LAST=0;ARML=0ALL=25;ERR=25;LAST=0;ARML=0ALL=26;ERR=26;LAST=0;ARML=0ALL=27;ERR=27;LAST=0;ARML=0ALL=28;ERR=28;LAST=0;ARML=0ALL=29;ERR=29;LAST=0;ARML=0ALL=30;ERR=30;LAST=0;ARML=0 > Segmentation fault Tue Apr 2 21:10:46 2013 > > > pharo VM version: 3.9-7 #1 Wed Mar 13 18:22:44 CET 2013 gcc 4.4.3 > Built from: NBCoInterpreter NativeBoost-CogPlugin-EstebanLorenzano.18 uuid: > a53445f9-c0c0-4015-97a3-be7db8d9ed6b Mar 13 2013 > With: NBCogit NativeBoost-CogPlugin-EstebanLorenzano.18 uuid: > a53445f9-c0c0-4015-97a3-be7db8d9ed6b Mar 13 2013 > Revision: git://gitorious.org/cogvm/blessed.git Commit: > 412abef33cbed05cf1d75329e451d71c0c6aa5a7 Date: 2013-03-13 17:48:50 +0100 By: > Esteban Lorenzano <[hidden email]> Jenkins build #14535 > Build host: Linux linux-ubuntu-10 2.6.32-38-server #83-Ubuntu SMP Wed Jan 4 > 11:26:59 UTC 2012 x86_64 GNU/Linux > plugin path: /home/jimmie/Dev/Pharo/pharo2.0/bin [default: > /home/jimmie/Dev/Pharo/pharo2.0/bin/] > > > C stack backtrace: > /home/jimmie/Dev/Pharo/pharo2.0/bin/pharo[0x80a0c0c] > /home/jimmie/Dev/Pharo/pharo2.0/bin/pharo[0x80a0f28] > [0xb76f240c] > /home/jimmie/Dev/ForexConnectAPI-1.2.2-Linux-i686/lib/libForexConnect.so(_ZN18ServerCommunicator24connectToPriceFeedServerEPKc+0x62)[0x76f16632] > /home/jimmie/Dev/ForexConnectAPI-1.2.2-Linux-i686/lib/libForexConnect.so(_ZN18ServerCommunicator13onReconnectedEv+0x3e)[0x76f175ee] > /home/jimmie/Dev/ForexConnectAPI-1.2.2-Linux-i686/lib/libForexConnect.so(_ZN15CStatusListener27onTradeSessionStatusChangedEii+0xec)[0x76f153dc] > /home/jimmie/Dev/ForexConnectAPI-1.2.2-Linux-i686/lib/libForexConnect.so(_ZN15CStatusListener6updateEPK12IUserSessionPK14ISessionStatus+0x89)[0x76f15479] > /home/jimmie/Dev/ForexConnectAPI-1.2.2-Linux-i686/lib/libfxmsg.so(_ZN20UniversalUserSession16sendStatusUpdateEv+0x159)[0x76b94b89] > /home/jimmie/Dev/ForexConnectAPI-1.2.2-Linux-i686/lib/libfxmsg.so(_ZN17UniversalRelogger21onReloginSuccessfullyEP17ITransportSession+0xf0)[0x76b90860] > /home/jimmie/Dev/ForexConnectAPI-1.2.2-Linux-i686/lib/libfxmsg.so(_ZN17UniversalRelogger7reloginEP17ITransportSession+0xaf)[0x76b9098f] > /home/jimmie/Dev/ForexConnectAPI-1.2.2-Linux-i686/lib/libfxmsg.so(_ZN17UniversalRelogger3runEPv+0x2f9)[0x76b90cc9] > /home/jimmie/Dev/ForexConnectAPI-1.2.2-Linux-i686/lib/libfxmsg.so(_ZN9threading7AThread12threadRunnerEPv+0x1f)[0x76b9901f] > /lib/i386-linux-gnu/libpthread.so.0(+0x6d4c)[0xb7693d4c] > /lib/i386-linux-gnu/libc.so.6(clone+0x5e)[0xb75d1d3e] > > Can't dump Smalltalk stack(s). Not in VM thread > > Most recent primitives > relinquishProcessorForMicroseconds: > ... > > > I don't know what I may be doing wrong, or if there is something not working > right in the NBLinux VM. > > I can email the code if that helps. There is nothing personal in the code. I > created a test library to attempt to narrow down the problem. It is code to > access the FXCM servers for Forex Trading. I used a demo account to login. > It isn't personal data. > http://www.fxcm.com > > I plan on releasing the Pharo wrapper around this C library when it is > ready. > > Any help greatly appreciated. > > Jimmie > > -- Best regards, Igor Stasenko. |
Free forum by Nabble | Edit this page |