-
Notifications
You must be signed in to change notification settings - Fork 567
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
free(): invalid pointer with --ip=dhcp #3662
Labels
networking
Issues related to networking features (--net=, etc)
Comments
@netblue30 I have a bit of a hard time understanding this: Lines 1050 to 1057 in f373fe1
|
|
netblue30
pushed a commit
that referenced
this issue
Oct 13, 2020
The profile free code is 6 years old, the original intent was long lost. We put it in to keep tools like valgrind quiet, but on the way valgind got broken. I commented it out for now, it doesn't make sense in this moment since the sandbox is already closed. |
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug and expected behavior
When running Firejail with
--ip=dhcp
, it dumps core after the jailed application exits normally (here/usr/bin/true
is used as an program that exits immediately):The core dump is caused by line 3088 of
firejail/main.c
:Seems like we're trying to free a profile line that was already freed:
firejail/src/firejail/main.c
Lines 3083 to 3093 in 7fb7e42
Oddly enough, I don't have the same crash with
--ip6=dhcp
(i.e. use ARP scanning to determine the IPv4 address, but usedhcpcd
for IPv6).According to
git bisect
, the commit that introduced the crash is 81b2c7a.Reproduce
Steps to reproduce the behavior:
firejail
with--ip=dhcp
.Environment
Linux 5.8.13-arch1-1 #1 SMP PREEMPT Thu, 01 Oct 2020 20:40:35 +0000 x86_64 GNU/Linux
9bf6e0ead189b924e5fca099b35d88be091bd009
The text was updated successfully, but these errors were encountered: