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

redis crash #1061

Closed
digiyouth opened this issue Apr 19, 2013 · 3 comments
Closed

redis crash #1061

digiyouth opened this issue Apr 19, 2013 · 3 comments

Comments

@digiyouth
Copy link

=== REDIS BUG REPORT START: Cut & paste starting from here ===
[6718] 19 Apr 09:30:01.701 # ------------------------------------------------
[6718] 19 Apr 09:30:01.701 # !!! Software Failure. Press left mouse button to continue
[6718] 19 Apr 09:30:01.701 # Guru Meditation: "OOM" #redis.c:2617
[6718] 19 Apr 09:30:01.701 # (forcing SIGSEGV in order to print the stack trace)
[6718] 19 Apr 09:30:01.701 # ------------------------------------------------
[6718] 19 Apr 09:30:01.701 # Redis 2.6.12 crashed by signal: 11
[6718] 19 Apr 09:30:01.701 # Failed assertion: (:0)
[6718] 19 Apr 09:30:01.701 # --- STACK TRACE
/usr/local/bin/redis-server(logStackTrace+0x71)[0x8087341]
/usr/local/bin/redis-server(_redisPanic+0x84)[0x8086184]
[0xf57fe40c]
/usr/local/bin/redis-server(_redisPanic+0x84)[0x8086184]
/usr/local/bin/redis-server(redisOutOfMemoryHandler+0x3b)[0x805c31b]
/usr/local/bin/redis-server(zrealloc+0xe1)[0x8062681]
/usr/local/bin/redis-server(sdsMakeRoomFor+0x41)[0x8061451]
/usr/local/bin/redis-server(readQueryFromClient+0x4a)[0x80688ca]
/usr/local/bin/redis-server(aeProcessEvents+0x140)[0x8059b00]
/usr/local/bin/redis-server(aeMain+0x2c)[0x8059e5c]
/usr/local/bin/redis-server(main+0x2c5)[0x8058c85]
/lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0xb756a4d3]
/usr/local/bin/redis-server[0x8058e21]
[6718] 19 Apr 09:30:01.702 # --- INFO OUTPUT
[6718] 19 Apr 09:30:01.702 # # Server
redis_version:2.6.12
redis_git_sha1:00000000
redis_git_dirty:0
redis_mode:standalone
os:Linux 3.8.4-linode50 i686
arch_bits:32
multiplexing_api:epoll
gcc_version:4.6.3
process_id:6718
run_id:f78608646c16e035f86311e39c794f008131fe79
tcp_port:6379
uptime_in_seconds:274
uptime_in_days:0
hz:10
lru_clock:318620

Clients

connected_clients:24
client_longest_output_list:0
client_biggest_input_buf:0
blocked_clients:0

Memory

used_memory:3135526064
used_memory_human:2.92G
used_memory_rss:3174350848
used_memory_peak:3135451288
used_memory_peak_human:2.92G
used_memory_lua:21504
mem_fragmentation_ratio:1.01
mem_allocator:jemalloc-3.2.0

Persistence

loading:0
rdb_changes_since_last_save:87152
rdb_bgsave_in_progress:0
rdb_last_save_time:1366334948
rdb_last_bgsave_status:ok
rdb_last_bgsave_time_sec:38
rdb_current_bgsave_time_sec:-1
aof_enabled:0
aof_rewrite_in_progress:0
aof_rewrite_scheduled:0
aof_last_rewrite_time_sec:-1
aof_current_rewrite_time_sec:-1
aof_last_bgrewrite_status:ok

Stats

total_connections_received:779
total_commands_processed:580596
instantaneous_ops_per_sec:2276
rejected_connections:0
expired_keys:1101
evicted_keys:0
keyspace_hits:153063
keyspace_misses:15558
pubsub_channels:0
pubsub_patterns:0
latest_fork_usec:964999

Replication

role:master
connected_slaves:0

CPU

used_cpu_sys:25.29
used_cpu_user:90.94
used_cpu_sys_children:9.83
used_cpu_user_children:67.37

Commandstats

