Ethereal-dev: Re: [Ethereal-dev] Compiling with -O3 crashes ethereal

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

From: "Thomas Reitelbach" <tr@xxxxxxxxxxxxxxxx>
Date: Sun, 28 Dec 2003 02:03:29 +0100 (CET)
> Biot Olivier wrote:
>> Hi all,
>>
>> I successfully compiled the current CVS snapshot of Ethereal with -O3.
>> It
>> runs faster than with -O2 (about 15-30% faster).
>>
>> I don't think the crash Thomas reported was due to -O3 compilation.
>>
>> Should anyone else like to compile Ethereal with -O3, then you have to
>> edit
>> all configure files (there are 3 of them), and replace O2 with O3. I
>> didn't
>> find any autotools info on this (but I didn't search either :).
> Isn't
> configure CFLAGS=-O3
>   enough?

i usually do a
export CFLAGS=-O3 -march=pentium3
export CFLAGS=-O3 -march=pentium3
before configuring and compiling a package. This way you don't have to
alter the configure scripts manually.

The crash is not limited to special packet types. Also it does not crash
while _capturing_ but it crashes when it comes to displaying the captured
packages.
So i can capture a whole stream (without real-time screen updates). And
when i then stop capturing ethereal crashes. the same happens when loading
and displaying a saved packet dump (it then crashes immediately without
really capturing any packet on the wire).

I doubt that this is really a ethereal bug, my mail was more intended to
be a "heads up".