List:Commits« Previous MessageNext Message »
From:Dao-Gang.Qu Date:February 3 2010 7:49am
Subject:bzr commit into mysql-5.1-mtr branch (Dao-Gang.Qu:2886) Bug#50414
View as plain text  
#At file:///home/daogangqu/mysql/bzrwork/bug50414/mysql-5.1-mtr/ based on revid:bjorn.munch@stripped

 2886 Dao-Gang.Qu@stripped	2010-02-03
      Bug #50414  	valgrind warnings: invalid file descriptor -1 in syscall
      write()/read()
      
      Sometimes stop/restart master or stop/restart salve can cause
      network error, which can cause the 'invalid file descriptor
      -1 in syscall write()/read()' warnings. All involved test
      cases except rpl_slave_load_remove_tmpfile belong to the
      kind of network error. So they are expected.
      The 'rpl_slave_load_remove_tmpfile' belongs to file error,
      but it is testing the file error as following code:
      DBUG_EXECUTE_IF("remove_slave_load_file_before_write",
      my_close(fd,MYF(0)); fd= -1; my_delete(fname, MYF(0)););
      So it's expected too.
      
      To fix the problem, add the valgrind warnings to the global
      suppression list to suppress it.
     @ mysql-test/include/mtr_warnings.sql
        Added code to suppress valgrind warnings: invalid file
        descriptor -1 in syscall write()/read().

    modified:
      mysql-test/include/mtr_warnings.sql
=== modified file 'mysql-test/include/mtr_warnings.sql'
--- a/mysql-test/include/mtr_warnings.sql	2009-12-16 09:37:41 +0000
+++ b/mysql-test/include/mtr_warnings.sql	2010-02-03 07:49:20 +0000
@@ -182,6 +182,12 @@ INSERT INTO global_suppressions VALUES
  ("==[0-9]*== For more details"),
  /* This comes with innodb plugin tests */
  ("==[0-9]*== Warning: set address range perms: large range"),
+
+ /* valgrind warnings: invalid file descriptor -1 in syscall
+    write()/read(). Bug #50414 */
+ ("==[0-9]*== Warning: invalid file descriptor -1 in syscall write()"),
+ ("==[0-9]*== Warning: invalid file descriptor -1 in syscall read()"),
+
  /*
    Transient network failures that cause warnings on reconnect.
    BUG#47743 and BUG#47983.


Attachment: [text/bzr-bundle] bzr/dao-gang.qu@sun.com-20100203074920-077qwmlwh8eflt2l.bundle
Thread
bzr commit into mysql-5.1-mtr branch (Dao-Gang.Qu:2886) Bug#50414Dao-Gang.Qu3 Feb