[MDEV-10648] mysqld --log-error prints on stdout at start Created: 2016-08-23  Updated: 2022-10-26

Status: Confirmed
Project: MariaDB Server
Component/s: None
Affects Version/s: 10.1.16
Fix Version/s: 10.2

Type: Bug Priority: Minor
Reporter: Nirbhay Choubey (Inactive) Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None

Issue Links:
Relates
relates to MDEV-6873 On startup please make MariaDB report... Closed
relates to MDEV-9593 Print the real version in the error log Closed
relates to MDEV-10967 Print the real version in the error l... Closed
relates to MDEV-17093 Print version_source_revision in the ... Closed
relates to MDEV-20287 Have the server process print a "star... Open
relates to MDEV-20344 startup messages belong in stderr/err... Closed
relates to MDEV-21711 Log: "Server Version xx.xx.xx startin... Open
relates to MDEV-21046 Print server version to error log ins... Open

 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 ...



 Comments   
Comment by Elena Stepanova [ 2016-09-25 ]

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.

Comment by Daniel Black [ 2022-10-26 ]

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

Generated at Thu Feb 08 07:43:51 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.