-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Hitting "File exists" on 2.6.0 #4546
Comments
The latest scapy version (2.6.0) fails to properly evaulate if .config directory already exists [0]. Pin the version to 2.5.0 for the time being as that one was working without any issues. [0] secdev/scapy#4546 Signed-off-by: Ales Musil <amusil@redhat.com>
The latest scapy version (2.6.0) fails to properly evaulate if .config directory already exists [0]. Pin the version to 2.5.0 for the time being as that one was working without any issues. [0] secdev/scapy#4546 Signed-off-by: Ales Musil <amusil@redhat.com> Signed-off-by: 0-day Robot <robot@bytheb.org>
The latest scapy version (2.6.0) fails to properly evaulate if .config directory already exists [0]. Pin the version to 2.5.0 for the time being as that one was working without any issues. [0] secdev/scapy#4546 Signed-off-by: Ales Musil <amusil@redhat.com> Signed-off-by: Mark Michelson <mmichels@redhat.com>
The latest scapy version (2.6.0) fails to properly evaulate if .config directory already exists [0]. Pin the version to 2.5.0 for the time being as that one was working without any issues. [0] secdev/scapy#4546 Signed-off-by: Ales Musil <amusil@redhat.com> Signed-off-by: Mark Michelson <mmichels@redhat.com>
The latest scapy version (2.6.0) fails to properly evaulate if .config directory already exists [0]. Pin the version to 2.5.0 for the time being as that one was working without any issues. [0] secdev/scapy#4546 Signed-off-by: Ales Musil <amusil@redhat.com> Signed-off-by: Mark Michelson <mmichels@redhat.com>
The latest scapy version (2.6.0) fails to properly evaulate if .config directory already exists [0]. Pin the version to 2.5.0 for the time being as that one was working without any issues. [0] secdev/scapy#4546 Signed-off-by: Ales Musil <amusil@redhat.com> Signed-off-by: Mark Michelson <mmichels@redhat.com>
The latest scapy version (2.6.0) fails to properly evaulate if .config directory already exists [0]. Pin the version to 2.5.0 for the time being as that one was working without any issues. [0] secdev/scapy#4546 Signed-off-by: Ales Musil <amusil@redhat.com> Signed-off-by: Mark Michelson <mmichels@redhat.com>
The latest scapy version (2.6.0) fails to properly evaulate if .config directory already exists [0]. Pin the version to 2.5.0 for the time being as that one was working without any issues. [0] secdev/scapy#4546 Signed-off-by: Ales Musil <amusil@redhat.com> Signed-off-by: Mark Michelson <mmichels@redhat.com>
I see a similar Error with the cache directory:
|
Sorry could you elaborate on why you are saying this? The code you mentioned in your stack trace seemed pretty clear to me, but I could be missing something: Lines 71 to 76 in 79974f2
Maybe I'm missing something. What are the permissions of this folder on your machine? |
I could not reproduce the issue either. |
I didn't check the code, but the issue is clearly happening. It might be a race then, which for some reason didn't happen with previous version. |
Another thing to check: it's a folder, right? |
When it happened it was a regular directory, I didn't check the permission, but it's only created by scapy so I would expect that it is |
Could you share more information to help us reproduce the issue ? For example, a docker image will be great, or your could isolate the problematic function an execute is outside of Scapy with different folders. |
I also see the issue in our CI. We run multiple processes that analyze pcap files in parallel. This might be race condition because |
It is definitely a race condition, I was able to reproduce it after several tries with the following script in
|
Thanks for the tests. #4558 should fix the issue. |
Brief description
Scapy doesn't check if the
.config
directory already exists.Scapy version
2.6.0
Python version
3.12
Operating system
Linux 6.10.6
Additional environment information
No response
How to reproduce
Just importing
from scapy.all import *
is enough.Actual result
No response
Expected result
No response
Related resources
No response
The text was updated successfully, but these errors were encountered: