PEPPLER.ORG
Michael Peppler
Sybase Consulting
Menu
Home
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
Freeware
Sybperl
Sybase::Simple
DBD::Sybase
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
FAQs
Sybase on Linux FAQ
Sybperl FAQ
Personal
Michael Peppler's resume

sybperl-l Archive

Up    Prev    Next    

From: "Sabherwal, Balvinder (MBS)" <Balvinder dot Sabherwal at mortgagefamily dot com>
Subject: RE: Problem with sybperl
Date: Jun 19 2002 8:08PM

Here is the new stacktrace. The perl version is Activestate perl 5.6.1.

wpsdb01 /opt/sybasescripts/DB_Admin  $gdb `which perl` core
GNU gdb 4.17
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "sparc-sun-solaris2.6"...

warning: core file may not match specified executable file.
Core was generated by `/usr/local/ActivePerl-5.6/bin/perl CheckObjects.pl -U
DBA_Maint -D v2cmsnet -S'.
Program terminated with signal 9, Killed.
Reading symbols from /usr/lib/libsocket.so.1...done.
Reading symbols from /usr/lib/libnsl.so.1...done.
Reading symbols from /usr/lib/libdl.so.1...done.
Reading symbols from /usr/lib/libm.so.1...done.
Reading symbols from /usr/lib/libposix4.so.1...done.
Reading symbols from /usr/lib/libpthread.so.1...done.
Reading symbols from /usr/lib/libc.so.1...done.
Reading symbols from /usr/lib/libmp.so.2...done.
Reading symbols from /usr/lib/libaio.so.1...done.
Reading symbols from /usr/platform/SUNW,Ultra-4/lib/libc_psr.so.1...done.
Reading symbols from /usr/lib/libthread.so.1...done.
Reading symbols from
/usr/local/ActivePerl-5.6/lib/site_perl/5.6.1/sun4-solaris-thread-multi/auto
/Sybase/CTlib/CTlib.so...done.
Reading symbols from /opt/sybase/lib/libct_r.so...done.
Reading symbols from /opt/sybase/lib/libcs_r.so...done.
Reading symbols from /opt/sybase/lib/libtcl_r.so...done.
Reading symbols from /opt/sybase/lib/libcomn_r.so...done.
Reading symbols from /opt/sybase/lib/libintl_r.so...done.
Reading symbols from /opt/sybase/lib/libtli_r.so...done.
#0  0xef5a4734 in strlen ()
(gdb) bt
#0  0xef5a4734 in strlen ()
#1  0xef49a49c in newdbh (info=0x289830, package=0x1254b8 "Sybase::CTlib",
attr_ref=0xf521c) at CTlib.xs:480
#2  0xef4a5e00 in XS_Sybase__CTlib_ct_connect (my_perl=0xf4b40, cv=0xf521c)
at CTlib.c:5842
#3  0x76640 in Perl_pp_entersub ()
#4  0x6f394 in Perl_runops_standard ()
#5  0x26090 in S_run_body ()
#6  0x25d28 in perl_run ()
#7  0x22d84 in main ()


PERL VERSION

Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration:
  Platform:
    osname=solaris, osvers=2.6, archname=sun4-solaris-thread-multi
    uname='sunos sparky 5.6 generic_105181-26 sun4u sparc sunw,ultra-5_10 '
    config_args='-des -Dcc=gcc -Dcf_by=ActiveState
-Dcf_email=ActivePerl@ActiveState.com -Uinstallusrbinperl -Ud_sigsetjmp
-Dusethreads -Duseithreads -Dinc_version_list=5.6.0/$archname 5.6.0
-Dprefix=/usr/local/ActivePerl-5.6'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=define use5005threads=undef useithreads=define
usemultiplicity=define
    useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
  Compiler:
    cc='gcc', ccflags ='-DUSE_REENTRANT_API -D_POSIX_PTHREAD_SEMANTICS
-D_REENTRANT -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64',
    optimize='-O',
    cppflags='-DUSE_REENTRANT_API -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT
-fno-strict-aliasing -I/usr/local/include'
    ccversion='', gccversion='2.95.2 19991024 (release)',
gccosandvers='solaris2.6'
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
    alignbytes=8, usemymalloc=n, prototype=define
  Linker and Libraries:
    ld='gcc', ldflags =' -L/usr/local/lib '
    libpth=/usr/local/lib /usr/lib /usr/ccs/lib
    libs=-lsocket -lnsl -ldl -lm -lposix4 -lpthread -lc
    perllibs=-lsocket -lnsl -ldl -lm -lposix4 -lpthread -lc
    libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
    cccdlflags='-fPIC', lddlflags='-G -L/usr/local/lib'


Characteristics of this binary (from libperl): 
  Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES
PERL_IMPLICIT_CONTEXT
  Locally applied patches:
  	ActivePerl Build 632
  Built under solaris
  Compiled at Jun  3 2002 02:49:25
  @INC:
    /usr/local/ActivePerl-5.6/lib/5.6.1/sun4-solaris-thread-multi
    /usr/local/ActivePerl-5.6/lib/5.6.1
    /usr/local/ActivePerl-5.6/lib/site_perl/5.6.1/sun4-solaris-thread-multi
    /usr/local/ActivePerl-5.6/lib/site_perl/5.6.1
    /usr/local/ActivePerl-5.6/lib/site_perl
    .



-----Original Message-----
From: Michael Peppler [mailto:mpeppler@peppler.org]
Sent: Wednesday, June 19, 2002 3:16 PM
To: SybPerl Discussion List
Subject: RE: Problem with sybperl


On Wed, 2002-06-19 at 11:53, Sabherwal, Balvinder (MBS) wrote:
> here is the stack information
> 
> wpsdb01 /opt/sybasescripts/DB_Admin  $gdb `which perl` core
> GNU gdb 4.17

> #0  0xef5a4734 in strlen ()
> (gdb) bt
> #0  0xef5a4734 in strlen ()
> #1  0xef49a454 in newdbh ()
> #2  0xef4a5db8 in XS_Sybase__CTlib_ct_connect ()

That is really weird!

Could you please edit CTlib/Makefile and add -g to either the CCFLAGS or
OPTIMIZE macro, and then rm CTlib.o and run make again (so that debug
symbols are included).

Now run your script again, and do send me the stacktrace (which should
now include line numbers).

Also - what version of sybperl do you have?

Michael