public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Possible SNMP bug +
@ 2005-04-19  4:00 Yuriy Coureelo
  0 siblings, 0 replies; only message in thread
From: Yuriy Coureelo @ 2005-04-19  4:00 UTC (permalink / raw)
  To: ecos-discuss

Dear Sir!

A thread has the following code:
//-----------------------
    while (true)
    {
        if (create_trap_session(eth0_server,
                                SNMP_TRAP_PORT,
                                "public",
                                SNMP_VERSION_2c,
                                SNMP_MSG_TRAP2))
        {
            send_v2trap(NULL);
            snmpd_free_trapsinks();
        }
        cyg_thread_delay(400);
    }
//-----------------------
eth0_server doesn't exists. ARP maxtries = 5.
I start ethernet sniffer and see 5 arp requests.
On the 6th try there is no arp request (that's ok i know).
Then that code passes 7th time and when it calls cyg_thread_delay
(7th call) - system hangs. What's the matter? (FreeBSD stack)



Another bug: snmp hangs when not enough memory
//-----------------------
int handle_snmp_packet(bla-bla-bla)
{
    struct agent_snmp_session  *asp;
    int status, allDone, i;
    struct variable_list *var_ptr, *var_ptr2;
    
    if ( magic == NULL ) {
// coureelo commented
//      asp = init_agent_snmp_session( session, snmp_clone_pdu(pdu) );
// coureelo commented end

// coureelo
        struct snmp_pdu* mypdu = snmp_clone_pdu(pdu);
        asp = NULL;
        if (mypdu)
            asp = init_agent_snmp_session( session, mypdu);
// coureelo end
//-----------------------

Sincerely yours
Yuriy Coureelo


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-04-19  2:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-19  4:00 [ECOS] Possible SNMP bug + Yuriy Coureelo

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).