Re: Segmentation fault when running DBD::Sybase

Ravi Parimi <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.dbi.sybase
Message-ID <[email protected]>
Michael,

  Thanks for your reply. 

> To try to figure out why you get a seg fault please post the stack
> trace. To get the stack trace you have to enable core dumps (ulimit -c
> unlimited) and once you have a core dump use gdb to get the stack trace:
> gdb `which perl` core.xxxx
> gdb> bt
Here's the stack trace..
(gdb) bt
#0  0x4212dfd0 in main_arena () from /lib/i686/libc.so.6
#1  0x4205535f in buffered_vfprintf () from /lib/i686/libc.so.6
#2  0x42050437 in vfprintf () from /lib/i686/libc.so.6
#3  0x4205a297 in fprintf () from /lib/i686/libc.so.6
#4  0x402cf722 in com_perr () from /opt/sybase-11.9.2/lib/libcomn.so
#5  0x402c13ed in com_intl_verify_ctxloc ()
   from /opt/sybase-11.9.2/lib/libcomn.so
#6  0x402804a9 in cs_ctx_alloc () from /opt/sybase-11.9.2/lib/libcs.so
#7  0x4020d041 in syb_init ()
   from /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi/auto/DBD/Sybase/Sybase.so
#8  0x4020a537 in boot_DBD__Sybase ()
   from /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi/auto/DBD/Sybase/Sybase.so
#9  0x40095791 in Perl_pp_entersub ()
   from /usr/lib/perl5/5.8.1/i386-linux-thread-multi/CORE/libperl.so
#10 0x4008e320 in Perl_runops_standard ()
   from /usr/lib/perl5/5.8.1/i386-linux-thread-multi/CORE/libperl.so
#11 0x40037e7d in S_call_body ()
   from /usr/lib/perl5/5.8.1/i386-linux-thread-multi/CORE/libperl.so
#12 0x40037c12 in Perl_call_sv ()
   from /usr/lib/perl5/5.8.1/i386-linux-thread-multi/CORE/libperl.so
#13 0x4003bbfb in S_call_list_body ()
---Type <return> to continue, or q <return> to quit---
   from /usr/lib/perl5/5.8.1/i386-linux-thread-multi/CORE/libperl.so
#14 0x4003b873 in Perl_call_list ()
   from /usr/lib/perl5/5.8.1/i386-linux-thread-multi/CORE/libperl.so
#15 0x40064d26 in Perl_newATTRSUB ()
   from /usr/lib/perl5/5.8.1/i386-linux-thread-multi/CORE/libperl.so
#16 0x40061b56 in Perl_utilize ()
   from /usr/lib/perl5/5.8.1/i386-linux-thread-multi/CORE/libperl.so
#17 0x40059b94 in Perl_yyparse ()
   from /usr/lib/perl5/5.8.1/i386-linux-thread-multi/CORE/libperl.so
#18 0x40036faa in S_parse_body ()
   from /usr/lib/perl5/5.8.1/i386-linux-thread-multi/CORE/libperl.so
#19 0x40035f38 in perl_parse ()
   from /usr/lib/perl5/5.8.1/i386-linux-thread-multi/CORE/libperl.so
#20 0x0804929d in main ()
#21 0x42017589 in __libc_start_main () from /lib/i686/libc.so.6
(gdb)

> What database server are you trying to talk to?
> These libraries are very old - you would be better off getting ASE
> 12.5.3 - see http://www.sybase.com/linuxpromo/

I am trying to connect to SQL server 2000. I am now downloading ASE
12.5.3 from sybase.com, and will compile the DBD::Sybase module again
using these libraries..
 
> Again - what database server do you need access to? If it's a Sybase
> server I would recommend not using FreeTDS at this time.

Is it OK to use FreeTDS to connect to MS SQL databases? I am not aware
of any issues with using this library. I had it working at one point -
was able to connect to the database, create tables, execute stored
procedures etc.. I don't remember what changes I made (like installing
newer libraries etc.) and all I get is a seg fault now. I will let you
know how ASE works out for me.

Thank you very much!
Regards,
--ravi
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.