8000 debug 模式下 demo 运行 network_ping 断言失败 · Issue #273 · tboox/tbox · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

debug 模式下 demo 运行 network_ping 断言失败 #273

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
for2years opened this issue Feb 12, 2025 · 1 comment
Open

debug 模式下 demo 运行 network_ping 断言失败 #273

for2years opened this issue Feb 12, 2025 · 1 comment

Comments

@for2years
Copy link

描述问题详情

debug 模式运行 tbox demo 断言失败:

./configure --mode=debug
make
./build/linux/x86_64/debug/demo network_ping www.baidu.com

报错日志

[tbox]: init: ..
[tbox]: version: tbox_v1_7_6_20250212_x86_64_sse2_elf by gnu c/c++ 11.4
[tbox]: init: ok
[tbox]: [platform_socket]: init: type: 514, family: 1, sock: 0x4
[tbox]: [platform_socket]: usend: 0x4 127.0.0.53:53 31 bytes => 31 bytes, errno: 0
[tbox]: [platform_socket]: urecv: 0x4 524 bytes => -1 bytes, errno: 11
[tbox]: [platform_socket]: urecv: 0x4 524 bytes => 103 bytes, errno: 11
[tbox]: [platform_socket]: close: 0x4
[tbox]: [platform_socket]: init: type: 514, family: 1, sock: 0x4
[tbox]: [platform_socket]: usend: 0x4 127.0.0.53:53 31 bytes => 31 bytes, errno: 11
[tbox]: [platform_socket]: urecv: 0x4 524 bytes => -1 bytes, errno: 11
[tbox]: [platform_socket]: urecv: 0x4 524 bytes => 90 bytes, errno: 11
[tbox]: [platform_socket]: urecv: 0x4 434 bytes => -1 bytes, errno: 11
[tbox]: [platform_socket]: close: 0x4
[tbox]: [platform_socket]: [assert]: expr[fd >= 0] at tb_socket_init(): 139, src/tbox/platform/posix/socket.c at tb_assert_impl(): 300, src/tbox/platform/../prefix/assert.h
[tbox]: [backtrace]:     [0x005e1643901d98]: ./build/linux/x86_64/debug/demo(+0xbdd98) [0x5e1643901d98]
[tbox]: [backtrace]:     [0x005e164390267f]: ./build/linux/x86_64/debug/demo(tb_socket_init+0x10f) [0x5e164390267f]
[tbox]: [backtrace]:     [0x005e1643893f08]: ./build/linux/x86_64/debug/demo(tb_demo_network_ping_main+0xa6) [0x5e1643893f08]
[tbox]: [backtrace]:     [0x005e164385c8fe]: ./build/linux/x86_64/debug/demo(main+0x115) [0x5e164385c8fe]
[tbox]: [backtrace]:     [0x0074226ac29d90]: /lib/x86_64-linux-gnu/libc.so.6(+0x29d90) [0x74226ac29d90]
[tbox]: [backtrace]:     [0x0074226ac29e40]: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x80) [0x74226ac29e40]
[tbox]: [backtrace]:     [0x005e164385c725]: ./build/linux/x86_64/debug/demo(_start+0x25) [0x5e164385c725]
[tbox]: [platform_socket]: [error]: abort at tb_assert_impl(): 309, src/tbox/platform/../prefix/assert.h
Trace/breakpoint trap (core dumped)

本地网络可以正常 ping baidu.com

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


描述问题详情

debug 模式运行 tbox demo 断言失败:

./configure --mode=debug
make
./build/linux/x86_64/debug/demo network_ping www.baidu.com

报错日志

[tbox]: init: ..
[tbox]: version: tbox_v1_7_6_20250212_x86_64_sse2_elf by gnu c/c++ 11.4
[tbox]: init: ok
[tbox]: [platform_socket]: init: type: 514, family: 1, sock: 0x4
[tbox]: [platform_socket]: usend: 0x4 127.0.0.53:53 31 bytes => 31 bytes, errno: 0
[tbox]: [platform_socket]: urecv: 0x4 524 bytes => -1 bytes, errno: 11
[tbox]: [platform_socket]: urecv: 0x4 524 bytes => 103 bytes, errno: 11
[tbox]: [platform_socket]: close: 0x4
[tbox]: [platform_socket]: init: type: 514, family: 1, sock: 0x4
[tbox]: [platform_socket]: usend: 0x4 127.0.0.53:53 31 bytes => 31 bytes, errno: 11
[tbox]: [platform_socket]: urecv: 0x4 524 bytes => -1 bytes, errno: 11
[tbox]: [platform_socket]: urecv: 0x4 524 bytes => 90 bytes, errno: 11
[tbox]: [platform_socket]: urecv: 0x4 434 bytes => -1 bytes, errno: 11
[tbox]: [platform_socket]: close: 0x4
[tbox]: [platform_socket]: [assert]: expr[fd >= 0] at tb_socket_init(): 139, src/tbox/platform/posix/socket.c at tb_assert_impl(): 300, src/tbox/platform/../prefix/assert.h
[tbox]: [backtrace]:     [0x005e1643901d98]: ./build/linux/x86_64/debug/demo(+0xbdd98) [0x5e1643901d98]
[tbox]: [backtrace]:     [0x005e164390267f]: ./build/linux/x86_64/debug/demo(tb_socket_init+0x10f) [0x5e164390267f]
[tbox]: [backtrace]:     [0x005e1643893f08]: ./build/linux/x86_64/debug/demo(tb_demo_network_ping_main+0xa6) [0x5e1643893f08]
[tbox]: [backtrace]:     [0x005e164385c8fe]: ./build/linux/x86_64/debug/demo(main+0x115) [0x5e164385c8fe]
[tbox]: [backtrace]:     [0x0074226ac29d90]: /lib/x86_64-linux-gnu/libc.so.6(+0x29d90) [0x74226ac29d90]
[tbox]: [backtrace]:     [0x0074226ac29e40]: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x80) [0x74226ac29e40]
[tbox]: [backtrace]:     [0x005e164385c725]: ./build/linux/x86_64/debug/demo(_start+0x25) [0x5e164385c725]
[tbox]: [platform_socket]: [error]: abort at tb_assert_impl(): 309, src/tbox/platform/../prefix/assert.h
Trace/breakpoint trap (core dumped)

本地网络可以正常 ping baidu.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0