Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sysbench error message accesses uninitialized memory #16

Closed
akopytov opened this issue Dec 29, 2015 · 5 comments
Closed

sysbench error message accesses uninitialized memory #16

akopytov opened this issue Dec 29, 2015 · 5 comments

Comments

@akopytov
Copy link
Owner

This is a copy of https://bugs.launchpad.net/sysbench/+bug/1529742

FATAL: Cannot open file errno = 24 ((
���)

FATAL: Cannot open file errno = 24 (8�6k�)

FATAL: Cannot open file errno = 24 (��
Y�)
@akopytov
Copy link
Owner Author

I'm unable to reproduce this. This is on Ubuntu 14.10 in a read-only directory:

user@ubuntu:/tmp/test$ ~/src/git/sysbench/sysbench/sysbench --test=fileio prepare
sysbench 0.5: multi-threaded system evaluation benchmark

128 files, 16384Kb each, 2048Mb total
Creating files for the test...
Extra file open flags: 0
FATAL: Can't open file errno = 13 (Permission denied)

@chadmiller
Copy link

Perhaps it's the path up to this. Create more data files than your ulimit (-n) has the ability to open. For me, this was

sysbench --num-threads=16 --test=fileio --file-total-size=1300G --file-test-mode=rndrw --file-num=13000

@akopytov
Copy link
Owner Author

Still can't repeat:

user@ubuntu:/tmp/test$ ulimit -n 50
user@ubuntu:/tmp/test$ ~/src/git/sysbench/sysbench/sysbench --test=fileio --file-test-mode=rndrw run
...
Doing random r/w test
FATAL: Cannot open file errno = 24 (Too many open files)

I'll try more ways to repeat that. What's the OS version in your setup?

@chadmiller
Copy link

Ubuntu xenial, to be 16.04. sysbench version 0.4.12-1.1 from Debian.

I can still reproduce even with sources. Looks to me like
strerror_r(old_errno, errbuf, sizeof(errbuf));
doesn't fill errbuf. I thought it could be because of an attempt to open
gettext files, but strace doesn't bear that out.

I'll look more later.

On Tue, Dec 29, 2015 at 9:55 AM, Alexey Kopytov notifications@github.com
wrote:

Still can't repeat:

user@ubuntu:/tmp/test$ ulimit -n 50
user@ubuntu:/tmp/test$ ~/src/git/sysbench/sysbench/sysbench --test=fileio --file-test-mode=rndrw run
...
Doing random r/w test
FATAL: Cannot open file errno = 24 (Too many open files)

I'll try more ways to repeat that. What's the OS version in your setup?


Reply to this email directly or view it on GitHub
#16 (comment).

Chad Miller
chad.org

@akopytov
Copy link
Owner Author

Closing, feel free to reopen if can provide more details.

inikep pushed a commit to inikep/sysbench that referenced this issue Mar 25, 2024
* sync luajit

* taking code from source (akopytov#16)

* Command line flag to set the sslmode for PostgreSQL (Closes: akopytov#326)

The flag name and its values match libpq's sslmode connection parameter.
The default value (prefer) will first try an SSL connection; if that
fails, it will try a non-SSL connection.

Libpq documentation: https://www.postgresql.org/docs/14/libpq-connect.html#LIBPQ-CONNECT-SSLMODE

* Replace bundled LuaJIT with upstream @ commit 224129a

* Add option for setting zlib/zstd compression algorithms

* Add GitHub actions

* Run the test as well

* tests: Fix failing test due to egrep

Use `grep -E` instead of `egrep` as `egrep` now emits a warning.

```
t/opt_report_checkpoints.t: failed
--- t/opt_report_checkpoints.t
+++ t/opt_report_checkpoints.t.err
@@ -8,6 +8,7 @@
   > fi

   $ sysbench ${SBTEST_SCRIPTDIR}/oltp_read_write.lua --db-driver=mysql --mysql-dry-run --time=3 --events=0 --report-checkpoints=1,2 run | egrep '(Checkpoint report|SQL statistics)'
+  egrep: warning: egrep is obsolescent; using grep -E
   [ 1s ] Checkpoint report:
   SQL statistics:
   [ 2s ] Checkpoint report:
```

```
$ echo | egrep 'abc'
egrep: warning: egrep is obsolescent; using grep -E
$ grep --version
grep (GNU grep) 3.8
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Mike Haertel and others; see
<https://git.sv.gnu.org/cgit/grep.git/tree/AUTHORS>.
```

* CI: Update help_drv_mysql.t and status badge

* CI: Also build with PostgreSQL support

* Fix help_drv_pgsql.t

---------

Co-authored-by: Daniel Dinu <daniel@danieldinu.com>
Co-authored-by: Alexey Kopytov <akopytov@gmail.com>
Co-authored-by: Daniël van Eeden <git@myname.nl>

* Modify Active  from 0/1 to be small int this was causing some issue with sysbench counter

---------

Co-authored-by: Daniel Dinu <daniel@danieldinu.com>
Co-authored-by: Alexey Kopytov <akopytov@gmail.com>
Co-authored-by: Daniël van Eeden <git@myname.nl>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants