[ic] IC 4.8.2 Segmentation fault and core dumped

Joachim Leidinger interchange-users@interchange.redhat.com
Wed Oct 10 11:46:00 2001


Mike Heins wrote:
> > I've fetched IC 4.8.2 and after Installation, I get a "segmentation
> > fault (core dumped) and I'm missing the v/tlink source from
> > /path-to-IC-4.8.2/src! There are no source files of vlink and tlink.
> > Why?
> > IC 4.8.1 runs fine without any trouble. What is the cause? I use FreeBSD
> > 4.3!
> 
> I believe this is a bug in the distribution FreeBSD Perl, I believe.
> Why it manifests itself in 4.8.2 but not 4.8.1 I don't know -- probably
> the way the memory lines up.
> 
> In any case, if you rebuild Perl and put setproctitle=define I think
> it works fine....

Regarding to the mail from Pablo Martins F. Costa in
http://interchange.redhat.com/archive/interchange-users/2001/msg09422.html
, I've moving the part

----- snip bin/interchange ----
		if(defined $Global::Variable->{MV_DOLLAR_ZERO}) {
			$0 = $Global::Variable->{MV_DOLLAR_ZERO};
			$0 = "interchange --> $Global::VendRoot"
					if length($0) < 2;
		}
		else {
			$0 = "interchange";
		}
----- snip bin/interchange ----

into .../lib/Vend/Server.pm like

------ snipp Server.pm -----
use POSIX qw(setsid strftime);
use Vend::Util;
use Fcntl;
use Errno qw/:POSIX/;
use Config;
use Socket;
use Symbol;
use strict;

		if(defined $Global::Variable->{MV_DOLLAR_ZERO}) {
			$0 = $Global::Variable->{MV_DOLLAR_ZERO};
			$0 = "interchange --> $Global::VendRoot"
					if length($0) < 2;
		}
		else {
#jojo
			$0 = "interchange jojo";
		}
------ snipp Server.pm -----

I get

----- snip ---------
> bin/interchange -u
Low traffic settings.
"mode" is not defined in %Fcntl::EXPORT_TAGS at bin/interchange line
2717
Calling UI......UI is loaded...
Interchange V4.8.2
Configuring catalog fondation...Using default DBM database...done.
Interchange server started in UNIX mode(s) (process id 2198)
----- snip ---------

and

----- snip ---------
> ps 2198
  PID  TT  STAT      TIME COMMAND
 2198  ??  Ss     0:00.01 interchange jojo (perl)
----- snip ---------

Is that a solution? I've tested it with low, high and rpc without and

#perl -v
This is perl, version 5.005_03 built for i386-freebsd

and
#uname -a
FreeBSD BPA.Leidinger.net 4.3-RC FreeBSD 4.3-RC #2: Fri Apr  6 09:52:29
CEST 2001

Hope that helps!

ciao

Joachim


-- 
Hans-Joachim Leidinger | Dipl.-Phys.Ing. Entwicklung eCommerce
[Hans-Joachim.leidinger@bpanet.de]
Black Point Arts Internet Solutions GmbH
http://www.bpanet.de