The problem is i want to use this SEGV handler in a separate script to identify the root cause of segment violation. Attaching perl -V
perl -V Summary of my perl5 (revision 5 version 8 subversion 6) configuration: Platform: osname=solaris, osvers=2.10, archname=i86pc-solaris uname='sunos sx86qa2.com 5.10 generic i86pc i386 i86pc ' config_args='' hint=recommended, useposix=true, d_sigaction=define usethreads=define use5005threads=undef useithreads=define usemulti +plicity=define useperlio=define d_sfio=undef uselargefiles=define usesocks=undef use64bitint=undef use64bitall=undef uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='/proj/lang/SunOS.5.i386/studio-10.0/SUNWspro/bin/cc', ccflags +='-DPERL_USE_SAFE_PUTENV -DNO_PERL_PRESERVE_IVUV -D_REENTRANT -I/usr/ +local/include -I/usr/include -I/usr/local/gnu/include -D_LARGEFILE_SO +URCE -D_FILE_OFFSET_BITS=64', optimize='-fast', cppflags='-DPERL_USE_SAFE_PUTENV -DNO_PERL_PRESERVE_IVUV -D_REENTR +ANT -I/usr/local/include -I/usr/include -I/usr/local/gnu/include -D_L +ARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64' ccversion='Sun C 5.7 Patch 117837-03 2005/03/23', gccversion='', g +ccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=1 +2 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', + lseeksize=8 alignbytes=4, prototype=define Linker and Libraries: ld='/proj/lang/SunOS.5.i386/studio-10.0/SUNWspro/bin/cc', ldflags +='-L/usr/lib -L/lib -L/usr/local/lib -L/usr/local/gnu/lib -L/usr/loca +l/lib/studio-10.0 ' libpth=/usr/lib /lib /usr/local/lib /usr/local/gnu/lib /usr/local/ +lib/studio-10.0 libs=-lsocket -lnsl -lgdbm -ldl -lm -lpthread -lc perllibs=-lsocket -lnsl -ldl -lm -lpthread -lc libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a gnulibc_version='' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' ' cccdlflags='-KPIC', lddlflags='-G -L/usr/lib -L/lib -L/usr/local/l +ib -L/usr/local/gnu/lib -L/usr/local/lib/studio-10.0' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES PERL +_IMPLICIT_CONTEXT Built under solaris Compiled at Oct 9 2006 18:03:56 @INC: /usr/local/lib/perl5/5.8.6/i86pc-solaris /usr/local/lib/perl5/5.8.6 /usr/local/lib/perl5/site_perl/5.8.6/i86pc-solaris /usr/local/lib/perl5/site_perl/5.8.6 /prod/tools/packages/lib/perl5/5.8.6/i86pc-solaris /prod/tools/packages/lib/perl5/5.8.6

In reply to Re^4: SEGV Handling , srcipt does not exit after SEGV handling by Anonymous Monk
in thread SEGV Handling , srcipt does not exit after SEGV handling by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.