Skip to Content.
Sympa Menu

freetds - Re: Segmentation Fault in freetds when used under mod_perl all versions tested

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Michael Peppler <mpeppler AT peppler.org>
  • To: "TDS Development Group" <freetds AT franklin.oit.unc.edu>
  • Subject: Re: Segmentation Fault in freetds when used under mod_perl all versions tested
  • Date: Thu, 29 Nov 2001 08:34:24 -0800


DBD::Sybase uses whatever perl tells it to use for linking, so I don't
think it's dependant on the version of DBD::Sybase (though possibly on
how perl was installed).

Michael


Steve Langasek writes:
> On Thu, Nov 29, 2001 at 10:07:48AM -0500, Brian Bruns wrote:
> > Can you send a stack trace of the segfault?
>
> Incidentally, the fact that the segfault occurs only when running under
> mod_perl reminds me of many segfaults involving PHP -- with so many DSOs
> running in the same memory space, the whole thing becomes very fragile
> if everything hasn't been linked correctly. I don't think I ever used
> DBD::Sybase 0.90; is it possible that this version of the code used 'ld'
> for linking instead of 'cc' (a no-no on Linux unless you're a linking
> wizard)?
>
> Steve Langasek
> postmodern programmer
>
> > > -Configuration-
>
> > > Distribution = SuSE 7.2
> > > Driver = freetds 0.52
> > > mod_perl = 1.25
> > > Apache = 1.3.19
> > > Embedded perl = 5.6.0
> > > mod_fastcgi = 2.2.2
> > > DBD::Sybase = 0.90
>
> > > mod_perl/perl Environment
>
> > > DOCUMENT_ROOT = /usr/local/httpd/htdocs
> > > GATEWAY_INTERFACE = CGI-Perl/1.1
> > > HTTP_ACCEPT = image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
> > > application/vnd.ms-excel, application/msword,
> > > application/vnd.ms-powerpoint, */*
> > > HTTP_ACCEPT_ENCODING = gzip, deflate
> > > HTTP_ACCEPT_LANGUAGE = en-us
> > > HTTP_CONNECTION = Keep-Alive
> > > HTTP_COOKIE = SITESERVER=ID=e63a763d2dbdca4653b6be8e334beebd
> > > HTTP_HOST = server.company.com
> > > HTTP_REFERER = http://server.company.com/perl-status
> > > HTTP_USER_AGENT = Mozilla/4.0 (compatible; MSIE 5.0; Windows NT;
> > > DigExt)
> > > LD_LIBRARY_PATH =
> > > :/lib:/usr/local/freetds/lib:/lib:/usr/local/freetds/lib
> > > MOD_PERL = mod_perl/1.25
> > > PATH = /sbin:/bin:/usr/sbin:/usr/bin
> > > PERL_SEND_HEADER = On
> > > QAenv = 1
> > > QUERY_STRING = env
> > > REMOTE_ADDR = 66.54.132.34
> > > REMOTE_PORT = 9452
> > > REQUEST_METHOD = GET
> > > REQUEST_URI = /perl-status?env
> > > SCRIPT_FILENAME = /usr/local/httpd/htdocs/perl-status
> > > SCRIPT_NAME = /perl-status
> > > SERVER_ADDR = 66.54.128.86
> > > SERVER_ADMIN = admin AT company.com
> > > SERVER_NAME = server.company.com
> > > SERVER_PORT = 80
> > > SERVER_PROTOCOL = HTTP/1.1
> > > SERVER_SIGNATURE =
> > > Apache/1.3.19 Server at server.company.com Port 80
>
>
> > > SERVER_SOFTWARE = Apache/1.3.19 (Unix) (SuSE/Linux) mod_perl/1.25
> > > mod_throttle/3.0 mod_layout/1.0 mod_fastcgi/2.2.2 mod_dtcl
> > > SYBASE = /usr/local/freetds
> > > UNIQUE_ID = PAZMrEI2gFYAAChDAGk
>
>
> > > I am currently experiencing a segmentation fault in freetds.
> > > This occurs while running a perl script under the mod_perl and
> > > executeing
> > > DBI->connect function. I odd thing is the this only occurs under
> > > mod_perl
> > > when the exact same script is executed via cgi-bin the segmentation
> > > fault
> > > does not
> > > occur. I have been debugging this for 3 days now reviewing and
> > > rerewieving
> > > the configuration and documentation.
>
> > > Please help,
> > > No Body
> ---
> You are currently subscribed to freetds as: [mpeppler AT peppler.org]
> To unsubscribe, forward this message to $subst('Email.Unsub')

--
Michael Peppler - Data Migrations Inc. - http://www.mbay.net/~mpeppler
mpeppler AT peppler.org - mpeppler AT mbay.net
International Sybase User Group - http://www.isug.com




Archive powered by MHonArc 2.6.24.

Top of Page