From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24551 invoked by alias); 3 Feb 2013 09:51:10 -0000 Received: (qmail 24542 invoked by uid 22791); 3 Feb 2013 09:51:09 -0000 X-SWARE-Spam-Status: No, hits=-5.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-ob0-f171.google.com (HELO mail-ob0-f171.google.com) (209.85.214.171) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 03 Feb 2013 09:51:03 +0000 Received: by mail-ob0-f171.google.com with SMTP id lz20so5461446obb.16 for ; Sun, 03 Feb 2013 01:51:02 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.60.6.105 with SMTP id z9mr231853oez.52.1359885062531; Sun, 03 Feb 2013 01:51:02 -0800 (PST) Received: by 10.76.168.36 with HTTP; Sun, 3 Feb 2013 01:51:02 -0800 (PST) In-Reply-To: References: Date: Sun, 03 Feb 2013 09:51:00 -0000 Message-ID: From: Elad Yosef To: eCos Discussion , ecos-discuss@sources.redhat.com Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: [ECOS] Fwd: LwIP TCP socket closing leads to crash in ecos-3.0 X-SW-Source: 2013-02/txt/msg00004.txt.bz2 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 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 Hi, I have the following Trace: #0 cyg_assert_fail (psz_func=0x80030760 "Cyg_Mboxt::~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=) 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=) 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