This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
LwIP TCP socket closing leads to crash in ecos-3.0
- From: Elad Yosef <elad dot yosef at gmail dot com>
- To: ecos-discuss at sources dot redhat dot com, eCos Discussion <ecos-discuss at ecos dot sourceware dot org>
- Date: Sun, 3 Feb 2013 10:34:30 +0200
- Subject: [ECOS] LwIP TCP socket closing leads to crash in ecos-3.0
Hi, I have the following Trace:
#0 cyg_assert_fail (psz_func=0x80030760 "Cyg_Mboxt<T,
QUEUE_SIZE>::~Cyg_Mboxt() [with T = void*, long int QUEUE_SIZE =
30l]",
psz_file=0x800304b0
"/localhome/cc-views/elady_Mars_SW/vobs/Mars-eCos/Mars-eCos_OS/Mars_eCos_Config_install/include/cyg/kernel/mboxt.inl",
linenum=109, psz_msg=0x0) at
/localhome/eCos/ecos-3.0/packages/infra/v3_0/src/buffer.cxx:726
#1 0x8001cb25 in ~Cyg_Mboxt (this=<value optimized out>) at
/localhome/cc-views/elady_Mars_SW/vobs/Mars-eCos/Mars-eCos_OS/Mars_eCos_Config_install/include/cyg/kernel/mboxt.inl:110
#2 0x8001cb89 in ~Cyg_Mbox (this=0x80030760) at
/localhome/eCos/ecos-3.0/packages/kernel/v3_0/src/sync/mbox.cxx:92
#3 0x8001a4a1 in cyg_mbox_delete (mbox=2147682144) at
/localhome/eCos/ecos-3.0/packages/kernel/v3_0/src/common/kapi.cxx:851
#4 0x80026299 in sys_mbox_free (mbox=2147682144) at
/localhome/eCos/ecos-3.0/packages/net/lwip_tcpip/v3_0/src/ecos/sys_arch.c:108
#5 0x8002b7cf in netconn_delete (conn=0x8004da68) at
/localhome/eCos/ecos-3.0/packages/net/lwip_tcpip/v3_0/src/api/api_lib.c:289
#6 0x80025ae5 in lwip_close (s=<value optimized out>) at
/localhome/eCos/ecos-3.0/packages/net/lwip_tcpip/v3_0/src/api/sockets.c:268
My application is sending some date by this TCP socket and closes it once done.
It takes some time until my application crash, can it be that the
close() in the LwIP is buggy?
Thanks
Elad
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss