sdk-3.7.0-7: snip.httpbin_org fails

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
AxLi_1746341
Level 7
Level 7
10 comments on KBA 5 comments on KBA First comment on KBA

snip.httpbin_org does not work.

with debug build, it always run into assertion.

NetX_Duo:

[Switching to Thread 57005]

0x0801a8e2 in wiced_packet_set_data_start (packet=0x20002494 <tx_buffer_pool_memory+3296>, data_start=0xfffffffb <error: Cannot access memory at address 0xfffffffb>) at WICED/network/NetX_Duo/WICED/tcpip.c:793

793         wiced_assert("Bad packet end\n", (data_start >= packet->nx_packet_data_start) && (data_start <= packet->nx_packet_data_end));

(gdb) bt

#0  0x0801a8e2 in wiced_packet_set_data_start (packet=0x20002494 <tx_buffer_pool_memory+3296>, data_start=0xfffffffb <error: Cannot access memory at address 0xfffffffb>)

    at WICED/network/NetX_Duo/WICED/tcpip.c:793

#1  0x080218ea in tls_host_set_packet_start (packet=0x20002494 <tx_buffer_pool_memory+3296>, start=0xfffffffb <error: Cannot access memory at address 0xfffffffb>)

    at WICED/security/BESL/host/WICED/wiced_tls.c:1441

#2  0x0802145e in wiced_tls_encrypt_packet (workspace=0x200127d4, packet=0x20002494 <tx_buffer_pool_memory+3296>) at WICED/security/BESL/host/WICED/wiced_tls.c:1128

#3  0x0801b17c in wiced_tcp_send_packet (socket=0x20001178 <client>, packet=0x20002494 <tx_buffer_pool_memory+3296>) at WICED/network/NetX_Duo/WICED/../../wiced_tcpip_common.c:29

#4  0x0801b3dc in wiced_tcp_stream_write (tcp_stream=0x2000140c <requests+12>, data=0x80536d0, data_length=3) at WICED/network/NetX_Duo/WICED/../../wiced_tcpip_common.c:314

Segmentation fault (core dumped)

NetX:

Program received signal SIGTRAP, Trace/breakpoint trap.

[Switching to Thread 57005]

0x0801a70e in wiced_packet_set_data_start (packet=0x2000177c <tx_buffer_pool_memory>, data_start=0xfffffffb <error: Cannot access memory at address 0xfffffffb>) at WICED/network/NetX/WICED/tcpip.c:785

785         wiced_assert("Bad packet end\n", (data_start >= packet->nx_packet_data_start) && (data_start <= packet->nx_packet_data_end));

(gdb) bt

#0  0x0801a70e in wiced_packet_set_data_start (packet=0x2000177c <tx_buffer_pool_memory>, data_start=0xfffffffb <error: Cannot access memory at address 0xfffffffb>) at WICED/network/NetX/WICED/tcpip.c:785

#1  0x08021656 in tls_host_set_packet_start (packet=0x2000177c <tx_buffer_pool_memory>, start=0xfffffffb <error: Cannot access memory at address 0xfffffffb>) at WICED/security/BESL/host/WICED/wiced_tls.c:1441

#2  0x080211ca in wiced_tls_encrypt_packet (workspace=0x200127c4, packet=0x2000177c <tx_buffer_pool_memory>) at WICED/security/BESL/host/WICED/wiced_tls.c:1128

#3  0x0801aee8 in wiced_tcp_send_packet (socket=0x20001178 <client>, packet=0x2000177c <tx_buffer_pool_memory>) at WICED/network/NetX/WICED/../../wiced_tcpip_common.c:29

#4  0x0801b148 in wiced_tcp_stream_write (tcp_stream=0x200013d4 <requests+12>, data=0x804aad8, data_length=3) at WICED/network/NetX/WICED/../../wiced_tcpip_common.c:314

Segmentation fault (core dumped)

the data_start pointer becomes 0xfffffffb which is wrong.

LwIP build does not has the assertion check, but it also fails.

Below is the log to show how data_start becomes 0xfffffffb after Connected is printed.

[17:54:10:288] Obtaining IPv4 address via DHCP␍␊

[17:54:10:295] DHCP CLIENT hostname WICED IP␍␊

[17:54:17:154] IPv4 network ready IP: 192.168.0.101␍␊

[17:54:17:158] Add DNS server: 8.8.8.8␍␊

[17:54:17:171] Resolving IP address of www.httpbin.org␍␊

[17:54:18:265] www.httpbin.org is at 54.235.210.130␍␊

[17:54:18:282] Connecting to www.httpbin.org␍␊

[17:54:18:955] data_start=0x20003afb␍␊

[17:54:18:958] packet->nx_packet_prepend_ptr=0x20003aa4␍␊

[17:54:18:965] packet->nx_packet_data_end=0x2000405c␍␊

[17:54:18:965] data_start=0x20004542␍␊

[17:54:18:970] packet->nx_packet_prepend_ptr=0x200040e0␍␊

[17:54:18:970] packet->nx_packet_data_end=0x20004698␍␊

[17:54:19:251] Connected␍␊

[17:54:19:253] data_start=0xfffffffb␍␊

[17:54:19:307] packet->nx_packet_prepend_ptr=0x20006f14␍␊

[17:54:19:307] packet->nx_packet_data_end=0x200074c8␍␊

1 Solution
GauravS_31
Moderator
Moderator
Moderator
10 questions asked 250 solutions authored 250 sign-ins

Is this still an open issue in WICED 5.0? I could not reproduce it in snip.httpbin_org in WICED 5.0.

View solution in original post

0 Likes
2 Replies
GauravS_31
Moderator
Moderator
Moderator
10 questions asked 250 solutions authored 250 sign-ins

Is this still an open issue in WICED 5.0? I could not reproduce it in snip.httpbin_org in WICED 5.0.

0 Likes

You can close it, thanks.

0 Likes