arpit7275 / redis

Automatically exported from code.google.com/p/redis
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

zset "check for memory leaks" test fails on Mac OS X 10.6.7 #625

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What version of Redis you are using, in what kind of Operating System?

Redis version 2.2.12, Mac OS 10.6.7 (10J869)

What is the problem you are experiencing?

Running `make test` results in "868 tests, 867 passed, 1 failed"

What steps will reproduce the problem?

`make`, then `make test`

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

cd src && make all
MAKE hiredis
cd ../deps/hiredis && make static ARCH=""
cc -c -std=c99 -pedantic -O3 -fPIC -Wall -W -Wwrite-strings   -arch i386 -arch 
x86_64 -g -ggdb  net.c
cc -c -std=c99 -pedantic -O3 -fPIC -Wall -W -Wwrite-strings   -arch i386 -arch 
x86_64 -g -ggdb  hiredis.c
cc -c -std=c99 -pedantic -O3 -fPIC -Wall -W -Wwrite-strings   -arch i386 -arch 
x86_64 -g -ggdb  sds.c
cc -c -std=c99 -pedantic -O3 -fPIC -Wall -W -Wwrite-strings   -arch i386 -arch 
x86_64 -g -ggdb  async.c
libtool -static -o libhiredis.a - net.o hiredis.o sds.o async.o
MAKE linenoise
cd ../deps/linenoise && make ARCH=""
cc  -c -Wall -W -Os -g linenoise.c
cc  -c -Wall -W -Os -g example.c
cc  -Wall -W -Os -g -o linenoise_example linenoise.o example.o
    CC ae.o
    CC anet.o
    CC redis-benchmark.o
    CC sds.o
    CC adlist.o
    CC zmalloc.o
MAKE hiredis
cd ../deps/hiredis && make static ARCH=""
make[2]: Nothing to be done for `static'.
    LINK redis-benchmark
    CC redis-cli.o
    CC release.o
    LINK redis-cli
    CC redis-check-dump.o
    CC lzf_c.o
    CC lzf_d.o
    LINK redis-check-dump
    CC redis-check-aof.o
    LINK redis-check-aof
    CC dict.o
    CC redis.o
    CC pqsort.o
    CC zipmap.o
    CC sha1.o
    CC ziplist.o
    CC networking.o
    CC util.o
    CC object.o
    CC db.o
    CC replication.o
    CC rdb.o
    CC t_string.o
    CC t_list.o
    CC t_set.o
    CC t_zset.o
    CC t_hash.o
    CC config.o
    CC aof.o
    CC vm.o
    CC pubsub.o
    CC multi.o
    CC debug.o
    CC sort.o
    CC intset.o
    CC syncio.o
    CC slowlog.o
    LINK redis-server

Hint: To run 'make test' is a good idea ;)

bkimball:~/src/redis-2.2.12 (1.8.7@dev)  
$ make test
cd src && make test
(cd ..; tclsh8.5 tests/test_helper.tcl --tags "" --file "")
Testing Redis version 2.2.12 (00000000)
..............BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
BBBBBBBBGETRANGE against 
integer-encodedBB.LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLRPOP
LPUSH with linkedlist source and existing target 
linkedLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL.LLL.SSSSSSSSSSSSSINTERSTO
RE with two sets, after a DEBUG RELOAD - 
hashtSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS.ZZZZZZZZZZZZZZZZZZZRANGEBYSCORE 
fuzzy test, 100 ranges in 1000 elements sorted 
seZZZZZZZZZZZZZZZZZZZZZZZZZ.HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH................
...SORT ALPHA against integer encoded 
stri.................................................................MASTER and 
SLAVE dataset should be identical after 
comp.......................................................BBBBBBBBBBBSET 10000 
numeric keys and access all them in reverse 
BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB.LLLLLBLPOP, 
BRPOP: multiple existing lists - 
linkedlisLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL
RANGE out of range indexes including the full 
lisLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL.LLL.SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSINTER
STORE against non existing keys should 
deleSSSSSSSSSSSSSSS.ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ.HHHHHHHHHHHHHHHH
HHHHHHHHHHHIs a zipmap encoded Hash 
promotedHHHHHHHHH...............................................................
EXEC fail on WATCHed key modified (1 key of 1 wa..............
868 tests, 867 passed, 1 failed

Failures:

tests/unit/type/zset.tcl (leaks):
- Check for memory leaks (pid 48986): Expected '*0 leaks*' to equal or match 
'leaks Report Version:  2.0
Process:         redis-server [48986]
Path:            /Users/bkimball/src/redis-2.2.12/src/redis-server
Load Address:    0x100000000
Identifier:      redis-server
Version:         ??? (???)
Code Type:       X86-64 (Native)
Parent Process:  tclsh8.5 [48195]

Date/Time:       2011-08-05 11:09:40.334 -0500
OS Version:      Mac OS X 10.6.7 (10J869)
Report Version:  6

Process 48986: 10720 nodes malloced for 1075 KB
Process 48986: 224 leaks for 11920 total leaked bytes.
Leak: 0x101010d00  size=96  zone: DefaultMallocZone_0x100065000 
    0x00105070 0x00000001 0x8c696205 0x3fe4b102     pP.......bi....?
    0x00131890 0x00000001 0x00135560 0x00000001     ........`U......
    0x00000001 0x00000000 0x00135860 0x00000001     ........`X......
    0x00000004 0x00000001 0x00135860 0x00000001     ........`X......
    0x00000004 0x00000001 0x001363e0 0x00000001     .........c......
    0x0000003a 0x00000001 0x01013e00 0x00000001     :........>......
Leak: 0x101015390  size=96  zone: DefaultMallocZone_0x100065000 
    0x00103f80 0x00000001 0x9364906b 0x3fe24835     .?......k.d.5H.?
    0x001331e0 0x00000001 0x00131450 0x00000001     .1......P.......
    0x00000001 0x00000001 0x001359a0 0x00000001     .........Y......
    0x00000003 0x00000001 0x01011060 0x00000001     ........`.......
    0x0000001a 0x00000001 0x01010d00 0x00000001     ................
    0x00000030 0x00000000 0x01000fa9 0x00060001     0...............
[lots more "Leaks" truncated]
Leak: 0x1010156c0  size=48  zone: DefaultMallocZone_0x100065000 
    0x00103ee0 0x00000001 0xaa79db59 0x3fecedac     .>......Y.y....?
    0x00133690 0x00000001 0x01014a40 0x00000001     .6......@J......
    0x00000001 0x00000001 0x001326f0 0x00000001     .........&......
Leak: 0x1010156f0  size=48  zone: DefaultMallocZone_0x100065000 
    0x00103ef0 0x00000001 0xad621287 0x3fe10943     .>........b.C..?
    0x01011650 0x00000001 0x00135b90 0x00000001     P........[......
    0x00000001 0x00000001 0x00130620 0x00000001     ........ .......'
make[1]: *** [test] Error 1
make: *** [test] Error 2

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!

No crash.

Please provide any additional information below.

Thanks!

Original issue reported on code.google.com by b...@benkimball.com on 5 Aug 2011 at 4:19

GoogleCodeExporter commented 8 years ago
Hi, thanks for reporting. Please can you tell us if this is easy to reproduce 
or only happened one time?

Leaks is not completely consistent apparently, from time to time it may report 
false positives.

Cheers,
Salvatore

Original comment by anti...@gmail.com on 14 Sep 2011 at 3:57