shunwang / redisql

Automatically exported from code.google.com/p/redisql
0 stars 0 forks source link

ASSERTION FAILED redis.c:6253 #25

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This is similar to issue #23.

What steps will reproduce the problem?

I have a repro case that happens after a few calls with a LUA command string 
(several go through and then suddenly a crash).  Contact me directly 
damondanieli@gmail.com for files to set up the repro case.

[62938] 30 Jan 19:17:34 # === ASSERTION FAILED ===
[62938] 30 Jan 19:17:34 # ==> redis.c:6253 'deleted != 0' is not true[62938] 30 
Jan 19:17:34 # (forcing SIGSEGV in order to print the stack trace)
[62938] 30 Jan 19:17:34 # ======= Ooops! Redis 1.3.14 got signal: -11- 
=======[62938] 30 Jan 19:17:34 # Redisql_version:0.0.15^M
redis_version:1.3.14^Mredis_git_sha1:00000000^M
redis_git_dirty:0^March_bits:64^M
multiplexing_api:kqueue^Mprocess_id:62938^M
uptime_in_seconds:131^M
uptime_in_days:0^M
connected_clients:2^M
connected_slaves:0^M
blocked_clients:0^Mused_memory:1597168^M
used_memory_human:1.52M^Mchanges_since_last_save:1033^M
bgsave_in_progress:0^Mlast_save_time:1296443848^M
bgrewriteaof_in_progress:0^Mtotal_connections_received:3^M
total_commands_processed:59^Mexpired_keys:0^M
hash_max_zipmap_entries:64^M
hash_max_zipmap_value:512^M
pubsub_channels:0^M
pubsub_patterns:0^M
vm_enabled:0^M
role:master^M
db3:keys=10,expires=0^M

[62938] 30 Jan 19:17:34 # 1 redis-server 0x10002398f _redisAssert + 95
[62938] 30 Jan 19:17:34 # 2   ???                                 
0x0000000000000000 0x0 + 0
[62938] 30 Jan 19:17:34 # 3 redis-server 0x10002cae2 zaddGenericCommand + 562
[62938] 30 Jan 19:17:34 # 4 redis-server 0x10002cb31 zincrbyCommand + 65
[62938] 30 Jan 19:17:34 # 5   redisql-server                      
0x000000010004e079 fakeClientPipe + 73
[62938] 30 Jan 19:17:34 # 6   redisql-server                      
0x000000010004b0bb redisLua + 651
[62938] 30 Jan 19:17:34 # 7   redisql-server                      
0x0000000100006692 luaD_precall + 322
[62938] 30 Jan 19:17:34 # 8   redisql-server                      
0x000000010001115f luaV_execute + 3631
[62938] 30 Jan 19:17:34 # 9   redisql-server                      
0x0000000100006b2d luaD_call + 173
[62938] 30 Jan 19:17:34 # 10  redisql-server                      
0x00000001000061d7 luaD_rawrunprotected + 103
[62938] 30 Jan 19:17:34 # 11  redisql-server                      
0x0000000100006250 luaD_pcall + 80
[62938] 30 Jan 19:17:34 # 12  redisql-server                      
0x0000000100001c77 lua_pcall + 87
[62938] 30 Jan 19:17:34 # 13  redisql-server                      
0x000000010004b234 luaCommand + 100
[62938] 30 Jan 19:17:34 # 14 redis-server 0x10002a6a5 call + 69
[62938] 30 Jan 19:17:34 # 15 redis-server 0x1000344a4 processCommand + 1060
[62938] 30 Jan 19:17:34 # 16 redis-server 0x1000345f7 processInputBuffer + 119
[62938] 30 Jan 19:17:34 # 17 redis-server 0x100034bf0 readQueryFromClient + 112
[62938] 30 Jan 19:17:34 # 18  redisql-server                      
0x000000010001cd86 aeProcessEvents + 406
[62938] 30 Jan 19:17:34 # 19  redisql-server                      
0x000000010001cf8e aeMain + 62
[62938] 30 Jan 19:17:34 # 20  redisql-server                      
0x0000000100030795 main + 197
[62938] 30 Jan 19:17:34 # 21  redisql-server                      
0x0000000100000e94 start + 52
[62938] 30 Jan 19:17:34 # 22  ???                                 
0x0000000000000002 0x0 + 2

Original issue reported on code.google.com by DamonDan...@gmail.com on 31 Jan 2011 at 3:31

GoogleCodeExporter commented 9 years ago

Damon reported this as fixed

He did say he noticed that there was something different between OSX and 
Ubuntu, and I think the byte alignment for global variables may be different 
depending on OS and compiler, so I have to make sure all global variables line 
up to 8 byte margins.

The thing that sucks about this type of bug, is I can not reproduce bugs that 
happen on hardware I dont have. I can use VMs, but these bugs are very 
low-level and this approach is not 100%.

Original comment by jaksprats on 1 Feb 2011 at 6:15