gearman-go icon indicating copy to clipboard operation
gearman-go copied to clipboard

invalid magic

Open mattn opened this issue 10 years ago • 6 comments

I'm running gearmand on windows. When using example/py/worker.py, it works fine. But using example/worker/worker, it seems that gearman-go send invalid magic to server. Below is a log output of gearmand.

2015/03/05 19:19:42 util.go:218: [0;36m[debug] magic not match 0x32353533[0m
2015/03/05 19:19:42 session.go:59: [0;36m[debug] invalid magic sessionId 2 [0m

Since py/worker.py is working, I'm thinking this is problem of gearman-go.

mattn avatar Mar 05 '15 10:03 mattn

Cause I don't have a windows environment to run a test-case, could you please show me your environment's details? And also it would be great if you can run test-cases in your env and send the result to me.

By the way, how about util.go & session.go, could you show me codes in those files? Because, no other people tell me the same problem occurred before, I've no idea about what reasons could trigger this issue.

mikespook avatar Mar 06 '15 01:03 mikespook

This problem occured from 2014/1 on my environment (Windows7 32bit).

https://github.com/ngaut/gearmand/issues/7

I don't have any test code. I run client/worker.py in your repository

https://github.com/mikespook/gearman-go/tree/master/example/client https://github.com/mikespook/gearman-go/tree/master/example/py

mattn avatar Mar 06 '15 01:03 mattn

Does the string "2553" have any special meaning in your application?

I read the source code of gearmand. It may a byte alignment problem. Have you tried the gearmand(C).

mikespook avatar Mar 06 '15 02:03 mikespook

Unfortunately, I don't have 32bit linux OS, and gearmand(C) doesn't work on windows.

Does the string "2553" have any special meaning in your application?

Sorry, I don't write any code. I just run example.

mattn avatar Mar 06 '15 02:03 mattn

I'm guessing this will occur on 32bit OS.

mattn avatar Mar 06 '15 02:03 mattn

I built a 32bit testing environment in VBox: Linux i386 3.2.0-4-486 #1 Debian 3.2.65-1+deb7u2 i686 GNU/Linux

However, both python client and golang client are worked fine. screenshot - 240315 - 12 35 53

mikespook avatar Mar 24 '15 04:03 mikespook