cmdstat_get:calls=49793,usec=341572,usec_per_call=6.86
cmdstat_setex:calls=17903,usec=395170,usec_per_call=22.07
cmdstat_exists:calls=46768,usec=235883,usec_per_call=5.04
cmdstat_sadd:calls=124,usec=3540,usec_per_call=28.55
cmdstat_scard:calls=126,usec=970,usec_per_call=7.70
cmdstat_srandmember:calls=1161,usec=10988,usec_per_call=9.46
cmdstat_hset:calls=124,usec=3646,usec_per_call=29.40
cmdstat_hget:calls=110270,usec=826852,usec_per_call=7.50
cmdstat_hincrby:calls=166164,usec=2304274,usec_per_call=13.87
cmdstat_hgetall:calls=42,usec=2202,usec_per_call=52.43
cmdstat_incrby:calls=14730,usec=240066,usec_per_call=16.30
cmdstat_expire:calls=7229,usec=83508,usec_per_call=11.55
cmdstat_info:calls=2,usec=607,usec_per_call=303.50
cmdstat_ttl:calls=166160,usec=729037,usec_per_call=4.39

Keyspace

db0:keys=751446,expires=695701
hash_init_value: 1366617760

[6718] 19 Apr 09:30:01.703 # --- CLIENT LIST OUTPUT
[6718] 19 Apr 09:30:01.703 # addr=192.168.128.141:33192 fd=7 name= age=195 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=32768 obl=0 oll=0 omem=0 events=r cmd=get
addr=192.168.128.141:33193 fd=8 name= age=195 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=32768 obl=0 oll=0 omem=0 events=r cmd=get
addr=192.168.152.20:51142 fd=12 name= age=195 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=32768 obl=0 oll=0 omem=0 events=r cmd=hget
addr=192.168.156.225:33687 fd=13 name= age=195 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 obl=0 oll=0 omem=0 events=r cmd=ttl
addr=192.168.133.3:43098 fd=16 name= age=195 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=32768 obl=5 oll=0 omem=0 events=rw cmd=ttl
addr=192.168.152.20:51228 fd=18 name= age=195 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 obl=0 oll=0 omem=0 events=r cmd=ttl
addr=192.168.131.69:36054 fd=19 name= age=195 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=32768 obl=0 oll=0 omem=0 events=r cmd=ttl
addr=192.168.188.47:34804 fd=23 name= age=195 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=32768 obl=0 oll=0 omem=0 events=r cmd=ttl
addr=192.168.131.69:36057 fd=26 name= age=195 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=32768 obl=0 oll=0 omem=0 events=r cmd=hincrby
addr=192.168.156.225:33689 fd=27 name= age=195 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=32768 obl=0 oll=0 omem=0 events=r cmd=ttl
addr=192.168.188.47:34805 fd=28 name= age=195 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=32768 obl=0 oll=0 omem=0 events=r cmd=setex
addr=192.168.133.3:43102 fd=9 name= age=147 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=32768 obl=7 oll=0 omem=0 events=rw cmd=hincrby
addr=192.168.133.3:43104 fd=11 name= age=139 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=32768 obl=5 oll=0 omem=0 events=rw cmd=hget
addr=192.168.128.141:33200 fd=15 name= age=81 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=32768 obl=0 oll=0 omem=0 events=r cmd=ttl
addr=192.168.128.141:33202 fd=20 name= age=72 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=32768 obl=0 oll=0 omem=0 events=r cmd=ttl
addr=192.168.152.20:33372 fd=22 name= age=71 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=32768 obl=0 oll=0 omem=0 events=r cmd=ttl
addr=192.168.131.69:36062 fd=24 name= age=67 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=32768 obl=0 oll=0 omem=0 events=r cmd=hincrby
addr=192.168.188.47:34811 fd=10 name= age=61 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=32768 obl=0 oll=0 omem=0 events=r cmd=ttl
addr=192.168.156.225:33695 fd=14 name= age=29 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=32768 obl=0 oll=0 omem=0 events=r cmd=expire
addr=192.168.152.20:36022 fd=6 name= age=28 idle=1 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 obl=0 oll=0 omem=0 events=r cmd=ttl
addr=192.168.131.69:36064 fd=25 name= age=16 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=32768 obl=0 oll=0 omem=0 events=r cmd=get
addr=192.168.156.225:33697 fd=5 name= age=12 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 obl=0 oll=0 omem=0 events=r cmd=ttl
addr=192.168.188.47:34813 fd=21 name= age=4 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=32768 obl=0 oll=0 omem=0 events=r cmd=hincrby
addr=192.168.133.3:43106 fd=17 name= age=1 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=32768 obl=0 oll=0 omem=0 events=r cmd=ttl

