Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

invalid magic #59

Open
mattn opened this issue Mar 5, 2015 · 6 comments
Open

invalid magic #59

mattn opened this issue Mar 5, 2015 · 6 comments
Assignees
Labels

Comments

@mattn
Copy link

mattn commented Mar 5, 2015

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.

@mikespook
Copy link
Owner

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.

@mattn
Copy link
Author

mattn commented Mar 6, 2015

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

ngaut/gearmand#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

@mikespook
Copy link
Owner

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).

@mattn
Copy link
Author

mattn commented Mar 6, 2015

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
Copy link
Author

mattn commented Mar 6, 2015

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

@mikespook mikespook self-assigned this Mar 6, 2015
@mikespook mikespook added the bug label Mar 6, 2015
@mikespook
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants