Ethereal-dev: Re: [Ethereal-dev] Strange problem with 17281 build - Problem found - patch incl

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

From: "Michael J. Lynch" <mlynch@xxxxxxxx>
Date: Tue, 14 Feb 2006 07:36:40 -0600
Michael J. Lynch wrote:
I just finished building and installing from SVN 17281 and have a
weird problem I was hoping someone could shed some light on.

After the build and install, I type "ethereal" at a command prompt
and nothing happens.  Top shows the process running and taking all of my
processor.

If I run ethereal under gdb it seems to work fine.

If I run "/usr/local/bin/ethereal", it seems to work fine.

If I do "which ethereal", I get "/usr/local/bin/ethereal".

Any ideas?





The problem was the pointer to the path environment string was not being
incremented over the path component.  A *svn diff* generated patch that
corrects the problem follows:


Index: epan/filesystem.c
===================================================================
--- epan/filesystem.c   (revision 17281)
+++ epan/filesystem.c   (working copy)
@@ -351,6 +351,7 @@
                                 */
                                break;
                        }
+                       path_start += path_component_len;
                        if (*path_start == ':')
                                path_start++;
                        g_free(path);



--
Michael J. Lynch

What if the hokey pokey IS what it's all about -- author unknown