[noPoll] NoPoll does not install latest 0.4.7 version on centos 7
Francis Brosnan Blazquez
francis.brosnan at aspl.es
Thu Aug 11 11:08:52 CEST 2022
Hello Alexander,
About mirror, we do not controll that resource:
https://download.postgresql.org/pub/repos/yum/9.4/redhat/rhel-7-x86_64/repodata/repomd.xml:
[Errno 14] HTTPS Error 404 - Not Found
About error you are reporting, we have:
|==16754==ERROR: AddressSanitizer: SEGV on unknown address
0x7fff68000008 (pc 0x7fc1db73d30d bp 0x61100003a100 sp 0x7fc1d517a970 T6)||
||==16754==The signal is caused by a READ memory access.|
...at the same time, we have signal caused at this line
(https://github.com/ASPLes/nopoll/blob/master/src/nopoll_conn.c#L3260):
| /* get the first 2 bytes from the websocket header */||
|| bytes = __nopoll_conn_receive (conn, buffer, 2);||
|| if (bytes == 0) {||
|| /* connection not ready */||
||line 3260: nopoll_log (conn->ctx, NOPOLL_LEVEL_DEBUG,
"Connection id=%d without data, errno=%d : %s, returning no message",||
|| conn->id, errno, strerror (errno));||
|| return NULL;||
|| }|
Reading the line and the error, and knowing it is a very well tested
execution path,
it looks like you are passing a deallocated connection, or similar. Not
a nopoll issue.
Another indicator that something with the memory is not handled
correctly, is that the
sigsegv report is failing on a function that returns constant strings,
so in normal circumstances,
it cannot trigger SIGSEGV given strerror (int) => "const char *"
(constant -> constant, no modify, no error)
| #0 0x7fc1db73d30c in __GI_getenv (/usr/lib64/libc.so.6+0x3930c)||
|| #1 0x7fc1db734e2d in __dcigettext (/usr/lib64/libc.so.6+0x30e2d)||
|| #2 0x7fc1db790cdd in __GI___strerror_r
(/usr/lib64/libc.so.6+0x8ccdd)||
||* #3 0x7fc1db790c1e in strerror (/usr/lib64/libc.so.6+0x8cc1e)*||
|| #4 0x7fc1ddc1f5ec in nopoll_conn_get_msg
/usr/src/nopoll/trunk/rpm/BUILD/nopoll-0.4.7.b429/src/nopoll_conn.c:3260||
|| #5 0xcbd60f in wsfeed_perform_single_feed_operation
/home/petliar/mygitworkdir/inrush_ftx_2/libwsfeed/wsfeed.c:450||
|| #6 0x8650fa in worker_main
/home/petliar/mygitworkdir/inrush_ftx_2/libserverx86/server_worker.c:2155||
|| #7 0x7fc1de9b7ea4 in start_thread
(/usr/lib64/libpthread.so.0+0x7ea4)||
|| #8 0x7fc1db8029fc in clone (/usr/lib64/libc.so.6+0xfe9fc)|
However, having said that, it is also suspicious that the signal trigger
is located
at __GI_getenv...maybe you are using an outdated libc6...or some locale
configuration
causing problems while attempting to get a localized strerror (errno).
If that is the case,
try running your application changing locale to defaults and see it it
is more stable:
|LANG=C ./your-application-running-nopoll|
In any case, this backtrace is very rare, so I will bet for the simplest
explanation first: something
with the memory (double deallocation, passing something that is not a
connection, deallocating
segments affecting part of your application...).
Best Regards,
El 11/8/22 a las 7:26, Alexander Petliar escribió:
> Hello Francis,
>
> * We were able to download 0.4.7 version for centos 7.
> * Thank you for your help with this issue!
> * May it be that the mirrors were updated overnight?
>
> sudo yum install libnopoll0-dev libnopoll0 --downloadonly
> --downloaddir=/tmp
> [petliar at ip-10-148-18-164 ~]$ ll /tmp/
> -rw-r--r-- 1 root root 160776 Aug 10 07:20
> libnopoll0-0.4.7.b429-5.el7.x86_64.rpm
> -rw-r--r-- 1 root root 18664 Aug 10 07:20
> libnopoll0-dev-0.4.7.b429-5.el7.x86_64.rpm
>
>
> * *We have a crash inside the nopoll library.*
> After running for some time (one time it was 10 minutes, another
> time it was 30 minutes) and receiving and processing hundreds and
> thousands of messages, it stopped, see below.
> Could you please help us understand the problem and how to fix it?
>
>
> ASAN:DEADLYSIGNAL
> =================================================================
> Thu Aug 11 00:32:30.522 SYSTEM_MONITOR NOTICE [0] | "FTX" is in
> America/New_York
> Thu Aug 11 00:32:30.522 SYSTEM_MONITOR DEBUG fh_do_tz_check()
> Doing TZ check
> Thu Aug 11 00:32:30.522 SYSTEM_MONITOR DEBUG fh_do_tz_check()
> America/New_York : Thu Aug 11 00:32:30 2022
> ==16754==ERROR: AddressSanitizer: SEGV on unknown address
> 0x7fff68000008 (pc 0x7fc1db73d30d bp 0x61100003a100 sp
> 0x7fc1d517a970 T6)
> ==16754==The signal is caused by a READ memory access.
> Thu Aug 11 00:32:30.531 SYSTEM_MONITOR NOTICE Setting UTC offset
> for [0] | "FTX" to 1660190400000000000
> Thu Aug 11 00:32:30.531 FCPSRV DEBUG
> CMD_UPDATE_EXCHANGE_TZ_OFFSET feed:FTX offset:-7563181636854775808
> #0 0x7fc1db73d30c in __GI_getenv (/usr/lib64/libc.so.6+0x3930c)
> #1 0x7fc1db734e2d in __dcigettext (/usr/lib64/libc.so.6+0x30e2d)
> #2 0x7fc1db790cdd in __GI___strerror_r
> (/usr/lib64/libc.so.6+0x8ccdd)
> #3 0x7fc1db790c1e in strerror (/usr/lib64/libc.so.6+0x8cc1e)
> #4 0x7fc1ddc1f5ec in nopoll_conn_get_msg
> /usr/src/nopoll/trunk/rpm/BUILD/nopoll-0.4.7.b429/src/nopoll_conn.c:3260
> #5 0xcbd60f in wsfeed_perform_single_feed_operation
> /home/petliar/mygitworkdir/inrush_ftx_2/libwsfeed/wsfeed.c:450
> #6 0x8650fa in worker_main
> /home/petliar/mygitworkdir/inrush_ftx_2/libserverx86/server_worker.c:2155
> #7 0x7fc1de9b7ea4 in start_thread
> (/usr/lib64/libpthread.so.0+0x7ea4)
> #8 0x7fc1db8029fc in clone (/usr/lib64/libc.so.6+0xfe9fc)
>
>
>
> Regards,
> * Alexander Petliar
> Pico / Redline Trading Solution
>
>
> ------------------------------------------------------------------------
> *From:* Alexander Petliar <alexander.petliar at pico.net>
> *Sent:* Wednesday, August 10, 2022 5:55 PM
> *To:* Francis Brosnan Blazquez <francis.brosnan at aspl.es>;
> nopoll at lists.aspl.es <nopoll at lists.aspl.es>
> *Cc:* Michael Feole <michael.feole at pico.net>; John Moore
> <john.moore at pico.net>
> *Subject:* Re: [noPoll] NoPoll does not install latest 0.4.7 version
> on centos 7
> Francis,
>
> We are located in the USA, may it be that the mirror servers serving
> North America are not updated?
>
> Regards,
> Alexander
>
> ------------------------------------------------------------------------
> *From:* Alexander Petliar <alexander.petliar at pico.net>
> *Sent:* Wednesday, August 10, 2022 9:53 AM
> *To:* Francis Brosnan Blazquez <francis.brosnan at aspl.es>;
> nopoll at lists.aspl.es <nopoll at lists.aspl.es>
> *Cc:* Michael Feole <michael.feole at pico.net>
> *Subject:* Re: [noPoll] NoPoll does not install latest 0.4.7 version
> on centos 7
> Hello Francis,
>
> Here is the corrected output:
>
> petliar at ip-10-148-20-125 ~]$ sudo yum install libnopoll0-dev
> libnopoll0 --downloadonly
> Loaded plugins: fastestmirror
> Loading mirror speeds from cached hostfile
> * base: mirror.centos.org
> * epel: forksystems.mm.fcix.net
> * extras: mirror.centos.org
> * updates: mirror.centos.org
> Resolving Dependencies
> --> Running transaction check
> ---> Package libnopoll0.x86_64 0:0.4.6.b400-5.el7 will be installed
> ---> Package libnopoll0-dev.x86_64 0:0.4.6.b400-5.el7 will be installed
> --> Finished Dependency Resolution
>
> Dependencies Resolved
>
> ==============================================================================================================================================================================================================================================================================
> Package Arch Version Repository
> Size
> ==============================================================================================================================================================================================================================================================================
> Installing:
> libnopoll0 x86_64 0.4.6.b400-5.el7
> aspl-public 157 k
> libnopoll0-dev x86_64 0.4.6.b400-5.el7
> aspl-public 18 k
>
> Transaction Summary
> ==============================================================================================================================================================================================================================================================================
> Install 2 Packages
>
> Total size: 175 k
> Installed size: 689 k
> Background downloading packages, then exiting:
> exiting because "Download Only" specified
>
>
> Thanks,
> Alexander
> ------------------------------------------------------------------------
> *From:* Alexander Petliar <alexander.petliar at pico.net>
> *Sent:* Wednesday, August 10, 2022 9:43 AM
> *To:* Francis Brosnan Blazquez <francis.brosnan at aspl.es>;
> nopoll at lists.aspl.es <nopoll at lists.aspl.es>
> *Cc:* Michael Feole <michael.feole at pico.net>
> *Subject:* Re: [noPoll] NoPoll does not install latest 0.4.7 version
> on centos 7
> Hello Francis,
>
> I tried it again, but the problem still exists, it installs 0.4.6
> version for centos7, please see below:
>
>
> [petliar at ip-10-148-20-125 ~]$ sudo yum install libnopoll0-dev
> libnopoll0 --downloadonly
> Loaded plugins: fastestmirror
> https://download.postgresql.org/pub/repos/yum/9.4/redhat/rhel-7-x86_64/repodata/repomd.xml:
> [Errno 14] HTTPS Error 404 - Not Found
> Trying other mirror.
> To address this issue please refer to the below knowledge base article
>
> https://access.redhat.com/articles/1320623
>
> If above article doesn't help to resolve this issue please create a
> bug on https://bugs.centos.org/
>
> Loading mirror speeds from cached hostfile
> * base: mirror.centos.org
> * epel: forksystems.mm.fcix.net
> * extras: mirror.centos.org
> * updates: mirror.centos.org
> Resolving Dependencies
> --> Running transaction check
> ---> Package libnopoll0.x86_64 0:0.4.6.b400-5.el7 will be installed
> ---> Package libnopoll0-dev.x86_64 0:0.4.6.b400-5.el7 will be installed
> --> Finished Dependency Resolution
>
> Dependencies Resolved
>
> ==============================================================================================================================================================================================================================================================================
> Package Arch Version
> Repository Size
> ==============================================================================================================================================================================================================================================================================
> Installing:
> libnopoll0 x86_64
> 0.4.6.b400-5.el7 aspl-public
> 157 k
> libnopoll0-dev x86_64
> 0.4.6.b400-5.el7 aspl-public
> 18 k
>
> Transaction Summary
> ==============================================================================================================================================================================================================================================================================
> Install 2 Packages
>
> Total download size: 175 k
> Installed size: 689 k
> Background downloading packages, then exiting:
> (1/2): libnopoll0-dev-0.4.6.b400-5.el7.x86_64.rpm
> | 18 kB 00:00:00
> (2/2): libnopoll0-0.4.6.b400-5.el7.x86_64.rpm |
> 157 kB 00:00:00
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> Total 305 kB/s | 175 kB 00:00:00
> exiting because "Download Only" specified
>
>
>
>
> Thanks,
> Alexander
> ------------------------------------------------------------------------
> *From:* Francis Brosnan Blazquez <francis.brosnan at aspl.es>
> *Sent:* Wednesday, August 10, 2022 7:35 AM
> *To:* Alexander Petliar <alexander.petliar at pico.net>;
> nopoll at lists.aspl.es <nopoll at lists.aspl.es>
> *Cc:* Michael Feole <michael.feole at pico.net>
> *Subject:* Re: [noPoll] NoPoll does not install latest 0.4.7 version
> on centos 7
>
> Hello Alexander,
>
> Problem is now fixed. You should be able to download latest stable
> published.
>
> Best Regards,
>
> |[root at centos-7-amd64 src]# yum install libnopoll0-dev libnopoll0
> --downloadonly||
> ||Loaded plugins: fastestmirror||
> ||Loading mirror speeds from cached hostfile||
> || * base: mirror.uv.es||
> || * epel: mirror.uv.es||
> || * extras: mirror.uv.es||
> || * updates: mirror.uv.es||
> ||Resolving Dependencies||
> ||--> Running transaction check||
> ||---> Package libnopoll0.x86_64 0:0.4.2.b289-5.el7.centos will be
> updated||
> ||---> Package libnopoll0.x86_64 0:0.4.6.b400-5.el7 will be updated||
> ||---> Package libnopoll0.x86_64 0:0.4.7.b429-5.el7 will be an update||
> ||---> Package libnopoll0-dev.x86_64 0:0.4.2.b289-5.el7.centos will be
> updated||
> ||---> Package libnopoll0-dev.x86_64 0:0.4.6.b400-5.el7 will be updated||
> ||---> Package libnopoll0-dev.x86_64 0:0.4.7.b429-5.el7 will be an
> update||
> ||--> Finished Dependency Resolution||
> ||
> ||Dependencies Resolved||
> ||
> ||=========================================================================================================================================================================================================================================||
> || Package Arch Version
> Repository Size||
> ||=========================================================================================================================================================================================================================================||
> ||Updating:||
> || libnopoll0 x86_64 0.4.7.b429-5.el7 core-admin 157 k||
> || libnopoll0-dev x86_64 0.4.7.b429-5.el7
> core-admin 18 k||
> ||
> ||Transaction Summary||
> ||=========================================================================================================================================================================================================================================||
> ||Upgrade 2 Packages||
> ||
> ||Total size: 175 k||
> ||Background downloading packages, then exiting:||
> ||exiting because "Download Only" specified|
>
>
> El 9/8/22 a las 18:11, Alexander Petliar escribió:
>> Hello,
>>
>> Could you please help me with the following problem:
>> I am following the installation instruction from the website
>> (https://www.aspl.es/nopoll/downloads.html
>> <https://www.aspl.es/nopoll/downloads.html>)
>> to install NoPoll library on my Centos 7,
>> and it installs 0.4.6 version instead of the latest 0.4.7
>>
>> Please see my steps below:
>>
>> >yum search nopoll
>> ...........
>> ========================================================= N/S
>> matched: nopoll ========================================
>> libnopoll0.x86_64 : WebSocket OpenSource implementation
>> libnopoll0-dev.x86_64 : WebSocket OpenSource implementation (devel)
>>
>> >sudo yum install libnopoll0.x86_64
>> ......
>> Downloading packages:
>> *libnopoll0-0.4.6.b400-5.el7.x86_64.rpm*
>> Installed:
>> * libnopoll0.x86_64 0:0.4.6.b400-5.el7*
>> *
>> *
>>
>>
>> Regards,
>> Alexander Petliar
>> Pico / Redline Trading Solution
>>
>> ------------------------------------------------------------------------
>> Pico Quantitative Trading LLC ("PQT"). This e-mail (including any
>> attachments) is intended only for use by the addressee(s) named
>> above, and may contain confidential, proprietary or legally
>> privileged information. If you are not the intended recipient of this
>> e-mail, any review, use, disclosure, dissemination, distribution,
>> printing or copying of this e-mail or any attachment is strictly
>> prohibited. If you have received this e-mail in error, please notify
>> Pico immediately by return e-mail and permanently delete the original
>> from your system and any hard copy printout thereof. E-mails are not
>> encrypted and cannot be guaranteed to be secure or error-free and, as
>> with all Internet communications, information could be intercepted,
>> corrupted, lost, destroyed, arrive late or incomplete, or contain
>> viruses. Accordingly, Pico accepts no liability for any errors or
>> omissions in the content contained herein. In compliance with
>> applicable laws, rules and regulations and/or at its discretion, Pico
>> may review and archive incoming and outgoing e-mail communications,
>> copies of which may be produced at the request of regulators.
>>
>> _______________________________________________
>> noPoll mailing list
>> noPoll at lists.aspl.es <mailto:noPoll at lists.aspl.es>
>> http://lists.aspl.es/cgi-bin/mailman/listinfo/nopoll <http://lists.aspl.es/cgi-bin/mailman/listinfo/nopoll>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.aspl.es/pipermail/nopoll/attachments/20220811/55e77315/attachment-0001.html>
More information about the noPoll
mailing list