public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Elad Yosef <elad.yosef@gmail.com>
To: ecos-discuss@sources.redhat.com,
		eCos Discussion <ecos-discuss@ecos.sourceware.org>
Subject: [ECOS] LwIP TCP socket closing leads to crash in ecos-3.0
Date: Sun, 03 Feb 2013 08:34:00 -0000	[thread overview]
Message-ID: <CAOFa9c1OJe_r9Msa=4biAxWtRcBg5FBrEpX0FZKPnBM9EThLUQ@mail.gmail.com> (raw)

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

             reply	other threads:[~2013-02-03  8:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-03  8:34 Elad Yosef [this message]
2013-02-03  9:51 ` [ECOS] Fwd: " Elad Yosef

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAOFa9c1OJe_r9Msa=4biAxWtRcBg5FBrEpX0FZKPnBM9EThLUQ@mail.gmail.com' \
    --to=elad.yosef@gmail.com \
    --cc=ecos-discuss@ecos.sourceware.org \
    --cc=ecos-discuss@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).