Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: Re: [Wireshark-dev] DND crash through all versions?

From: Jaap Keuter <jaap.keuter@xxxxxxxxx>
Date: Wed, 05 Sep 2012 00:05:04 +0200
On 09/04/2012 06:35 PM, Jaap Keuter wrote:
On 2012-09-04 16:52, Christopher Maynard wrote:
Jeff Morriss <jeff.morriss.ws@...> writes:

Jaap Keuter wrote:
> On 2012-09-04 08:32, Joerg Mayer wrote:
>> On Tue, Sep 04, 2012 at 08:18:28AM +0200, Jaap Keuter wrote:
>>> Ok, thanks for the response on the strstr() question. Still remain
>>> the big question: the DND crash! Am I the only one seeing this? Does
>>> the proposed patch elevate the problem on your platform?
[...]
> Does anyone else see this?

It works OK for me on Windoze (1.8.1, XP, 32-bit); here I dragged a PCAP
file onto the Wireshark icon on my desktop.

It works OK for me on Fedora Core 10 (SVN, GTK-2.14.7-9, 64-bit); here I
dragged a PCAP file into a running (from the build directory) Wireshark
(Wireshark isn't installed so I have no icon for the executable).

After a distclean, it works for me on Windows XP SP3 32-bit, r44768
(as well as
Windows 7 64-bit -- forget which revision, but not quite r44768).

I had encountered this problem once upon a time though and filed bug
5987[1] for
it, which actually seemed to be a duplicate of bug 6457[2].

[1]: https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5987
[2]: https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6457


Hmm, it seems neither of those. So either it's related to the specific GTK
version (on KDE?), or the fact that I used Dolphin (the KDE File Mananager) as
source for the capture file DND.
The plot thickens... ;)

Thanks,
Jaap

Ok, some more details. Looking at Drag-and-Drop Protocol for the X Window System [1], I found this on dragging and dropping files[2].

It refers to the MIMEtype text/uri-list, which is defined, according to IANA[3], in RFC 2483. Even though its status is experimental it says:
"    The format of text/uri-list resources is:
...
    3) As for all text/* formats, lines are terminated with a CRLF pair.
"

This is not what I'm seeing. The last line is no longer CRLF terminated!
Who does that? The source? I've tries 3 file browser (Dolphin, Konqueror, File open dialog) with the same results. The X Server, or the target (Wireshark, through GTK+)? Do I need to pull out xscope?


[1] http://www.newplanetsoftware.com/xdnd/
[2] http://www.newplanetsoftware.com/xdnd/dragging_files.html
[3] http://www.iana.org/assignments/media-types/text/index.html
[4] http://tools.ietf.org/rfcmarkup?rfc=2483

Thanks,
Jaap