InternetofThingsprogrammer commented on issue #2939:
URL: https://github.com/apache/brpc/issues/2939#issuecomment-2780706358

   > 为啥测试还能失败呀??? ./test/bthread_fd_unittest Running main() from gtest_main.cc 
[==========] Running 13 tests from 1 test case. [----------] Global test 
environment set-up. [----------] 13 tests from FDTest [ RUN ] 
FDTest.read_kernel_version sysname=Linux nodename=LAPTOP-5MQR6E0V 
release=6.6.75.1-microsoft-standard-WSL2 
version=[#1](https://github.com/apache/brpc/issues/1) SMP PREEMPT_DYNAMIC Sat 
Feb 8 02:00:20 UTC 2025 machine=x86_64 [ OK ] FDTest.read_kernel_version (0 ms) 
[ RUN ] FDTest.ping_pong I0405 18:51:18.898898 320470 4294967297 
/home/don/WorkSapce/brpc/src/bthread/fd.cpp:337] Use DEL+ADD instead of 
EPOLLONESHOT+MOD due to kernel bug. Performance will be much lower. I0405 
18:51:26.909480 320466 0 
/home/don/WorkSapce/brpc/test/bthread_fd_unittest.cpp:332] tid=112349 
break_nums=0 [ OK ] FDTest.ping_pong (8114 ms) [ RUN ] FDTest.mod_closed_fd [ 
OK ] FDTest.mod_closed_fd (0 ms) [ RUN ] FDTest.add_existing_fd [ OK ] 
FDTest.add_existing_fd (0 ms) [ RUN ] FDTest.i
 nterrupt_pthread wake up 129553589462720 129553589462720 quits wake up 
129553618908864 129553618908864 quits [ OK ] FDTest.interrupt_pthread (201 ms) 
[ RUN ] FDTest.invalid_epoll_events F0405 18:51:27.217385 320466 0 
/home/don/WorkSapce/brpc/src/butil/endpoint.cpp:403] Check failed: 
(uint32_t)poll_events == epoll_events (0 vs 2147483648). #0 0x75d41480469b 
[#1](https://github.com/apache/brpc/issues/1) 0x5f569ea7b7cd 
[#2](https://github.com/apache/brpc/issues/2) 0x5f569eaac8a7 
[#3](https://github.com/apache/brpc/issues/3) 0x5f569eaa0b05 
testing::internal::ShouldUseColor() 
[#4](https://github.com/apache/brpc/issues/4) 0x5f569eaa0c58 
testing::internal::ColoredPrintf() 
[#5](https://github.com/apache/brpc/issues/5) 0x5f569eaa0d35 
testing::internal::ColoredPrintf() 
[#6](https://github.com/apache/brpc/issues/6) 0x5f569eaa1224 
testing::internal::XmlUnitTestResultPrinter::XmlUnitTestResultPrinter() 
[#7](https://github.com/apache/brpc/pull/7) 0x5f569eaaceff 
testing::GetReservedAttributesForEl
 ement() [#8](https://github.com/apache/brpc/issues/8) 0x5f569eaa131e 
testing::internal::XmlUnitTestResultPrinter::RemoveInvalidXmlCharacters() 
[#9](https://github.com/apache/brpc/pull/9) 0x5f569ea76e08 
[#10](https://github.com/apache/brpc/pull/10) 0x75d413a2a1ca 
[#11](https://github.com/apache/brpc/issues/11) 0x75d413a2a28b 
[#12](https://github.com/apache/brpc/issues/12) 0x5f569ea770f5
   > 
   > F0405 18:51:27.218501 320466 0 
/home/don/WorkSapce/brpc/src/butil/endpoint.cpp:403] Check failed: 
(uint32_t)poll_events == epoll_events (1 vs 2147483649). #0 0x75d41480469b 
[#1](https://github.com/apache/brpc/issues/1) 0x5f569ea7b910 
[#2](https://github.com/apache/brpc/issues/2) 0x5f569eaac8a7 
[#3](https://github.com/apache/brpc/issues/3) 0x5f569eaa0b05 
testing::internal::ShouldUseColor() 
[#4](https://github.com/apache/brpc/issues/4) 0x5f569eaa0c58 
testing::internal::ColoredPrintf() 
[#5](https://github.com/apache/brpc/issues/5) 0x5f569eaa0d35 
testing::internal::ColoredPrintf() 
[#6](https://github.com/apache/brpc/issues/6) 0x5f569eaa1224 
testing::internal::XmlUnitTestResultPrinter::XmlUnitTestResultPrinter() 
[#7](https://github.com/apache/brpc/pull/7) 0x5f569eaaceff 
testing::GetReservedAttributesForElement() 
[#8](https://github.com/apache/brpc/issues/8) 0x5f569eaa131e 
testing::internal::XmlUnitTestResultPrinter::RemoveInvalidXmlCharacters() 
[#9](https://github.com/apache/brpc/pul
 l/9) 0x5f569ea76e08 [#10](https://github.com/apache/brpc/pull/10) 
0x75d413a2a1ca [#11](https://github.com/apache/brpc/issues/11) 0x75d413a2a28b 
[#12](https://github.com/apache/brpc/issues/12) 0x5f569ea770f5
   > 
   > [ OK ] FDTest.invalid_epoll_events (16 ms) [ RUN ] FDTest.timeout [ OK ] 
FDTest.timeout (51 ms) [ RUN ] FDTest.close_should_wakeup_waiter F0405 
18:51:27.278537 320473 4294969632 
/home/don/WorkSapce/brpc/src/bthread/fd.cpp:254] Fail to add fd=74 into 
epfd=66: Bad file descriptor [ OK ] FDTest.close_should_wakeup_waiter (0 ms) [ 
RUN ] FDTest.close_definitely_invalid [ OK ] FDTest.close_definitely_invalid (0 
ms) [ RUN ] FDTest.bthread_close_fd_which_did_not_call_bthread_functions [ OK ] 
FDTest.bthread_close_fd_which_did_not_call_bthread_functions (0 ms) [ RUN ] 
FDTest.double_close [ OK ] FDTest.double_close (0 ms) [ RUN ] 
FDTest.bthread_connect 
/home/don/WorkSapce/brpc/test/bthread_fd_unittest.cpp:597: Failure Expected: -1 
To be equal to: rc Which is: 0 [ FAILED ] FDTest.bthread_connect (13 ms) [ RUN 
] FDTest.interrupt I0405 18:51:27.298435 320475 4294969634 
/home/don/WorkSapce/brpc/test/bthread_fd_unittest.cpp:617] Connect to 
198.18.0.20:80, cost 1ms [ OK ] FDTest.interrupt (7 ms)
  [----------] 13 tests from FDTest (8402 ms total)
   > 
   > [----------] Global test environment tear-down [==========] 13 tests from 
1 test case ran. (8403 ms total) [ PASSED ] 12 tests. [ FAILED ] 1 test, listed 
below: [ FAILED ] FDTest.bthread_connect
   > 
   > 1 FAILED TEST root@LAPTOP-5MQR6E0V:/home/don/WorkSapce/brpc/build-test#
   
   
![Image](https://github.com/user-attachments/assets/ca6c60c4-2852-4559-810a-a2d9f0573dbc)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org
For additional commands, e-mail: dev-h...@brpc.apache.org

Reply via email to