Opened 10 years ago
Closed 10 years ago
#46850 closed defect (fixed)
Wireshark 1.12.3 Segmentation fault
Reported by: | greg@… | Owned by: | ghosthound |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.3.3 |
Keywords: | Cc: | wustenfuchs@…, hsivank@…, woody.anderson@…, robin@…, jere@…, ewen-naos-nz (Ewen McNeill), Feuermurmel (Michael Schwarz), Schamschula (Marius Schamschula), dershow, breiter (Brian Reiter), yoav.nir@… | |
Port: | wireshark |
Description
Hello,
I am seeing an issue using the wireshark port from within Yosemite. I've attempted to upgrade to 1.12.3 and while I am able to get it to compile, I get a Segmentation fault: 11 when I try to execute it. I get the same issue trying to compile 1.12.1 with or without ports as that is the version I'd like to actually use.
I have attached the Crash Log to the ticket. Any assistance with this would be great.
Attachments (8)
Change History (38)
Changed 10 years ago by greg@…
Attachment: | wireshark-12.1.3.crash added |
---|
comment:2 Changed 10 years ago by wustenfuchs@…
Same issue.
Macbook 13” 5,1 / osx @10.10.2 / xcode @6.1.1 / macports @2.3.3
comment:3 Changed 10 years ago by larryv (Lawrence Velázquez)
Cc: | hsivank@… added |
---|---|
Owner: | changed from macports-tickets@… to opendarwin.org@… |
comment:4 Changed 10 years ago by meitarm+macports@…
I am having the same issue: after I upgraded my wireshark
to 1.12.3, trying to run it results in a Segmentation fault: 11
error, but unlike the original submitter I am on Mac OS X 10.9 Mavericks. I have also attached a crash log. Thanks for looking into this.
Changed 10 years ago by meitarm+macports@…
Attachment: | wireshark_2015-02-16-195709.crash added |
---|
Crash log for "Segmentation fault: 11" error after upgrading wireshark to 1.12.3 on Mac OS X 10.9 Mavericks
comment:5 Changed 10 years ago by ghosthound
Owner: | changed from opendarwin.org@… to ricci@… |
---|---|
Status: | new → assigned |
wireshark 1.12.3 works for me (on 10.10.2). What version did you upgrade from? Are other GTK2/GTK3 apps having similar problems (in particular ones that use libgobject, that's where the actual crash is)? You can also try removing "-DGDK_PIXBUF_DISABLE_DEPRECATED" from configure as per this FreeBSD bug: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195980#c45 - if that works please reply here and we can incorporate that.
comment:6 Changed 10 years ago by wustenfuchs@…
In my case, not an upgrade. Fresh install of everything (Yosemite, XCode, Macports, Wireshark). I will check your suggestions when I have an opportunity if others haven't done so already. Thanks.
comment:7 follow-up: 10 Changed 10 years ago by woody.anderson@…
After upgrade to 1.12.13 my system also segv's.
XCode Version 6.1.1 (6A2008a)
uname -a: Darwin calculus.local 13.4.0 Darwin Kernel Version 13.4.0: Sun Aug 17 19:50:11 PDT 2014; root:xnu-2422.115.4~1/RELEASE_X86_64 x86_64
previously installed version was: wireshark @1.10.7_1+adns+geoip+gnutls+ipv6+libgcrypt+libsmi+lua+rtp+ssl+x11
what file do i change to attempt the DGDK_PIXBUF_DISABLE_DEPRECATED related fix?
comment:10 Changed 10 years ago by ghosthound
Replying to woody.anderson@…:
After upgrade to 1.12.13 my system also segv's.
XCode Version 6.1.1 (6A2008a)
uname -a: Darwin calculus.local 13.4.0 Darwin Kernel Version 13.4.0: Sun Aug 17 19:50:11 PDT 2014; root:xnu-2422.115.4~1/RELEASE_X86_64 x86_64
previously installed version was: wireshark @1.10.7_1+adns+geoip+gnutls+ipv6+libgcrypt+libsmi+lua+rtp+ssl+x11
what file do i change to attempt the DGDK_PIXBUF_DISABLE_DEPRECATED related fix?
Run through the patch phase, then edit the configure script to remove the '-DGDK_PIXBUF_DISABLE_DEPRECATED', then continue on with building and installing.
comment:11 Changed 10 years ago by greg@…
I am not sure if I know the 'proper' way to do what is described, however I did:
port patch wireshark
Then located the patched wireshark (located in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_wireshark/wireshark/work/wireshark-1.12.3), modified the configure file and commented the line which has the compile option 'DGDK_PIXBUF_DISABLE_DEPRECATED'. Then I did the following:
./configure make install
It does compile properly and I no longer get the segmentation fault when I execute it. However the way I built it, it naturally gets built into build directories of MacPorts and doesn't get installed in the normal paths like a port. Not sure if this was the only way to test this, but removing those compile options worked both for my regular non-ports version of Wireshark I built from source and also seems to allow this compile to work.
A few issues I notice though are that the Icons are not correct (some are missing), fonts are wrong, and the Plus's don't show up when narrowing in on traffic (they are there, but don't show up on the screen). The program seems to be working otherwise. There may be a little more missing to be fully compatible with the Yosemite and the new XCode.
comment:12 Changed 10 years ago by jeanfrancois.bertrand@…
I have been having this issue too.
Isnt the sequence to manually patch a port like this:
port patch wireshark
followed by:
port edit wireshark
port clean wireshark
port build wireshark
Changed 10 years ago by ewen-naos-nz (Ewen McNeill)
Attachment: | configure-pixmap-fix.diff added |
---|
Patch to configure to comment out -DGDK_PIXBUF_DISABLE_DEPRECATED from CFLAGS
comment:15 Changed 10 years ago by ewen-naos-nz (Ewen McNeill)
Attached is configure-pixmap-fix.diff
, which is a trivial patch to implement the "don't add -DGDK_PIXBUF_DISABLE_DEPRECATED
to CPPFLAGS
" which was mentioned in the FreeBSD ticket. With that placed in opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/net/wireshark/files
, and this patchfiles
setting:
patchfiles patch-configure.diff \ configure-pixmap-fix.diff
in /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/net/wireshark/Portfile
, a rebuilt wireshark
package seems to run rather than segfaulting.
See https://trac.macports.org/wiki/howto/PatchLocal for hints on how to apply a local patch like this. Thanks to the person who found the FreeBSD bug report (fixed in Dec 2014), as it made it much easier.
Note that the relevant bit of configure
comes from configure.ac
, but if you also patch configure.ac
, then (a) you need automake @1.14.1_2 active (because it wants aclocal-1.14), and (b) that will result in running a bunch of autotools guff, which overwrites the other patch to the configure
script, which means it fails to identify the Kerberos library, and the build fails :-( So we don't patch configure.ac
. (That bit seems rather fragile, but I don't have time to untangle why it was done like that.)
Ewen
Changed 10 years ago by Schamschula (Marius Schamschula)
Attachment: | Portfile-wireshark.diff added |
---|
comment:17 Changed 10 years ago by Schamschula (Marius Schamschula)
Added patchfile to wireshark 1.12.4 Portfile. Also added sha256 hash.
comment:20 follow-up: 21 Changed 10 years ago by ewen-naos-nz (Ewen McNeill)
In case it helps, I've confirmed that building 1.12.4 with configure-pixmap-fix.diff and Portfile-wireshark.diff (attached to this ticket) results in a wireshark that starts up correctly, but the in-Macports one, built without the patch, crashes on startup.
ewen@ashram:~$ port installed wireshark The following ports are currently installed: wireshark @1.12.2_0+adns+geoip+gnutls+ipv6+libgcrypt+libsmi+lua+rtp+ssl+x11 wireshark @1.12.3_0+adns+geoip+gnutls+ipv6+libgcrypt+libsmi+lua+rtp+ssl+x11 wireshark @1.12.3_0+geoip+gnutls+ipv6+libgcrypt+libsmi+lua+rtp+ssl+x11 wireshark @1.12.4_0+geoip+gnutls+ipv6+libgcrypt+libsmi+lua+rtp+ssl+x11 (active) ewen@ashram:~$ wireshark Segmentation fault: 11 ewen@ashram:~$ port installed wireshark The following ports are currently installed: wireshark @1.12.2_0+adns+geoip+gnutls+ipv6+libgcrypt+libsmi+lua+rtp+ssl+x11 wireshark @1.12.3_0+adns+geoip+gnutls+ipv6+libgcrypt+libsmi+lua+rtp+ssl+x11 wireshark @1.12.3_0+geoip+gnutls+ipv6+libgcrypt+libsmi+lua+rtp+ssl+x11 wireshark @1.12.4_0+geoip+gnutls+ipv6+libgcrypt+libsmi+lua+rtp+ssl+x11 wireshark @1.12.4_1+geoip+gnutls+ipv6+libgcrypt+libsmi+lua+rtp+ssl+x11 (active) ewen@ashram:~$ wireshark ewen@ashram:~$
(In-Macports one first, built with the patch second.)
Maybe someone with MacPorts commit access can make this an official part of the MacPorts build? That seems to be the solution that FreeBSD adopted for their port.
Ewen
comment:21 Changed 10 years ago by breiter (Brian Reiter)
Replying to macports@…:
In case it helps, I've confirmed that building 1.12.4 with configure-pixmap-fix.diff and Portfile-wireshark.diff (attached to this ticket) results in a wireshark that starts up correctly, but the in-Macports one, built without the patch, crashes on startup.
ewen@ashram:~$ port installed wireshark The following ports are currently installed: wireshark @1.12.2_0+adns+geoip+gnutls+ipv6+libgcrypt+libsmi+lua+rtp+ssl+x11 wireshark @1.12.3_0+adns+geoip+gnutls+ipv6+libgcrypt+libsmi+lua+rtp+ssl+x11 wireshark @1.12.3_0+geoip+gnutls+ipv6+libgcrypt+libsmi+lua+rtp+ssl+x11 wireshark @1.12.4_0+geoip+gnutls+ipv6+libgcrypt+libsmi+lua+rtp+ssl+x11 (active) ewen@ashram:~$ wireshark Segmentation fault: 11 ewen@ashram:~$ port installed wireshark The following ports are currently installed: wireshark @1.12.2_0+adns+geoip+gnutls+ipv6+libgcrypt+libsmi+lua+rtp+ssl+x11 wireshark @1.12.3_0+adns+geoip+gnutls+ipv6+libgcrypt+libsmi+lua+rtp+ssl+x11 wireshark @1.12.3_0+geoip+gnutls+ipv6+libgcrypt+libsmi+lua+rtp+ssl+x11 wireshark @1.12.4_0+geoip+gnutls+ipv6+libgcrypt+libsmi+lua+rtp+ssl+x11 wireshark @1.12.4_1+geoip+gnutls+ipv6+libgcrypt+libsmi+lua+rtp+ssl+x11 (active) ewen@ashram:~$ wireshark ewen@ashram:~$(In-Macports one first, built with the patch second.)
Maybe someone with MacPorts commit access can make this an official part of the MacPorts build? That seems to be the solution that FreeBSD adopted for their port.
Ewen
This solution works for me as well building with gtk2+quartz.
$ sudo port install -s wireshark ---> Computing dependencies for wireshark ---> Fetching distfiles for wireshark ---> Verifying checksums for wireshark ---> Extracting wireshark ---> Applying patches to wireshark ---> Configuring wireshark ---> Building wireshark ---> Staging wireshark into destroot ---> Installing wireshark @1.12.4_1+geoip+gnutls+ipv6+libgcrypt+libsmi+lua+rtp+ssl+x11 ---> Deactivating wireshark @1.12.4_0+geoip+gnutls+ipv6+libgcrypt+libsmi+lua+rtp+ssl+x11 ---> Cleaning wireshark ---> Activating wireshark @1.12.4_1+geoip+gnutls+ipv6+libgcrypt+libsmi+lua+rtp+ssl+x11 ---> Cleaning wireshark ---> Updating database of binaries ---> Scanning binaries for linking errors ---> No broken files found. $ wireshark& [1] 48179 2015-03-12 23:16:12.357 wireshark[48179:3040457] *** WARNING: Method userSpaceScaleFactor in class NSView is deprecated on 10.7 and later. It should not be used in new applications. Use convertRectToBacking: instead.
comment:22 Changed 10 years ago by ghosthound
Do all of the icons, etc. appear correctly with this patch?
Changed 10 years ago by ewen-naos-nz (Ewen McNeill)
Attachment: | wireshark_1.12.4_1-with-patch.png added |
---|
Wireshark 1.12.4_1 screenshot (top section, with icons)
comment:23 follow-up: 24 Changed 10 years ago by ewen-naos-nz (Ewen McNeill)
I've not exhaustively gone through looking at all the icons, but certainly all the icons I'd expect in all the panels I've used seem to display as expected. Eg, wireshark_1.12.4_1-with-patch.png shows the main screen, with all the icons I'd expect.
At minimum it's better than without the patch, where it just segfaults on start showing no icons... :-)
Ewen
Changed 10 years ago by breiter (Brian Reiter)
Attachment: | wireshark+quartz+patch.png added |
---|
Wireshark 1.12.4_1 with patch applied
comment:24 Changed 10 years ago by breiter (Brian Reiter)
It is also working fine when built for Quartz rather than X11 in GTK2 as seen in screenshot wireshark+quartz+patch.png.
Changed 10 years ago by breiter (Brian Reiter)
Attachment: | wireshark-borken-icons-gtk3.png added |
---|
Icons missing with +gtk3 build option
Changed 10 years ago by breiter (Brian Reiter)
Attachment: | wireshark-gtk3+adwaita-icon-theme.png added |
---|
wireskark gtk3 + adwait-icon-theme
comment:27 Changed 10 years ago by breiter (Brian Reiter)
There are many icons missing in the +gtk3
build. broken icons gtk3
(wireshark:70244): Gtk-WARNING **: Error loading theme icon 'document-open' for stock: Icon 'document-open' not present in theme (wireshark:70244): Gtk-WARNING **: Error loading theme icon 'window-close' for stock: Icon 'window-close' not present in theme (wireshark:70244): Gtk-WARNING **: Error loading theme icon 'view-refresh' for stock: Icon 'view-refresh' not present in theme (wireshark:70244): Gtk-WARNING **: Error loading theme icon 'edit-find' for stock: Icon 'edit-find' not present in theme (wireshark:70244): Gtk-WARNING **: Error loading theme icon 'go-previous' for stock: (wireshark:70244): Gtk-WARNING **: Error loading theme icon 'go-next' for stock: (wireshark:70244): Gtk-WARNING **: Error loading theme icon 'go-jump' for stock: (wireshark:70244): Gtk-WARNING **: Error loading theme icon 'go-top' for stock: Icon 'go-top' not present in theme (wireshark:70244): Gtk-WARNING **: Error loading theme icon 'go-bottom' for stock: Icon 'go-bottom' not present in theme (wireshark:70244): Gtk-WARNING **: Error loading theme icon 'zoom-in' for stock: Icon 'zoom-in' not present in theme (wireshark:70244): Gtk-WARNING **: Error loading theme icon 'zoom-out' for stock: Icon 'zoom-out' not present in theme (wireshark:70244): Gtk-WARNING **: Error loading theme icon 'zoom-original' for stock: Icon 'zoom-original' not present in theme (wireshark:70244): Gtk-WARNING **: Error loading theme icon 'help-contents' for stock: Icon 'help-contents' not present in theme (wireshark:70244): Gtk-WARNING **: Error loading theme icon 'document-open' for stock: Icon 'document-open' not present in theme (wireshark:70244): Gtk-WARNING **: Error loading theme icon 'go-home' for stock: Icon 'go-home' not present in theme (wireshark:70244): Gtk-WARNING **: Error loading theme icon 'help-contents' for stock: Icon 'help-contents' not present in theme
This is fixed by adding adwaita-icon-theme port (wireshark +gkk3 +adwaita-icon-theme):
port install adwaita-icon-theme
.
comment:28 Changed 10 years ago by breiter (Brian Reiter)
For some reason some of the icons are colorless in the +gtk3 build, even with gnome-themes-standard
(which includes adwaita-icon-theme
installed.
comment:29 Changed 10 years ago by larryv (Lawrence Velázquez)
Cc: | yoav.nir@… added |
---|
comment:30 Changed 10 years ago by ghosthound
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
configure pixmap patch applied in r133911, thanks!
Crash Log