Ethereal-dev: Re: ASN1.DLL linked against GTK2 forces crash. was: Re: [Ethereal-dev] New pre-

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Ulf Lamping <ulf.lamping@xxxxxx>
Date: Thu, 26 Aug 2004 20:27:46 +0200
Lars Roland wrote:

frogzoo@xxxxxxxxxxxxxx schrieb:

I was wondering how it could be that GTK 1.3 crashes with GTK-Wimp. GTK-Wimp is an extension for GTK2. GTK1 doesn't even load it!! So I installed GTK1 version with GTK-Wimp and at least this time, I can reproduce the crash.
The debugger shows that it crashes when loading asn1.dll.
I am not surprised that we finally have a conflict with it as it is linked against GTK2!

Well, as you correctly noticed, it's not a good idea to have GTK dependencies in plugins at all, exactly for the reasons you described.


The crash already happens in libglib-2.0-0.dll. I believe that most people reporting crashes with ethereal crashing in module libglib-2.0-0.dll have this conflict.

There are a lot of workarounds, but there is only one solution:
Remove GTK depedency from the asn1 plugin.

Yes!


Short term workaround:
Remove asn1.dll in the plugins directory.
When you start Ethereal after that, you will probably get a DOS box with some warnings about preferences of the asn1 dissector. Just go to Edit->Prefences and click on the save button and the DOS-box won't appear the next time.

Workaround for next release:
Installer shouldn't install asn1.dll with GTK1 version of ethereal.

And even this is only a workaround.


However, it shouldn't be possible to select GTK-Wimp together with GTK1. GTK1 doesn't use it.

I have this on my todo list for quite a while.


I will prepare patches for the nsis installer.

Yes please :-)

Regards, ULFL