[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: tux+php



> I spend some time to make clean test standalone program,
> and found what problem is in incorrect(or correct :-) work
> with struct *io_vec array, I add
> zeroing of vec array at line 108 of php_tux.c( simple memset)
> after allocating of vec, that solved my problem.
> Now php_tux.c can be compiled with any optimization options and
> works perfectly without any crashes.

    That's interesting, because it apparently demonstrates a bug
    in those compilers.  The code, at least, is correct: It
    allocates the array, populates all slots (iov_base and
    iov_len) and passes it off to writev() at a later point in
    time.

    Can you send me the standalone program? Thanks.

    - Sascha                                     Experience IRCG
      http://schumann.cx/                http://schumann.cx/ircg





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []