Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-10648

mysqld --log-error prints on stdout at start

Details

    • Bug
    • Status: Confirmed (View Workflow)
    • Minor
    • Resolution: Unresolved
    • 10.1.16
    • 10.2(EOL)
    • None
    • None

    Description

      $ ./bin/mysqld --no-defaults --log-error --key-buffer=50M
      2016-08-22 21:03:20 139855997585344 [Note] Using unique option prefix 'key-buffer' is error-prone and can break in the future. Please use the full name 'key_buffer_size' instead.
      2016-08-22 21:03:20 139855997585344 [Note] ./bin/mysqld (mysqld 10.1.17-MariaDB-debug) starting as process 28295 ...
      

      Attachments

        Issue Links

          Activity

            Maybe that's because the warning is produced before the log can be initialized? I remember it being the case for some warnings/errors before.

            elenst Elena Stepanova added a comment - Maybe that's because the warning is produced before the log can be initialized? I remember it being the case for some warnings/errors before.
            danblack Daniel Black added a comment -

            Yes:

            $ strace -fe openat,write sql/mysqld --no-defaults --log-error --key-buffer=50M --datadir=/tmp/build-mariadb-server-10.3-datadir/
            openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
            openat(AT_FDCWD, "/lib64/liblz4.so.1", O_RDONLY|O_CLOEXEC) = 3
            openat(AT_FDCWD, "/lib64/liblzma.so.5", O_RDONLY|O_CLOEXEC) = 3
            openat(AT_FDCWD, "/lib64/libbz2.so.1", O_RDONLY|O_CLOEXEC) = 3
            openat(AT_FDCWD, "/lib64/libsnappy.so.1", O_RDONLY|O_CLOEXEC) = 3
            openat(AT_FDCWD, "/lib64/libaio.so.1", O_RDONLY|O_CLOEXEC) = 3
            openat(AT_FDCWD, "/lib64/libz.so.1", O_RDONLY|O_CLOEXEC) = 3
            openat(AT_FDCWD, "/lib64/libm.so.6", O_RDONLY|O_CLOEXEC) = 3
            openat(AT_FDCWD, "/lib64/libpcre.so.1", O_RDONLY|O_CLOEXEC) = 3
            openat(AT_FDCWD, "/lib64/libcrypt.so.2", O_RDONLY|O_CLOEXEC) = 3
            openat(AT_FDCWD, "/lib64/libsystemd.so.0", O_RDONLY|O_CLOEXEC) = 3
            openat(AT_FDCWD, "/lib64/libstdc++.so.6", O_RDONLY|O_CLOEXEC) = 3
            openat(AT_FDCWD, "/lib64/libgcc_s.so.1", O_RDONLY|O_CLOEXEC) = 3
            openat(AT_FDCWD, "/lib64/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
            openat(AT_FDCWD, "/lib64/libzstd.so.1", O_RDONLY|O_CLOEXEC) = 3
            openat(AT_FDCWD, "/lib64/libcap.so.2", O_RDONLY|O_CLOEXEC) = 3
            openat(AT_FDCWD, "/lib64/libgcrypt.so.20", O_RDONLY|O_CLOEXEC) = 3
            openat(AT_FDCWD, "/lib64/libgpg-error.so.0", O_RDONLY|O_CLOEXEC) = 3
            openat(AT_FDCWD, "/proc/sys/crypto/fips_enabled", O_RDONLY) = 3
            openat(AT_FDCWD, "/etc/localtime", O_RDONLY|O_CLOEXEC) = 3
            write(2, "2022-10-26 14:23:15 0 [Note] Usi"..., 1652022-10-26 14:23:15 0 [Note] Using unique option prefix 'key-buffer' is error-prone and can break in the future. Please use the full name 'key_buffer_size' instead.
            ) = 165
            openat(AT_FDCWD, "/tmp/build-mariadb-server-10.3-datadir/localhost.lower-test", O_RDWR|O_CREAT|O_CLOEXEC, 0666) = 3
            strace: Process 70389 attached
            [pid 70388] openat(AT_FDCWD, "/tmp/build-mariadb-server-10.3-datadir/localhost.err", O_WRONLY|O_CREAT|O_APPEND, 0666) = 3
            [pid 70388] openat(AT_FDCWD, "/tmp/build-mariadb-server-10.3-datadir/localhost.err", O_WRONLY|O_CREAT|O_APPEND, 0666) = 3
            

            danblack Daniel Black added a comment - Yes: $ strace -fe openat,write sql/mysqld --no-defaults --log-error --key-buffer=50M --datadir=/tmp/build-mariadb-server-10.3-datadir/ openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib64/liblz4.so.1", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib64/liblzma.so.5", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib64/libbz2.so.1", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib64/libsnappy.so.1", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib64/libaio.so.1", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib64/libz.so.1", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib64/libm.so.6", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib64/libpcre.so.1", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib64/libcrypt.so.2", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib64/libsystemd.so.0", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib64/libstdc++.so.6", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib64/libgcc_s.so.1", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib64/libc.so.6", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib64/libzstd.so.1", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib64/libcap.so.2", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib64/libgcrypt.so.20", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib64/libgpg-error.so.0", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/proc/sys/crypto/fips_enabled", O_RDONLY) = 3 openat(AT_FDCWD, "/etc/localtime", O_RDONLY|O_CLOEXEC) = 3 write(2, "2022-10-26 14:23:15 0 [Note] Usi"..., 1652022-10-26 14:23:15 0 [Note] Using unique option prefix 'key-buffer' is error-prone and can break in the future. Please use the full name 'key_buffer_size' instead. ) = 165 openat(AT_FDCWD, "/tmp/build-mariadb-server-10.3-datadir/localhost.lower-test", O_RDWR|O_CREAT|O_CLOEXEC, 0666) = 3 strace: Process 70389 attached [pid 70388] openat(AT_FDCWD, "/tmp/build-mariadb-server-10.3-datadir/localhost.err", O_WRONLY|O_CREAT|O_APPEND, 0666) = 3 [pid 70388] openat(AT_FDCWD, "/tmp/build-mariadb-server-10.3-datadir/localhost.err", O_WRONLY|O_CREAT|O_APPEND, 0666) = 3

            People

              Unassigned Unassigned
              nirbhay_c Nirbhay Choubey (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.