microsoftarchive / redis

Redis is an in-memory database that persists on disk. The data model is key-value, but many different kind of values are supported: Strings, Lists, Sets, Sorted Sets, Hashes
http://redis.io
Other
20.84k stars 5.38k forks source link

Win32: Background saving terminated by signal 1 #477

Open ssvasilyev opened 8 years ago

ssvasilyev commented 8 years ago

Starting from version 3.0 Redis (x86) fails to the save database to file. Basically it saves first time and all next attempts fails with exception:

[12668] 29 Jun 12:06:13.868 # Warning: 32 bit instance detected but no memory limit set. Setting 3 GB maxmemory limit with 'noeviction' policy now. [12668] 29 Jun 12:06:13.868 # Server started, Redis version 3.2.0000-preview [12668] 29 Jun 12:06:13.868 * The server is now ready to accept connections on p ort 6379 [12668] 29 Jun 12:06:13.878 - 0 clients connected (0 slaves), 461808 bytes in use [12668] 29 Jun 12:06:18.728 - Accepted 127.0.0.1:47959 [12668] 29 Jun 12:06:18.748 - Accepted 127.0.0.1:47960 [12668] 29 Jun 12:06:18.758 - Accepted 127.0.0.1:47961 [12668] 29 Jun 12:06:18.758 - Accepted 127.0.0.1:47962 [12668] 29 Jun 12:06:18.878 - DB 0: 1 keys (0 volatile) in 4 slots HT. [12668] 29 Jun 12:06:18.878 - 4 clients connected (0 slaves), 545784 bytes in use [12668] 29 Jun 12:06:19.922 - Accepted 127.0.0.1:47963 [12668] 29 Jun 12:06:19.999 - Accepted 127.0.0.1:47964 [12668] 29 Jun 12:06:20.041 - Accepted 127.0.0.1:47965 [12668] 29 Jun 12:06:20.085 - Accepted 127.0.0.1:47966 [12668] 29 Jun 12:06:20.162 - Accepted 127.0.0.1:47967 [12668] 29 Jun 12:06:20.202 - Accepted 127.0.0.1:47968 [12668] 29 Jun 12:06:20.204 - Accepted 127.0.0.1:47969 [12668] 29 Jun 12:06:23.301 - Accepted 127.0.0.1:47970 [12668] 29 Jun 12:06:23.321 - Accepted 127.0.0.1:47971 [12668] 29 Jun 12:06:24.071 * 1 changes in 10 seconds. Saving... [12668] 29 Jun 12:06:24.071 * Background saving started by pid 10004

=== REDIS BUG REPORT START: Cut & paste starting from here === Redis version: 3.2.0000-preview [10004] 29 Jun 12:06:24.151 # --- EXCEPTION_ACCESS_VIOLATION [10004] 29 Jun 12:06:24.151 # --- STACK TRACE [10004] 29 Jun 12:06:24.151 # --- INFO OUTPUT [12668] 29 Jun 12:06:24.391 - DB 0: 3 keys (0 volatile) in 4 slots HT. [12668] 29 Jun 12:06:24.391 - DB 2: 2 keys (0 volatile) in 4 slots HT. [12668] 29 Jun 12:06:24.391 - 13 clients connected (0 slaves), 733224 bytes in use [12668] 29 Jun 12:06:29.391 - DB 0: 3 keys (0 volatile) in 4 slots HT. [12668] 29 Jun 12:06:29.391 - DB 2: 2 keys (0 volatile) in 4 slots HT. [12668] 29 Jun 12:06:29.391 - 13 clients connected (0 slaves), 733224 bytes in use [12668] 29 Jun 12:06:34.391 - DB 0: 3 keys (0 volatile) in 4 slots HT. [12668] 29 Jun 12:06:34.391 - DB 2: 2 keys (0 volatile) in 4 slots HT. [12668] 29 Jun 12:06:34.391 - 13 clients connected (0 slaves), 733224 bytes in use [12668] 29 Jun 12:06:39.391 - DB 0: 3 keys (0 volatile) in 4 slots HT. [12668] 29 Jun 12:06:39.391 - DB 2: 2 keys (0 volatile) in 4 slots HT. [12668] 29 Jun 12:06:39.391 - 13 clients connected (0 slaves), 733224 bytes in use [12668] 29 Jun 12:06:44.391 - DB 0: 3 keys (0 volatile) in 4 slots HT. [12668] 29 Jun 12:06:44.391 - DB 2: 2 keys (0 volatile) in 4 slots HT. [12668] 29 Jun 12:06:44.391 - 13 clients connected (0 slaves), 733224 bytes in use [12668] 29 Jun 12:06:49.392 - DB 0: 3 keys (0 volatile) in 4 slots HT. [12668] 29 Jun 12:06:49.392 - DB 2: 2 keys (0 volatile) in 4 slots HT. [12668] 29 Jun 12:06:49.392 - 13 clients connected (0 slaves), 733224 bytes in use [12668] 29 Jun 12:06:54.392 - DB 0: 3 keys (0 volatile) in 4 slots HT. [12668] 29 Jun 12:06:54.392 - DB 2: 2 keys (0 volatile) in 4 slots HT. [12668] 29 Jun 12:06:54.392 - 13 clients connected (0 slaves), 770080 bytes in use [12668] 29 Jun 12:06:59.392 - DB 0: 3 keys (0 volatile) in 4 slots HT. [12668] 29 Jun 12:06:59.392 - DB 2: 2 keys (0 volatile) in 4 slots HT. [12668] 29 Jun 12:06:59.392 - 13 clients connected (0 slaves), 770080 bytes in use [12668] 29 Jun 12:07:04.392 - DB 0: 3 keys (0 volatile) in 4 slots HT. [12668] 29 Jun 12:07:04.392 - DB 2: 2 keys (0 volatile) in 4 slots HT. [12668] 29 Jun 12:07:04.392 - 13 clients connected (0 slaves), 733224 bytes in use [12668] 29 Jun 12:07:07.136 # fork operation failed [12668] 29 Jun 12:07:07.136 # Background saving terminated by signal 1 [12668] 29 Jun 12:07:07.236 * 1 changes in 10 seconds. Saving... [12668] 29 Jun 12:07:07.236 * Background saving started by pid 17464

