-
Notifications
You must be signed in to change notification settings - Fork 5
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
qstats crashes with no input + Ctrl-D #7
Comments
That's interesting!! I tried it and got:
|
I'll try it on a Linux box now |
Haha I got |
Oh I’m on Debian testing x86_64 with glibc 2.24 |
Nothing seems to happen on my freeBSD macine when qstats is started without any arguments or file. |
@jungle-boogie When you start up qstats like that, it interactively takes input (if it doesn't, please let me know) |
@tonyfischetti, Doing that works and I don't get a crash:
But without any input, I do see the error:
|
@jungle-boogie Ok, cool! It's supposed to do the interactive thing :) |
I can't replicate this :( |
Changed title to clarify the steps to reproduce: no input followed by Ctrl-D (see original message). |
Haha no I mean, I can't reproduce the crash and backtrace when I do that. On all my systems, I either get
Or
No unhandled crash or backtrace |
Found out the Error allocating memory issue. Over in infuncs.c we have:
If there's no input, I'm guessing on @merwok's system, a unique pointer is returned, and somewhere along the line qstats tries writing to it, causing a memory error. The Input too small message happens too far down, after the data_array has already been accessed several times. I'm guessing a fix would just be to exit early if size is 0. |
Also note that my compiler warns about a handful of unused variables. Looking at these and the problem in the previous message may fix my crash! |
Cool! I'll get on this! |
The text was updated successfully, but these errors were encountered: