Bug #28590 | call to my_tell() with -1 as file descriptor causes assertion in VC2005 | ||
---|---|---|---|
Submitted: | 22 May 2007 12:16 | Modified: | 5 Jun 2007 7:41 |
Reporter: | Ilya Zvyagin | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | MySQL Server | Severity: | S3 (Non-critical) |
Version: | 5.0-BK | OS: | Windows (VC 2005 RTL) |
Assigned to: | Assigned Account | CPU Architecture: | Any |
Tags: | Contribution, my_tell open_cached_file init_io_cache |
[22 May 2007 12:16]
Ilya Zvyagin
[22 May 2007 12:52]
Valeriy Kravchuk
Thank you for a bug report. Verified just as described on latest 5.0-BK sources. Now this function is: my_off_t my_tell(File fd, myf MyFlags __attribute__((unused))) { os_off_t pos; DBUG_ENTER("my_tell"); DBUG_PRINT("my",("Fd: %d MyFlags: %d",fd, MyFlags)); #ifdef HAVE_TELL pos=tell(fd); #else pos=lseek(fd, 0L, MY_SEEK_CUR); #endif if (pos == (os_off_t) -1) my_errno=errno; DBUG_PRINT("exit",("pos: %lu", (ulong) pos)); DBUG_RETURN((my_off_t) pos); } /* my_tell */
[5 Jun 2007 7:41]
Sergey Vojtovich
A duplicate of BUG#27141.