Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 88261 - Bug in timeout.c (bsd TCPIP ecos support layer)
Bug in timeout.c (bsd TCPIP ecos support layer)
Product: eCos
Classification: Retired
Component: TCPIP (Show other bugs)
synth Linux
medium Severity medium
: ---
: ---
Assigned To: Gary Thomas
Jonathan Larmour
Depends On:
  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:
Last Closed: 2003-06-20 12:24:23 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
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

    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"
    // Initialize timeouts and net service thread (pseudo-DSRs)
#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");
            diag_printf("Timer OK\n");            

Or have I misunderstod something?

Best regards 

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