From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15273 invoked by alias); 19 Apr 2005 02:16:54 -0000 Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Received: (qmail 15214 invoked from network); 19 Apr 2005 02:16:43 -0000 Received: from unknown (HELO micran.ru) (217.29.80.82) by sourceware.org with SMTP; 19 Apr 2005 02:16:43 -0000 Received: from localhost (localhost [127.0.0.1]) by micran.ru (Postfix) with ESMTP id 535744612E3 for ; Tue, 19 Apr 2005 09:16:42 +0700 (NOVST) Received: from micran.ru ([127.0.0.1]) by localhost (micran.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02560-07 for ; Tue, 19 Apr 2005 09:16:42 +0700 (NOVST) Received: from Viola.home (Viola.home [192.168.1.157]) by micran.ru (Postfix) with ESMTP id 435354612E0 for ; Tue, 19 Apr 2005 09:16:42 +0700 (NOVST) Date: Tue, 19 Apr 2005 04:00:00 -0000 From: Yuriy Coureelo Reply-To: Yuriy Coureelo Organization: Micran Co. Message-ID: <312185813.20050419091642@micran.ru> To: ecos-discuss@sources.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: [ECOS] Possible SNMP bug + X-SW-Source: 2005-04/txt/msg00197.txt.bz2 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