earthscope / libslink Goto Github PK
View Code? Open in Web Editor NEWThe SeedLink client library
License: Apache License 2.0
The SeedLink client library
License: Apache License 2.0
In release v2.7.1:
sl_utils.c:
sl_collect() and sl_clollect_nb():
(line 209) (line 618)
while (slconn->stat->recptr - slconn->stat->sendptr >= SLHEADSIZE + SLRECSIZEMIN)
SLRECSIZEMIN is defined as 48, which only accounts for the fixed header of a miniSEED 2 record and not for any blockettes.
Blockette 1000 contains the record size.
False failures can occur intermittently depending on IP stack packetization and timing.
Increasing SLRECSIZEMIN to 56 to account for the size of blockette 1000 most likely resolves the issue for MOST situations, but NOT ALL since blockette 1000 is not required to be the first blockette in the record. Additional logic is probably required.
This affects all programs that use libslink v2.7.1. i.e;
SLINKTOOL v4.5.0
SLARCHIVE v2.3
Good morning @chad-iris,
libslink 2020.048 suffers from (at least) the below two bugs:
Bug description | Impact of bug |
---|---|
The sl_collect() and sl_collect_nb_size() function implementations erroneously process incomplete SeedLink packets, due to mishandling the 8-byte discrepancy between SeedLink packet size (520 bytes) and miniSEED record size (512 bytes) | Segmentation fault on all platforms |
The detect() function implementation can often erroneously perform unaligned memory accesses | Bus error on some platforms |
Because you’ve already moved on to the libslink v3.x (i.e. “seedlinkv4”) branch, I can understand if you are reluctant to continue maintaining (e.g. fixing bugs in) the libslink v2.x (i.e. “develop”) branch.
Hence, I humbly propose that I become the maintainer of the libslink v2.8.x LTS branch. I’m willing and able to fork the libslink v2.x (i.e. “develop”) branch → the libslink v2.8.x LTS branch, then fix the above two bugs in the libslink v2.8.x LTS branch, then release libslink v2.8.0 LTS, and then fix any future bugs that are reported against libslink v2.8.x LTS.
This way, you can continue focusing on libslink v3.x, while I look after (the users of) libslink v2.x. My continued maintenance of the libslink v2.8.x LTS branch, will allow existing SeedLink clients to continue operating correctly, while giving these SeedLink clients time to adjust to the new libslink v3.x API.
If, for whatever reason, you wish to take back control of the libslink v2.x branch in the future, you can just release libslink v2.9.0. Everything in and from the libslink v2.8.x LTS branch will be superseded by your libslink v2.9.0.
Would you like me to become the maintainer of the libslink v2.8.x LTS branch?
Hi there,
I tried to compile libslink 2.7 on Arch Linux and got following error from ld
linker:
/usr/bin/ld: cannot open linker script file libslink.map: No such file or directory
Apparently there is no libslink.map
file.
Hi,
Is the SeedLink protocol implemented in this library formally described somewhere?.
Documentation on the seiscomp site is very short and important parts are missing.
Please excuse me if this is not the right place to ask for this. Thanks.
I thinks it is better to return the stacount and not count in the sl_read_streamlist in config.c. Because if your streamlist file have some empty line, count is different of stacount.
In the branch of develop.
(slconn->stat->slpack.reclen > 0 && slconn->stat->slpack.reclen > bufferlen)) should be (slconn->stat->slpack.reclen > 0 && slconn->stat->slpack.reclen + SLHEADSIZE > bufferlen))
otherwise sendptr will be bigger than recptr
send:1560, rec:1556
Hi there,
Could you change the Makefile
install section to also install man-pages?
thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.