Lachim / redis

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

Multi-valued HDEL that span both existent and non-existent keys seg falts redis #612

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What version of Redis you are using, in what kind of Operating System?
* unstable branch, taken ~ July 22, 2011. 

* git version: 80e87a461a7d2ee54430127bdb6ac014778c54c5

* mac 10.6.6

What is the problem you are experiencing?

seg fault

What steps will reproduce the problem?

redis-cli:

> HSET "a" 5 1
> HDEL "a" 5 6

Do you have an INFO output? Please past it here.

If it is a crash, can you please paste the stack trace that you can find in
the log file or on standard output? This is really useful for us!

[54175] 26 Jul 23:28:29 # 1   redis-server                        
0x000000010000321e dictRehash + 78
[54175] 26 Jul 23:28:29 # 2   ???                                 
0x0000000000000000 0x0 + 0
[54175] 26 Jul 23:28:29 # 3   redis-server                        
0x0000000100003550 dictGenericDelete + 48
[54175] 26 Jul 23:28:29 # 4   redis-server                        
0x000000010001ed6b hashTypeDelete + 43
[54175] 26 Jul 23:28:29 # 5   redis-server                        
0x000000010001ee8d hdelCommand + 141
[54175] 26 Jul 23:28:29 # 6   redis-server                        
0x0000000100005c5f call + 63
[54175] 26 Jul 23:28:29 # 7   redis-server                        
0x00000001000060cc processCommand + 908
[54175] 26 Jul 23:28:29 # 8   redis-server                        
0x000000010000ea4f processInputBuffer + 79
[54175] 26 Jul 23:28:29 # 9   redis-server                        
0x000000010000eb40 readQueryFromClient + 112
[54175] 26 Jul 23:28:29 # 10  redis-server                        
0x0000000100001946 aeProcessEvents + 406
[54175] 26 Jul 23:28:29 # 11  redis-server                        
0x0000000100001b4e aeMain + 62
[54175] 26 Jul 23:28:29 # 12  redis-server                        
0x0000000100007183 main + 259
[54175] 26 Jul 23:28:29 # 13  redis-server                        
0x0000000100000dc4 start + 52
Segmentation fault

Please provide any additional information below.

Original issue reported on code.google.com by sethc...@gmail.com on 27 Jul 2011 at 4:35

GoogleCodeExporter commented 8 years ago
prompty fixed by Pieter.  Awesomely fast, thanks.

fixed in git version:
2d7162bb1db39bbdd80e3d2c99899f6d9ac4b2d6

Original comment by sethc...@gmail.com on 27 Jul 2011 at 2:03

GoogleCodeExporter commented 8 years ago
The same patch was applied to the 2.4 branch.

Original comment by pcnoordh...@gmail.com on 27 Jul 2011 at 2:17