Comments (6)
Wow, found it! In Linux this does not work as expected:
ByePacket::Iterator it = bye1.Begin();
fct_chk_eq_int(*(it), ssrc1);
fct_chk_eq_int(*(++it), ssrc2);
But this does work:
ByePacket::Iterator it = bye1.Begin();
fct_chk_eq_int(*(it), ssrc1);
it++;
fct_chk_eq_int(*(it), ssrc2);
from mediasoup.
I don't know why this happens. The following C++ foo.cpp
code does work as expected in the same Linux server:
#include <iostream>
#include <vector>
int main()
{
std::vector<int> values;
values.push_back(1111);
values.push_back(2222);
std::vector<int>::iterator it = values.begin();
std::cout << "first value : " << *it << std::endl;
std::cout << "second value : " << *(++it) << std::endl;
}
$ g++ -std=c++11 foo.cpp && ./a.out
first value : 1111
second value : 2222
So I will reopen the issue.
from mediasoup.
Weird.., let me check it.
from mediasoup.
By doing some local testings, I think that parameters given to fct
functions must be "static", I mean: those will be evaluated after the full test code ends (not sure how to explain it). So, don't evaluate variables within a fct
function.
from mediasoup.
I guess this issue does not make sense anymore
from mediasoup.
Indeed. I've tested the original code with the new test unit framework and it does NOT fail in Linux:
REQUIRE(*(++it) == ssrc2);
from mediasoup.
Related Issues (20)
- Rust docs for 0.13 failed to build HOT 4
- Validation functions at `ortc.ts` file are modifying input data HOT 10
- io-uring not enabled in Linux mediasoup-worker prebuilt since it uses kernel 5.15 HOT 10
- Need kernel 6 capable Linux CI host to produce worker prebuilt with io-uring support HOT 1
- Windows CI jobs failing due to meson HOT 4
- [Rust] Unable to build mediasoup > 0.12 with Docker HOT 3
- Issues in Node tests HOT 3
- Doubt with test HOT 6
- Worker hits ASSERT condition in production HOT 14
- About v3.13.15, io_uring, and liburing HOT 7
- [Rust] Worker panics when running with multiple workers HOT 19
- announced_ip can also be a hostname (not possible in Rust)
- Rename "announced ip" to "announced address"
- [Rust] `Box<dyn Error>` error types make mediasoup error handling annoying HOT 1
- Wrong handle of response in Channel.ts? HOT 1
- Fail to compile mediasoup fuzzer due to liburing HOT 21
- Fuzzer fails immediately due to abseil: AddressSanitizer: SEGV HOT 12
- (ABORT) RTC::RTCP::FeedbackRtpTransport::AddPacket() | failed assertion `baseSet': base not set HOT 4
- OpenSSL send buffer growing without bounds in DtlsTransport (worker memory leak) HOT 22
- Implement FLEX FEC - RFC 8627
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mediasoup.