This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fwd: LwIP TCP socket closing leads to crash in ecos-3.0


Additional Data this is the netstat from my PC


 TCP    192.168.2.14:21        192-0-222-2:4437       TIME_WAIT
 TCP    192.168.2.14:21        192-0-222-2:4439       TIME_WAIT
 TCP    192.168.2.14:21        192-0-222-2:4441       TIME_WAIT
 TCP    192.168.2.14:21        192-0-222-2:4443       TIME_WAIT
 TCP    192.168.2.14:21        192-0-222-2:4445       TIME_WAIT
 TCP    192.168.2.14:21        192-0-222-2:4447       TIME_WAIT
 TCP    192.168.2.14:21        192-0-222-2:4449       TIME_WAIT
 TCP    192.168.2.14:21        192-0-222-2:4451       TIME_WAIT
 TCP    192.168.2.14:21        192-0-222-2:4453       TIME_WAIT
 TCP    192.168.2.14:21        192-0-222-2:4455       TIME_WAIT
 TCP    192.168.2.14:21        192-0-222-2:4458       TIME_WAIT
 TCP    192.168.2.14:21        192-0-222-2:4460       TIME_WAIT
 TCP    192.168.2.14:21        192-0-222-2:4462       TIME_WAIT
 TCP    192.168.2.14:21        192-0-222-2:4464       TIME_WAIT
 TCP    192.168.2.14:21        192-0-222-2:4466       TIME_WAIT
 TCP    192.168.2.14:21        192-0-222-2:4468       TIME_WAIT
 TCP    192.168.2.14:21        192-0-222-2:4470       TIME_WAIT
 TCP    192.168.2.14:21        192-0-222-2:4472       TIME_WAIT
 TCP    192.168.2.14:21        192-0-222-2:4475       TIME_WAIT
 TCP    192.168.2.14:21        192-0-222-2:4477       TIME_WAIT
 TCP    192.168.2.14:21        192-0-222-2:4479       TIME_WAIT
 TCP    192.168.2.14:21        192-0-222-2:4481       TIME_WAIT
 TCP    192.168.2.14:21        192-0-222-2:4483       TIME_WAIT
 TCP    192.168.2.14:21        192-0-222-2:4485       TIME_WAIT
 TCP    192.168.2.14:21        192-0-222-2:4487       TIME_WAIT
 TCP    192.168.2.14:21        192-0-222-2:4489       TIME_WAIT
 TCP    192.168.2.14:21        192-0-222-2:4492       TIME_WAIT
 TCP    192.168.2.14:21        192-0-222-2:4494       TIME_WAIT
 TCP    192.168.2.14:21        192-0-222-2:4496       TIME_WAIT
 TCP    192.168.2.14:21        192-0-222-2:4498       TIME_WAIT
 TCP    192.168.2.14:21        192-0-222-2:ipsec-msft  TIME_WAIT
 TCP    192.168.2.14:21        192-0-222-2:4502       TIME_WAIT
 TCP    192.168.2.14:21        192-0-222-2:4504       TIME_WAIT
 TCP    192.168.2.14:21        192-0-222-2:4506       TIME_WAIT
 TCP    192.168.2.14:21        192-0-222-2:4509       TIME_WAIT
 TCP    192.168.2.14:21        192-0-222-2:4511       TIME_WAIT
 TCP    192.168.2.14:21        192-0-222-2:4513       TIME_WAIT
 TCP    192.168.2.14:21        192-0-222-2:4515       TIME_WAIT
 TCP    192.168.2.14:21        192-0-222-2:4517       TIME_WAIT
 TCP    192.168.2.14:21        192-0-222-2:4519       TIME_WAIT
 TCP    192.168.2.14:21        192-0-222-2:4521       TIME_WAIT
 TCP    192.168.2.14:21        192-0-222-2:4523       TIME_WAIT
 TCP    192.168.2.14:21        192-0-222-2:4525       TIME_WAIT
 TCP    192.168.2.14:21        192-0-222-2:4527       TIME_WAIT
 TCP    192.168.2.14:21        192-0-222-2:4530       TIME_WAIT
 TCP    192.168.2.14:21        192-0-222-2:4532       TIME_WAIT
 TCP    192.168.2.14:21        192-0-222-2:4534       TIME_WAIT
 TCP    192.168.2.14:21        192-0-222-2:4536       TIME_WAIT
 TCP    192.168.2.14:21        192-0-222-2:4538       TIME_WAIT
 TCP    192.168.2.14:21        192-0-222-2:4540       ESTABLISHED
 TCP    192.168.2.14:62964     192-0-222-2:4438       TIME_WAIT
 TCP    192.168.2.14:62965     192-0-222-2:4440       TIME_WAIT
 TCP    192.168.2.14:62966     192-0-222-2:4442       TIME_WAIT
 TCP    192.168.2.14:62967     192-0-222-2:4444       TIME_WAIT
 TCP    192.168.2.14:62968     192-0-222-2:4446       TIME_WAIT
 TCP    192.168.2.14:62969     192-0-222-2:4448       TIME_WAIT
 TCP    192.168.2.14:62970     192-0-222-2:4450       TIME_WAIT
 TCP    192.168.2.14:62971     192-0-222-2:4452       TIME_WAIT
 TCP    192.168.2.14:62995     192-0-222-2:4493       TIME_WAIT
 TCP    192.168.2.14:62996     192-0-222-2:4495       TIME_WAIT
 TCP    192.168.2.14:62997     192-0-222-2:4497       TIME_WAIT
 TCP    192.168.2.14:62998     192-0-222-2:4499       TIME_WAIT
 TCP    192.168.2.14:62999     192-0-222-2:4501       TIME_WAIT
 TCP    192.168.2.14:63000     192-0-222-2:4503       TIME_WAIT
 TCP    192.168.2.14:63001     192-0-222-2:4505       TIME_WAIT
 TCP    192.168.2.14:63002     192-0-222-2:4507       TIME_WAIT
 TCP    192.168.2.14:63003     192-0-222-2:4510       TIME_WAIT
 TCP    192.168.2.14:63004     192-0-222-2:4512       TIME_WAIT
 TCP    192.168.2.14:63006     192-0-222-2:4514       TIME_WAIT
 TCP    192.168.2.14:63007     192-0-222-2:4516       TIME_WAIT
 TCP    192.168.2.14:63008     192-0-222-2:4518       TIME_WAIT
 TCP    192.168.2.14:63009     192-0-222-2:4520       TIME_WAIT
 TCP    192.168.2.14:63010     192-0-222-2:4522       TIME_WAIT
 TCP    192.168.2.14:63011     192-0-222-2:4524       TIME_WAIT
 TCP    192.168.2.14:63020     192-0-222-2:4541       ESTABLISHED


---------- Forwarded message ----------
From: Elad Yosef <elad.yosef@gmail.com>
Date: Sun, Feb 3, 2013 at 10:34 AM
Subject: LwIP TCP socket closing leads to crash in ecos-3.0
To: ecos-discuss@sources.redhat.com, eCos Discussion
<ecos-discuss@ecos.sourceware.org>


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]