Version: 2.16 (using KDE 4.6.4) OS: Linux When you try to create a ZIP archive from directory, containing recursive symlinks, your machine runs out of memory. Following symlinks by default is really bad behavior Reproducible: Didn't try Steps to Reproduce: Create recursive directory structure using symlinks, then try to create a ZIP archive of it using Ark (not sure for other types of archive) Enjoy you machine runs out of memory :) Actual Results: In few minutes your machine will run out of memory, if you won't be fast enough to kill zip process. Expected Results: Ark should not follow symlinks by default. This should be an option.
Oh, I've forget to check form: yes, it is reproducible every time.
Still reproducible with commit be0f481efff6d27394d11c85f40c3730dd4bc94f.
Hi, sorry for the delay. I'm not sure about how to create a "recursive directory structure" using symlinks. Can you be a little more specific? Otherwise I don't know how to reproduce the issue.
(In reply to Elvis Angelaccio from comment #3) > Hi, sorry for the delay. > I'm not sure about how to create a "recursive directory structure" using > symlinks. Can you be a little more specific? Otherwise I don't know how to > reproduce the issue. It's like you have a directory "A" that contains "B" , which is a symlink to "A", something like that. But that was log time ago, can't reproduce it now.
(In reply to network723 from comment #4) > (In reply to Elvis Angelaccio from comment #3) > > Hi, sorry for the delay. > > I'm not sure about how to create a "recursive directory structure" using > > symlinks. Can you be a little more specific? Otherwise I don't know how to > > reproduce the issue. > > It's like you have a directory "A" that contains "B" , which is a symlink to > "A", something like that. But that was log time ago, can't reproduce it now. Thanks for replying. So you have tried to reproduce it now and you couldn't? If yes, I'll close this bug.
(In reply to Elvis Angelaccio from comment #5) > (In reply to network723 from comment #4) > > (In reply to Elvis Angelaccio from comment #3) > > > Hi, sorry for the delay. > > > I'm not sure about how to create a "recursive directory structure" using > > > symlinks. Can you be a little more specific? Otherwise I don't know how to > > > reproduce the issue. > > > > It's like you have a directory "A" that contains "B" , which is a symlink to > > "A", something like that. But that was log time ago, can't reproduce it now. > Thanks for replying. > So you have tried to reproduce it now and you couldn't? > If yes, I'll close this bug. Wait, I actually managed to reproduce it again! I created folder "123", and a folder "234" inside of it. Then i put symlinks to "123" and "234" inside of "234" and a symlink to istelf into "123". Now, when I try to add "123" to a ZIP archive with a right-click menu in dolphin, it would start zip in backround that would take all ram if given enough time, but never finishes.
(In reply to network723 from comment #6) > (In reply to Elvis Angelaccio from comment #5) > > (In reply to network723 from comment #4) > > > (In reply to Elvis Angelaccio from comment #3) > > > > Hi, sorry for the delay. > > > > I'm not sure about how to create a "recursive directory structure" using > > > > symlinks. Can you be a little more specific? Otherwise I don't know how to > > > > reproduce the issue. > > > > > > It's like you have a directory "A" that contains "B" , which is a symlink to > > > "A", something like that. But that was log time ago, can't reproduce it now. > > Thanks for replying. > > So you have tried to reproduce it now and you couldn't? > > If yes, I'll close this bug. > > Wait, I actually managed to reproduce it again! > I created folder "123", and a folder "234" inside of it. Then i put symlinks > to "123" and "234" inside of "234" and a symlink to istelf into "123". Now, > when I try to add "123" to a ZIP archive with a right-click menu in dolphin, > it would start zip in backround that would take all ram if given enough > time, but never finishes. Confirming. Thanks for reporting and investigating.
I believe this is now resolved. I've just tested with the supplied instructions and the symlinks are not followed by default. Can you please test and confirm if this is now resolved, thank you. I've set this bug to NEEDSINFO. When you reply, please change the bug back to REPORTED so we know it's ready for investigation or RESOLVED/WORKSFORME if the issue is now resolved.
(In reply to Justin Zobel from comment #8) > I believe this is now resolved. I've just tested with the supplied > instructions and the symlinks are not followed by default. I confirm, it no longer runs out of memory with Ark 20.04.2 / KF 5.71 / Qt 5.12.7
Note that this bug probably depends on the backend. These days we use libzip by default, while at the time we were probably using info-zip as default. So the bug might still not be fixed.