Bug 88261 - Bug in timeout.c (bsd TCPIP ecos support layer)
Bug in timeout.c (bsd TCPIP ecos support layer)
Status: CLOSED WONTFIX
Product: eCos
Classification: Retired
Component: TCPIP (Show other bugs)
CVS
synth Linux
medium Severity medium
: ---
: ---
Assigned To: Gary Thomas
Jonathan Larmour
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2003-04-08 06:01 EDT by Niels Beier
Modified: 2007-04-18 12:52 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2003-06-20 12:24:23 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Niels Beier 2003-04-08 06:01:07 EDT
Description of problem:
Hi there,

I have noticted that some of the timer functions are not called (tcp_slowtimo
for example). I have made the following test case - inserted in
/net/bsd_tcpip/current/src/ecos/support.c


void
cyg_net_init(void)
{
    static int _init = false;
    struct init_tab_entry *init_entry;

    if (_init) return;

    cyg_do_net_init();  // Just forces linking in the initializer/constructor
    // Initialize interrupt "flags"
    cyg_flag_init(&netint_flags);
    // Initialize timeouts and net service thread (pseudo-DSRs)
    cyg_alarm_timeout_init();
#if 1
    /* Niels Beier test code    */
    {
        cyg_uint32 result;
        result = timeout(testFunc, 1, 1);
        diag_printf("Result from first timeout() call %u\n", result);
        result = timeout(testFunc, 2, 2);
        diag_printf("Result from second timeout() call %u\n", result);
        if(result == 0)
        {
            /* This code is executed every time */
            diag_printf("Timer ERROR\n");
        }
        else
        {
            diag_printf("Timer OK\n");            
        }
        while(1);
    }    
#endif    
}

Or have I misunderstod something?

Best regards 
Niels

Version-Release number of selected component (if applicable):


How reproducible:
Every time.

Steps to Reproduce:
1.Compile ecos library with supplied test code
2.run and watch output
3.
    
Actual results:
Second timerout() call returns zero

Expected results:
Non zero result expected

Additional info:
Comment 1 Alex Schuilenburg 2003-06-20 12:24:23 EDT
This bug has moved to http://bugs.ecos.sourceware.org/show_bug.cgi?id=88261

Note You need to log in before you can comment on or make changes to this bug.