[6718] 19 Apr 09:30:01.703 # --- CURRENT CLIENT INFO
[6718] 19 Apr 09:30:01.703 # client: addr=192.168.156.225:33687 fd=13 name= age=195 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 obl=0 oll=0 omem=0 events=r cmd=ttl
[6718] 19 Apr 09:30:01.703 # --- REGISTERS
[6718] 19 Apr 09:30:01.704 #
EAX:00000000 EBX:00000000 ECX:b76f7440 EDX:b76f7440
EDI:00000010 ESI:00008009 EBP:0000000d ESP:bfdc19d0
SS :0000007b EFL:bfdc19d0 EIP:08086184 CS:00000073
DS :0000007b ES :0000007b FS :c07a0000 GS:00000033
[6718] 19 Apr 09:30:01.704 # (bfdc1a0c) -> bfa5a730
[6718] 19 Apr 09:30:01.704 # (bfdc1a08) -> 00000a39
[6718] 19 Apr 09:30:01.704 # (bfdc1a04) -> 080e9280
[6718] 19 Apr 09:30:01.704 # (bfdc1a00) -> 080e044b
[6718] 19 Apr 09:30:01.704 # (bfdc19fc) -> 0805c31b
[6718] 19 Apr 09:30:01.704 # (bfdc19f8) -> 00008009
[6718] 19 Apr 09:30:01.704 # (bfdc19f4) -> 00000000
[6718] 19 Apr 09:30:01.704 # (bfdc19f0) -> 7cfbc6e0
[6718] 19 Apr 09:30:01.704 # (bfdc19ec) -> 75ccdb00
[6718] 19 Apr 09:30:01.704 # (bfdc19e8) -> 0000000b
[6718] 19 Apr 09:30:01.704 # (bfdc19e4) -> 00004000
[6718] 19 Apr 09:30:01.704 # (bfdc19e0) -> 00000a39
[6718] 19 Apr 09:30:01.704 # (bfdc19dc) -> 080e9280
[6718] 19 Apr 09:30:01.704 # (bfdc19d8) -> 080e044b
[6718] 19 Apr 09:30:01.704 # (bfdc19d4) -> 080e63e4
[6718] 19 Apr 09:30:01.704 # (bfdc19d0) -> 00000003
[6718] 19 Apr 09:30:01.704 #
=== REDIS BUG REPORT END. Make sure to include from START to END. ===

@jokea
Copy link
Contributor

jokea commented Apr 26, 2013

You are running redis on a 32-bit system, and redis reaches the memory limit.

@antirez antirez closed this as completed Apr 26, 2013
@antirez
Copy link
Contributor

antirez commented Apr 26, 2013

@jokea I made the "OOM" message a lot more understandable in latest Redis versions, in the hope it will be simpler to figure it is just out of memory for users.

@digiyouth
Copy link
Author

I've sloved the problem.
Thank you!

在 2013-4-26,15:45,jokea notifications@github.com 写道:

You are running redis on a 32-bit system, and redis reaches the memory
limit.


Reply to this email directly or view it on
GitHubhttps://github.com//issues/1061#issuecomment-17059614
.

