Segmentation Fault (core dumped) on Solaris 10

Segmentation Fault (core dumped) on Solaris 10

am 08.01.2008 16:15:12 von mariakvelasco

Hello,

I am trying to run a perl script on a Solaris 10 machine, which is
suppose to display a dialog box and I keep getting a Segmentation
Fault (core dumped) error. I don't get this error message when I run
it on Windows or Linux. Does anyone have an idea on where I should
look for the root of the problem.

Any advice would be great.

Thanks!

Re: Segmentation Fault (core dumped) on Solaris 10

am 08.01.2008 16:25:14 von it_says_BALLS_on_your forehead

On Jan 8, 10:15=A0am, mariakvela...@gmail.com wrote:
> Hello,
>
> I am trying to run a perl script on a Solaris 10 machine, which is
> suppose to display a dialog box and I keep getting a Segmentation
> Fault (core dumped) error. =A0I don't get this error message when I run
> it on Windows or Linux. =A0Does anyone have an idea on where I should
> look for the root of the problem.
>
> Any advice would be great.

Post the script (if it's small), or a small example script which
demonstrates the problem. The output of perl -V could also help us
diagnose the problem.

Re: Segmentation Fault (core dumped) on Solaris 10

am 08.01.2008 17:30:54 von mariakvelasco

On Jan 8, 7:25=A0am, nolo contendere wrote:
> On Jan 8, 10:15=A0am, mariakvela...@gmail.com wrote:
>
> > Hello,
>
> > I am trying to run a perl script on a Solaris 10 machine, which is
> > suppose to display a dialog box and I keep getting a Segmentation
> > Fault (core dumped) error. =A0I don't get this error message when I run
> > it on Windows or Linux. =A0Does anyone have an idea on where I should
> > look for the root of the problem.
>
> > Any advice would be great.
>
> Post the script (if it's small), or a small example script which
> demonstrates the problem. The output of perl -V could also help us
> diagnose the problem.


This is what perl -V returns

Summary of my perl5 (revision 5.0 version 6 subversion 1)
configuration:
Platform:
osname=3Dsolaris, osvers=3D2.7, archname=3Dsun4-solaris
uname=3D'sunos dewitt.vnet.net 5.7 generic_patch sun4u sparc '
config_args=3D'-Dcc=3Dgcc -de'
hint=3Drecommended, useposix=3Dtrue, d_sigaction=3Ddefine
usethreads=3Dundef use5005threads=3Dundef useithreads=3Dundef
usemultiplicity=3Dundef
useperlio=3Dundef d_sfio=3Dundef uselargefiles=3Ddefine usesocks=3Dundef=

use64bitint=3Dundef use64bitall=3Dundef uselongdouble=3Dundef
Compiler:
cc=3D'gcc', ccflags =3D'-fno-strict-aliasing -I/usr/local/include -
D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=3D64',
optimize=3D'-O',
cppflags=3D'-fno-strict-aliasing -I/usr/local/include'
ccversion=3D'', gccversion=3D'2.95.3 20010315 (release)',
gccosandvers=3D'solaris2.7'
intsize=3D4, longsize=3D4, ptrsize=3D4, doublesize=3D8, byteorder=3D4321=

d_longlong=3Ddefine, longlongsize=3D8, d_longdbl=3Ddefine,
longdblsize=3D16
ivtype=3D'long', ivsize=3D4, nvtype=3D'double', nvsize=3D8, Off_t=3D'off=
_t',
lseeksize=3D8
alignbytes=3D8, usemymalloc=3Dy, prototype=3Ddefine
Linker and Libraries:
ld=3D'gcc', ldflags =3D' -L/usr/local/lib '
libpth=3D/usr/local/lib /usr/lib /usr/ccs/lib
libs=3D-lsocket -lnsl -lgdbm -ldl -lm -lc
perllibs=3D-lsocket -lnsl -ldl -lm -lc
libc=3D/lib/libc.so, so=3Dso, useshrplib=3Dfalse, libperl=3Dlibperl.a
Dynamic Linking:
dlsrc=3Ddl_dlopen.xs, dlext=3Dso, d_dlsymun=3Dundef, ccdlflags=3D' '
cccdlflags=3D'-fPIC', lddlflags=3D'-G -L/usr/local/lib'


Characteristics of this binary (from libperl):
Compile-time options: USE_LARGE_FILES
Built under solaris
Compiled at Apr 26 2001 16:17:32
@INC:
/usr/local/lib/perl5/5.6.1/sun4-solaris
/usr/local/lib/perl5/5.6.1
/usr/local/lib/perl5/site_perl/5.6.1/sun4-solaris
/usr/local/lib/perl5/site_perl/5.6.1
/usr/local/lib/perl5/site_perl

Re: Segmentation Fault (core dumped) on Solaris 10

am 09.01.2008 05:46:13 von Joe Smith

mariakvelasco@gmail.com wrote:

> I am trying to run a perl script on a Solaris 10 machine, which is
> suppose to display a dialog box

Dialog boxes are not an integral part of perl; such things are provided
by modules. Are you using the Tk module?

> I keep getting a Segmentation
> Fault (core dumped) error. I don't get this error message when I run
> it on Windows or Linux.

I've seen problems like this happen if $ENV{DISPLAY} or $ENV{WINDOWID}
get corrupted.

Do you get different results when running on a dtterm, an xterm, or
ssh/rlogin from elsewhere?

-Joe

Re: Segmentation Fault (core dumped) on Solaris 10

am 10.01.2008 21:31:40 von mariakvelasco

On Jan 8, 8:46=A0pm, Joe Smith wrote:
> mariakvela...@gmail.com wrote:
> > I am trying to run a perl script on a Solaris 10 machine, which is
> > suppose to display a dialog box
>
> Dialog boxes are not an integral part of perl; such things are provided
> by modules. =A0Are you using the Tk module?
>
> > I keep getting a Segmentation
> > Fault (core dumped) error. =A0I don't get this error message when I run
> > it on Windows or Linux.
>
> I've seen problems like this happen if $ENV{DISPLAY} or $ENV{WINDOWID}
> get corrupted.
>
> Do you get different results when running on a dtterm, an xterm, or
> ssh/rlogin from elsewhere?
>
> =A0 =A0 =A0 =A0 -Joe


I am using Tk modules to create my dialog boxes.

The problem is on my machine, I get the right result when running my
script; however, it's run on a different machine, the Segmentation
Fault error arises.

Is there something missing on the other solaris machine?

Re: Segmentation Fault (core dumped) on Solaris 10

am 10.01.2008 23:49:17 von mariakvelasco

On Jan 10, 12:31=A0pm, mariakvela...@gmail.com wrote:
> On Jan 8, 8:46=A0pm, Joe Smith wrote:
>
>
>
>
>
> > mariakvela...@gmail.com wrote:
> > > I am trying to run a perl script on a Solaris 10 machine, which is
> > > suppose to display a dialog box
>
> > Dialog boxes are not an integral part of perl; such things are provided
> > by modules. =A0Are you using the Tk module?
>
> > > I keep getting a Segmentation
> > > Fault (core dumped) error. =A0I don't get this error message when I ru=
n
> > > it on Windows or Linux.
>
> > I've seen problems like this happen if $ENV{DISPLAY} or $ENV{WINDOWID}
> > get corrupted.
>
> > Do you get different results when running on a dtterm, an xterm, or
> > ssh/rlogin from elsewhere?
>
> > =A0 =A0 =A0 =A0 -Joe
>
> I am using Tk modules to create my dialog boxes.
>
> The problem is on my machine, I get the right result when running my
> script; however, it's run on a different machine, the Segmentation
> Fault error arises.
>
> Is there something missing on the other solaris machine?- Hide quoted text=
-
>
> - Show quoted text -

I am getting the following information when I tried to debug it using
gdb

Program received signal SIGSEGV, Segmentation fault.
0xfee32d98 in Tcl_utfToExternalDString

Hope that gives more information.