Skip to content
  • Per Cederqvist's avatar
    Added valgrind suppressions for optimised code. · 4c6723a9
    Per Cederqvist authored
    * src/server/testsuite/lyskomd.supp (aid_lexer_opt): New
    suppression.
    (aid_lexer_2_opt): Ditto.
    
    New test case: start lyskomd while the socket is bound.
    * src/server/testsuite/lyskomd.0/53.exp: New test case.  Test
    startup when the socket is already bound by another process.  This
    exposed a memory leak in libisc which is also fixed in this
    commit.
    * src/server/testsuite/tcpbind.py: New helper script.  Bind a tcp
    port, so that it is occupied.  Used by 53.exp.
    * src/server/testsuite/config/unix.exp (lyskomd_fail_start): New
    optional argument. expected_leaks.  Fix database setup.  Remove
    the server from expect_after and expect_always once it has failed.
    (utility_start): New function.
    (utility_death): New function.
    (talk_to): Handle talking to utilities.
    
    Use strerror() instead of logging a plain errno integer.
    * src/server/lockdb.c (lock_db): Use strerror() to get a
    human-readable error message.
    
    Fixed a memory leak.
    * src/libraries/libisc-new/src/isc_tcp.c (mkaddr_and_bind):
    New static function, extracted from isc_bindtcp().  Don't leak
    the isc_address if bind() fails.
    (isc_bindtcp): Moved some code to mkaddr_and_bind().
    4c6723a9