-
Notifications
You must be signed in to change notification settings - Fork 56
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
GNL multi-fd issue #155
Labels
Comments
Hello @Sahbetdin |
Hello Jean-Michel! Attached you can find my GNL project. The problem with checker is as follows.In main I open several files each having its own fd.Then I read files and printf them in main. At one moment one of the files ends.In lines 136 I check if sth left in line of given fd.It returns 0 if nothing left.Then in 138 I free up the whole structure (fortunately, peers pointed to that mistake).This calls function which is located at line 96.What it does is that it cleans all the linked list though there is sth left in other descriptors. The structure saves fd as int and all previously read lines.Hope this helps. Let me know if my explanations were vague. Regards,Mansur (btrifle). 15.12.2019, 16:04, "Jean-Michel Gigault" <[email protected]>:Hello @Sahbetdinplease provide me with the source code of your GNLthat would help me reproduce the issue and improve the checker—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or unsubscribe.
|
Hello @Sahbetdin |
@JgigaultSorry for thattry this link https://yadi.sk/d/rExw-lnIRNDx8w pleaseor one of my last pusheshttps://github.com/Sahbetdin/GNL/commit/18b93479c5449e43f125b7d4fb0935f3e4105744 Please let me know if you could reach the link. Regards,Mansur /btrifle/ 25.12.2019, 17:09, "Jean-Michel Gigault" <[email protected]>:Hello @Sahbetdin
Attachments seem to not work with github notification. I understand the puropose of your issue but it would help me if you find a way to send me your code source :-)
—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or unsubscribe.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello!
I had following malfunction with my GNL project.
The project was realised with help of linked lists.
Suppose that in main we open two files havinf fd1 and fd2.
Then we get a line from fd1 with help of our function
get_next_line
.Then we get another line from fd2.
As a last step we read fd1 till it ends.
I stored remain parts of each file in linked list. For to fd's my linked list had two elements.
The problem with my gnl was that when one file ends up, I freed up all the structure. Instead of that, I should had freed only the given list with fd1.
Moulinette doesn't check that obviously. And the checker does it neither.
But one of peers paid attention to that issue.
Could you take a look into that and make checker check that?
Namely, when one file finishes, is it still possible to read a line from the other file.
Regards,
Mansur /btrifle/
The text was updated successfully, but these errors were encountered: