Wireshark-bugs: [Wireshark-bugs] [Bug 2790] Wireshark receives SIGSEGV if no capture interface i

Date: Mon, 11 Aug 2008 20:31:30 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2790





--- Comment #4 from Alexey Neyman <avn@xxxxxxxxxxxxxxx>  2008-08-11 20:31:28 PDT ---
I do have the ~/.wireshark/preferences file (I guess that's what you're talking
about). However, in that file I don't have a line with "capture.device" option.
The only options in the "capture" section are as follows:

<<<<<<<<<<
# Capture in promiscuous mode?
# TRUE or FALSE (case-insensitive).
capture.prom_mode: TRUE

# Update packet list in real time during capture?
# TRUE or FALSE (case-insensitive).
capture.real_time_update: TRUE

# Scroll packet list during capture?
# TRUE or FALSE (case-insensitive).
capture.auto_scroll: TRUE

# Show capture info dialog while capturing?
# TRUE or FALSE (case-insensitive).
capture.show_info: FALSE
<<<<<<<<<<<<

I did some further research:

1. If I delete the ~/.wireshark directory completely, the preferences file is
not recreated until I go to Edit->Preferences and hit Apply/OK. So you could
run Wireshark and not have a preferences file at all.

2. Even if I hit Apply/OK, the resulting preferences file does not contain the
"capture.device" line. Looking at the code in epan/prefs.c, it seems that this
line is only output if the default interface was set in
Edit->Preferences->Capture.

So, there are two valid scenarios where Wireshark could run without having the
default value for capture device. I think that proves this patch :)


-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.