=== REDIS BUG REPORT START: Cut & paste starting from here === Redis version: 3.2.0000-preview [17464] 29 Jun 12:07:07.336 # --- EXCEPTION_ACCESS_VIOLATION [17464] 29 Jun 12:07:07.336 # --- STACK TRACE [17464] 29 Jun 12:07:07.336 # --- INFO OUTPUT [12668] 29 Jun 12:07:08.016 - Client closed connection [12668] 29 Jun 12:07:08.016 - Reading from client: An existing connection was forcibly closed by the remote host. [12668] 29 Jun 12:07:08.016 - Client closed connection [12668] 29 Jun 12:07:08.016 - Accepted 127.0.0.1:48006 [12668] 29 Jun 12:07:08.026 - Client closed connection [12668] 29 Jun 12:07:08.026 - Client closed connection [12668] 29 Jun 12:07:08.026 - Client closed connection [12668] 29 Jun 12:07:08.026 - Accepted 127.0.0.1:48007 [12668] 29 Jun 12:07:08.076 - Client closed connection [12668] 29 Jun 12:07:08.076 - Client closed connection [12668] 29 Jun 12:07:08.076 - Accepted 127.0.0.1:48008 [12668] 29 Jun 12:07:08.076 - Client closed connection [12668] 29 Jun 12:07:08.076 - Reading from client: An established connection was aborted by the software in your host machine. [12668] 29 Jun 12:07:08.086 - Client closed connection [12668] 29 Jun 12:07:08.086 - Client closed connection [12668] 29 Jun 12:07:08.086 - Client closed connection [12668] 29 Jun 12:07:08.086 - Client closed connection [12668] 29 Jun 12:07:08.306 - Client closed connection [12668] 29 Jun 12:07:08.326 - Reading from client: An existing connection was forcibly closed by the remote host. [12668] 29 Jun 12:07:08.736 # fork operation failed [12668] 29 Jun 12:07:08.736 # Background saving terminated by signal 1 [12668] 29 Jun 12:07:09.436 - DB 0: 3 keys (0 volatile) in 4 slots HT. [12668] 29 Jun 12:07:09.436 - DB 2: 2 keys (0 volatile) in 4 slots HT. [12668] 29 Jun 12:07:09.436 - 0 clients connected (0 slaves), 463264 bytes in us e [12668] 29 Jun 12:07:10.236 # User requested shutdown... [12668] 29 Jun 12:07:10.236 * Saving the final RDB snapshot before exiting. [12668] 29 Jun 12:07:10.236 * DB saved on disk [12668] 29 Jun 12:07:10.236 * Removing the pid file. [12668] 29 Jun 12:07:10.236 # Redis is now ready to exit, bye bye...

Tried to compile with different targets (x86, Win32, Mixed Platform) - all time result is the same. Version 2.8.19 works fine. I know x32 is not officially supported - please have a look. The issue could be trivial like file is locked by first thread, etc.