-
Notifications
You must be signed in to change notification settings - Fork 142
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
memory leak using rows.next() #166
Comments
I need a reproducible program to investigate this. That also includes all required environment, like database and db driver. Alex |
Hi Alex, Thanks for the response, I am happy to share my dev system to you, but it might involve some coordination on specifics. I have emailed you and looking forward to hearing back. |
I am not sure I will be willing to fiddle with other people systems. But before we get to this point, is it possible for you to provide the smallest but complete program that reproduces your bug? I should be able to build your program. Also, please, run the program on your system, and provide your program output that you see. Thank you. Alex |
Yes, please see a small example here: https://f002.backblazeb2.com/file/shpublic/alex.example.go Output of the program as it crashes:
If you need a system with everything installed on it, I think I can get a VPS and install a sample DB and then provide you access if that helps. Thank you :) |
Thank you. But this program https://play.golang.org/p/qnGNfevTZZz has bugs. For example, on line 83 you check if sql.Open returns error, but then you proceed with your program as if nothing happened. On line 90 you call db.Ping while db variable is not initialised. And so on and on. And your program is too long, while I asked for a smallest program. I don't have time to debug your buggy programs. Alex |
Thanks for looking into this Alex, and I have rewritten the program here: https://play.golang.org/p/8qDCDCV8S5h The number of vars I can scanning makes the program look big - but otherwise it is a simple program. I've tried my best to remove any bugs and have asked for review from another person before I posted this link. It runs a few loops and then it exits with the following error.
|
Wanted to share a few things with the hopes that someone may be able to identify some clues to the problem.
|
I am connecting to a filemaker database using ODBC. I am closing all the connections and the rows but I randomly get this error and my program crashes. I am accessing a table and trying to extract all the data from it. I have created a loop to keep reading the table over and over again and it crashes randomly at different iterations of row.Next().
I'm running this on a Windows server 2019, golang version 1.17.2. The line 204 that the error originates is
for rows.Next() {
I would be grateful for any recommendations on how I can solve this.
The text was updated successfully, but these errors were encountered: