From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17895 invoked by alias); 3 Feb 2013 08:34:40 -0000 Received: (qmail 17685 invoked by uid 22791); 3 Feb 2013 08:34:36 -0000 X-SWARE-Spam-Status: No, hits=-3.6 required=5.0 tests=AWL,BAYES_05,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-oa0-f41.google.com (HELO mail-oa0-f41.google.com) (209.85.219.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 03 Feb 2013 08:34:31 +0000 Received: by mail-oa0-f41.google.com with SMTP id i10so5611344oag.28 for ; Sun, 03 Feb 2013 00:34:30 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.182.118.103 with SMTP id kl7mr12903305obb.13.1359880470487; Sun, 03 Feb 2013 00:34:30 -0800 (PST) Received: by 10.76.168.36 with HTTP; Sun, 3 Feb 2013 00:34:30 -0800 (PST) Date: Sun, 03 Feb 2013 08:34:00 -0000 Message-ID: From: Elad Yosef To: ecos-discuss@sources.redhat.com, eCos Discussion 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] LwIP TCP socket closing leads to crash in ecos-3.0 X-SW-Source: 2013-02/txt/msg00001.txt.bz2 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