-
Notifications
You must be signed in to change notification settings - Fork 2.3k
runtime error: slice bounds out of range in packets.go #36
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
Comments
Which MySQL server version are you using? |
mysql Ver 14.14 Distrib 5.5.29, for debian-linux-gnu (x86_64) using readline 6.2 |
Can you reproduce the error? If yes, can you please add |
Sorry, place it before line 133 please. Otherwise it will panic before the line is reached. |
|
It only happens with multiple concurrent connections. Before it couldn't handle more than one, but now it handled up to 5 before it panicked. The previous output was from
|
Okay... this time |
Or even better: |
|
Huh? This trace says it panicked on a comment. |
Heh. Sorry, still new to Go. I used "go build", thought that would recompile. Here's the new output (it's repeating because of the concurrent requests, not sure where one ends and another begins):
|
Okay I found the reason. Delete the current source and run But I bet the result doesn't make you happy 😕 |
Now I get
An bug in the database/sql package? |
this is the reason for the panic -> One other thing: if rows.Next() {
// whatever
} else {
// catch error with rows.Err()
}
rows.Close() // <- don't forget this if you are not iterating over ALL results |
Thanks for the help! |
No panics anymore? |
Now I'm getting panics from the http server, but everything seems great with SQL. |
Just comment on this issue if there are further problems |
Trying to ApacheBench test a basic page created with Go, and I get this error:
Here's my code:
The text was updated successfully, but these errors were encountered: