• emx opendir bug

    From andrew clarke@3:633/267.1 to All on Thursday, January 30, 2003 23:07:40
    While writing my own portable opendir/readdir/closedir functions for DOS, 32-bit Windows and OS/2 programs I came across a bug with EMX 0.9d, causing it to segfault:

    #include <sys/types.h>
    #include <dirent.h>

    int main(void)
    {
    opendir("/");
    return 0;
    }

    process 3 get hardware fault 13 (general protection) at 104C4

    Program received signal SIGSEGV, Segmentation fault.
    0x104c4 in _trslash ()
    (gdb) bt
    #0 0x104c4 in _trslash ()
    #1 0x10203 in _opendir ()
    #2 0x1004e in main () at emxbug.c:6

    --- timEd/Cygwin 1.11.a1
    * Origin: Blizzard of Ozz, Mt Eliza, Victoria, Australia (3:633/267.1)
  • From andrew clarke@3:633/267.1 to All on Friday, January 31, 2003 16:37:02
    Thu 2003-01-30 23:07, andrew clarke (3:633/267.1) wrote to All:

    While writing my own portable opendir/readdir/closedir functions
    for DOS, 32-bit Windows and OS/2 programs I came across a bug with
    EMX 0.9d, causing it to segfault:

    opendir("/");

    Turns out this was fixed in EMXFIX02.ZIP. I did do a web search, but didn't come across anything, until someone on a C mailing list pointed me to:

    http://ais.gmd.de/~veit/os2/mailinglist3/3769.html

    A follow-up message from the author of EMX says it's fixed in EMXFIX02.ZIP, but
    I have EMXFIX04.DOC, and it's not mentioned there...

    --- timEd/Cygwin 1.11.a1
    * Origin: Blizzard of Ozz, Mt Eliza, Victoria, Australia (3:633/267.1)
  • From mark lewis@1:3634/12 to andrew clarke on Friday, January 31, 2003 13:38:40
    While writing my own portable opendir/readdir/closedir functions
    for DOS, 32-bit Windows and OS/2 programs I came across a bug with
    EMX 0.9d, causing it to segfault:

    opendir("/");

    Turns out this was fixed in EMXFIX02.ZIP. I did do a web
    search, but didn't come across anything, until someone on a C
    mailing list pointed me to:

    http://ais.gmd.de/~veit/os2/mailinglist3/3769.html

    A follow-up message from the author of EMX says it's fixed in EMXFIX02.ZIP, but I have EMXFIX04.DOC, and it's not mentioned
    there...

    i (currently) have EMXFIX03 for EMX 09d installed and the EMXFIX03.DOC file doesn't mention opendir in there, either...

    i am unable to locate =any= earlier EMXFIX files for 09d to verify any further ;-(

    )\/(ark


    * Origin: (1:3634/12)