gosexy / redis

Redis client for Go that maps the full redis command list into equivalent Go functions.
MIT License
167 stars 44 forks source link

malloc error for object 0x813800: double free #4

Closed slene closed 11 years ago

slene commented 11 years ago

go1.1 osx 10.8.3

main(86788,0xb4619000) malloc: * error for object 0x813800: double free * set a breakpoint in malloc_error_break to debug SIGABRT: abort PC=0x7fff944d0212 signal arrived during cgo execution

menteslibres.net/gosexy/redis._Cfunc_redisCommandArgv(0x507960, 0x4, 0xc200354d00, 0xc200354d20, 0x1d6, ...) menteslibres.net/gosexy/redis/_obj/_cgo_defun.c:97 +0x2f menteslibres.net/gosexy/redis.(_Client).command(0xc2000ae380, 0x19af20, 0xc2002c19a8, 0x12140ce0, 0x4, ...) menteslibres.net/gosexy/redis/_obj/_cgo_gotypes.go:1036 +0x37c menteslibres.net/gosexy/redis.(_Client).SetEx(0xc2000ae380, 0xc200f13ed0, 0x20, 0xe10, 0x19f720, ...) menteslibres.net/gosexy/redis/_obj/_cgo_gotypes.go:3001 +0x23b main.proxyServe(0xc2000afc60, 0xc200d5a180, 0xc200f18630) /project/works/dnsproxy/src/main.go:121 +0x49a

...

rax 0x0 rbx 0x6 rcx 0xb4618af8 rdx 0x0 rdi 0x11b03 rsi 0x6 rbp 0xb4618b20 rsp 0xb4618af8 r8 0x7fff7d6ba278 r9 0xfffffff0 r10 0x20000000 r11 0x206 r12 0x409000 r13 0x813800 r14 0xb4619000 r15 0x0 rip 0x7fff944d0212 rflags 0x206 cs 0x7 fs 0x0 gs 0x0

xiam commented 11 years ago

Hi,

Do you have testing code for reproducing this issue?

$ go version
go version go1.1 darwin/amd64
$ go test
PASS
ok      menteslibres.net/gosexy/redis   0.180s
$ uname -a
Darwin Minnie.local 11.4.2 Darwin Kernel Version 11.4.2: Thu Aug 23 16:25:48 PDT 2012; root:xnu-1699.32.7~1/RELEASE_X86_64 x86_64
xiam commented 11 years ago

Please re-open if you're experiencing this issue on the current master branch.