yossigo added a commit to yossigo/redis that referenced this issue May 30, 2023
b6a052fe0 Helper for setting TCP_USER_TIMEOUT socket option (redis#1188)
3fa9b6944 Add RedisModule adapter (redis#1182)
d13c091e9 Fix wincrypt symbols conflict
5d84c8cfd Add a test ensuring we don't clobber connection error.
3f95fcdae Don't attempt to set a timeout if we are in an error state.
aacb84b8d Fix typo in makefile.
563b062e3 Accept -nan per the RESP3 spec recommendation.
04c1b5b02 Fix colliding option values
4ca8e73f6 Rework searching for openssl
cd208812f Attempt to find the correct path for openssl.
011f7093c Allow specifying the keepalive interval
e9243d4f7 Cmake static or shared (redis#1160)
1cbd5bc76 Write a version file for the CMake package (redis#1165)
6f5bae8c6 fix typo
acd09461d CMakeLists.txt: respect BUILD_SHARED_LIBS
97fcf0fd1 Add sdevent adapter
ccff093bc Bump dev version for the next release cycle.
c14775b4e Prepare for v1.1.0 GA
f0bdf8405 Add support for nan in RESP3 double (redis#1133)
991b0b0b3 Add an example that calls redisCommandArgv (redis#1140)
a36686f84 CI updates (redis#1139)
8ad4985e9 fix flag reference
7583ebb1b Make freeing a NULL redisAsyncContext a no op.
2c53dea7f Update version in dev branch.
f063370ed Prepare for v1.1.0-rc1
2b069573a CI fixes in preparation of release
e1e9eb40d Add author information to release-drafter template.
afc29ee1a Update for mingw cross compile
ceb8a8815 fixed cpp build error with adapters/libhv.h
3b15a04b5 Fixup of PR734: Coverage of hiredis.c (redis#1124)
c245df9fb CMake corrections for building on Windows (redis#1122)
9c338a598 Fix PUSH handler tests for Redis >= 7.0.5
6d5c3ee74 Install on windows fixes (redis#1117)
68b29e1ad Add timeout support to libhv adapter. (redis#1109)
722e3409c Additional include directory given by pkg-config (redis#1118)
bd9ccb8c4 Use __attribute__ when building with clang on windows
5392adc26 set default SSL certificate directory
560e66486 Minor refactor
d756f68a5 Add libhv example to our standard Makefile
a66916719 Add adapters/libhv
855b48a81 Fix pkgconfig for hiredis_ssl
79ae5ffc6 Fix protocol error (redis#1106)
61b5b299f Use a windows specific keepalive function. (redis#1104)
fce8abc1c Introduce .close method for redisContextFuncs
cfb6ca881 Add REDIS_OPT_PREFER_UNSPEC (redis#1101)
cc7c35ce6 Update documentation to explain redisConnectWithOptions.
bc8d837b7 fix heap-buffer-overflow (redis#957)
ca4a0e850 uvadapter: reduce number of uv_poll_start calls
35d398c90 Fix cmake config path on Linux. CMake config files were installed to `/usr/local/share/hiredis`, which is not recognizable by `find_package()`. I'm not sure why it was set that way. Given the commit introducing it is for Windows, I keep that behavior consistent there, but fix the rest.
10c78c6e1 Add possibility to prefer IPv6, IPv4 or unspecified
1abe0c828 fuzzer: No alloc in redisFormatCommand() when fail
329eaf9ba Fix heap-buffer-overflow issue in redisvFormatCommad
eaae7321c Polling adapter requires sockcompat.h
0a5fa3dde Regression test for off-by-one parsing error
9e174e8f7 Add do while(0) protection for macros
4ad99c69a Rework asSleep to be a generic millisleep function.
75cb6c1ea Do store command timeout in the context for redisSetTimeout (redis#593)
c57cad658 CMake: remove dict.c form hiredis_sources
8491a65a9 Add Github Actions CI workflow for hiredis: Arm, Arm64, 386, windows. (redis#943)
77e4f09ea Merge pull request redis#964 from afcidk/fix-createDoubleObject
9219f7e7c Merge pull request redis#901 from devnexen/illumos_test_fix
810cc6104 Merge pull request redis#905 from sundb/master
df8b74d69 Merge pull request redis#1091 from redis/ssl-error-ub-fix
0ed6cdec3 Fix some undefined behaviour
507a6dcaa Merge pull request redis#1090 from Nordix/subscribe-oom-error
b044eaa6a Copy error to redisAsyncContext when finding subscribe cb
e0200b797 Merge pull request redis#1087 from redis/const-and-non-const-callback
6a3e96ad2 Maintain backward compatibiliy withour onConnect callback.
e7afd998f Merge pull request redis#1079 from SukkaW/drop-macos-10.15-runner
17c8fe079 Merge pull request redis#931 from kristjanvalur/pr2
b808c0c20 Merge pull request redis#1083 from chayim/ck-drafter
367a82bf0 Merge pull request redis#1085 from stanhu/ssl-improve-options-setting
71119a71d Make it possible to set SSL verify mode
dd7979ac1 Merge pull request redis#1084 from stanhu/sh-improve-ssl-docs
c71116178 Improve example for SSL initialization in README.md
5c9b6b571 Release drafter
a606ccf2a CI: use recommended `vmactions/freebsd-vm@v0`
0865c115b Merge pull request redis#1080 from Nordix/readme-corrections
f6cee7142 Fix README typos
06be7ff31 Merge pull request redis#1050 from smmir-cent/fix-cmake-version
7dd833d54 CI: bump macos runner version
f69fac769 Drop `const` on redisAsyncContext in redisConnectCallback Since the callback is now re-entrant, it can call apis such as redisAsyncDisconnect()
005d7edeb Support calling redisAsyncDisconnect from the onConnected callback, by deferring context deletion
6ed060920 Add async regression test for issue redis#931
eaa2a7ee7 Merge pull request redis#932 from kristjanvalur/pr3
2ccef30f3 Add regression test for issue redis#945
4b901d44a Initial async tests
31c91408e Polling adapter and example
8a15f4d65 Merge pull request redis#1057 from orgads/static-name
902dd047f Merge pull request redis#1054 from kristjanvalur/pr08
c78d0926b Merge pull request redis#1074 from michael-grunder/kristjanvalur-pr4
2b115d56c Whitespace
1343988ce Fix typos
47b57aa24 Add some documentation on connect/disconnect callbacks and command callbacks
a890d9ce2 Merge pull request redis#1073 from michael-grunder/kristjanvalur-pr1
f246ee433 Whitespace, style
94c1985bd Use correct type for getsockopt()
5e002bc21 Support failed async connects on windows.
5d68ad2f4 Merge pull request redis#1072 from michael-grunder/fix-redis7-unit-tests
f4b6ed289 Fix tests so they work for Redis 7.0
95a0c1283 Merge pull request redis#1058 from orgads/win64
eedb37a65 Fix warnings on Win64
47c3ecefc Merge pull request redis#1062 from yossigo/fix-push-notification-order
e23d91c97 Merge pull request redis#1061 from yossigo/update-redis-apt
34211ad54 Merge pull request redis#1063 from redis/fix-windows-tests
9957af7e3 Whitelist hiredis repo path in cygwin
b455b3381 Handle push notifications before or after reply.
aed9ce446 Use official repository for redis package.
d7683f35a Merge pull request redis#1047 from Nordix/unsubscribe-handling
7c44a9d7e Merge pull request redis#1045 from Nordix/sds-updates
dd4bf9783 Use the same name for static and shared libraries
ff57c18b9 Embed debug information in windows static lib, rather than create a .pdb file
8310ad4f5 fix cmake version
7123b87f6 Handle any pipelined unsubscribe in async
b6fb548fc Ignore pubsub replies without a channel/pattern
00b82683b Handle overflows as errors instead of asserting
64062a1d4 Catch size_t overflows in sds.c
066c6de79 Use size_t/long to avoid truncation
c6657ef65 Merge branch 'redis:master' into master
50cdcab49 Fix potential fault at createDoubleObject
fd033e983 Remove semicolon after do-while in _EL_CLEANUP
664c415e7 Illumos test fixes, error message difference fot bad hostname test.

git-subtree-dir: deps/hiredis
git-subtree-split: b6a052fe0959dae69e16b9d74449faeb1b70dbe1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants