From: "Trenton D. Adams" <tadams@extremeeng.com>
To: "'Trenton D. Adams'" <tadams@extremeeng.com>,
"eCos Discussion" <ecos-discuss@sourceware.cygnus.com>
Subject: [ECOS] RE: SIGTRAP problem.
Date: Wed, 01 Aug 2001 13:58:00 -0000 [thread overview]
Message-ID: <000301c11acc$c6d4cd10$090110ac@TRENT> (raw)
I'm a moron, it takes a pointer for the third parameter.
On top of that, it shouldn't be in a loop.
Neither solves my problem though.
> -----Original Message-----
> From: Trenton D. Adams [ mailto:tadams@extremeeng.com ]
> Sent: Wednesday, August 01, 2001 2:48 PM
> To: eCos Discussion (ecos-discuss@sourceware.cygnus.com)
> Subject: SIGTRAP problem.
>
> I got the output below from my program. Not the SIGTRAP. I have no
> idea what that is.
>
> TRACE: <1>[69]void cyg_prestart() This is the system default
> cyg_prestart()
> TRACE: <1>[79]void cyg_package_start() This is the system default
> cyg_package_start()
> TRACE: <4>[107]void cyg_libc_invoke_main() main() has returned with
code
> 0. Calling exit()
> TRACE: <4>[84]void exit() Calling fflush( NULL )
> BOOTP[eth0] op: REPLY
> htype: Ethernet
> hlen: 6
> hops: 0
> xid: 0x8A2D9C37
> secs: 0
> flags: 0x80
> hw_addr: 00:00:00:00:9C:37
> client IP: 0.0.0.0
> my IP: 172.16.1.11
> server IP: 172.16.1.1
> gateway IP: 0.0.0.0
> options:
> DHCP message: 5 ACK
> subnet mask: 255.255.255.0
> DHCP time 51: 2147483647
> DHCP server id: 172.16.1.1
> Starting Threads!
> Command Thread!
> [New thread 6]
>
> Program received signal SIGTRAP, Trace/breakpoint trap.
> [Switching to thread 6]
> 0xdfb3eb44 in ?? ()
> (gdb)
>
>
> Here's the mean code that doesn't like me. It only happens when I
do an
> accept. OpenListenSocket () opens the socket with socket () and
bind
> (). Then when accept is called it gets this SIGTRAP. What is a
> SIGTRAP? I assume I made a booboo somewhere!?
>
> void CommandThread (cyg_addrword_t data)
> {
> int commandListenSocket,
> commandSocket;
>
> struct sockaddr_in addr;
>
> if (!OpenListenSocket (&commandSocket, COMMANDPORT_NUM))
> return;
>
> while (1)
> {
> diag_printf ("Command Thread!\n");
> accept (commandListenSocket, &addr, sizeof (addr));
>
> cyg_thread_delay (100); // one second
> }
>
> }
>
>
> Trenton D. Adams
> Embedded Developer
> Windows Developer
> Extreme Engineering Ltd.
> Calgary Alberta
>
> Phone: 403 640 9494 ext 208
> Fax: 403 640 9599
>
next reply other threads:[~2001-08-01 13:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-01 13:58 Trenton D. Adams [this message]
2001-08-01 14:06 ` Cristiano Ligieri Pereira
2001-08-01 14:11 ` Trenton D. Adams
2001-08-01 14:23 ` Cristiano Ligieri Pereira
2001-08-01 14:24 ` Trenton D. Adams
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='000301c11acc$c6d4cd10$090110ac@TRENT' \
--to=tadams@extremeeng.com \
--cc=ecos-discuss@sourceware.cygnus.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).