Login | Register
My pages Projects Community openCollabNet

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Catacomb] Seg faults 0.80 w/ apache 2.0.45



Chris and Kai, would you like to take a look at the gdb trace?
I have no idea why it produces segment fault in mysql_sub_escape_string.

Have a nice day.
--
Sung Kim, http://www.cse.ucsc.edu 

-----Original Message-----
From: Peter Burkholder [mailto:peterb@ucar.edu] 
Sent: Friday, May 02, 2003 5:53 AM
To: Sung Kim
Subject: Re: [Catacomb] Seg faults 0.80 w/ apache 2.0.45

Hi,

I upgraded mysql to the latest available for RH7.1, from 3.23.34a to
3.23.56-1.71.  I still segfault:


(gdb) run -X
Starting program: /export/local/apache2/bin/httpd -X
[New Thread 1024 (LWP 18745)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 18745)]
0x402f5c54 in mysql_sub_escape_string ()
   from /usr/lib/mysql/libmysqlclient.so.10
(gdb) where
#0  0x402f5c54 in mysql_sub_escape_string ()
   from /usr/lib/mysql/libmysqlclient.so.10
#1  0x40038e8e in dbms_set_string (query=0x816dfe8, num=1, 
    value=0x816dfd0 "/repos/Metadata") at dbms_mysql.c:126
#2  0x400325e0 in dbms_get_property (d=0x8119400, r=0x816def0) at dbms.c:178
#3  0x4002ee98 in dav_repos_get_resource (r=0x816c210, 
    root_path=0x81621a0 "/repos", label=0x0, use_checked_in=0, 
    result_resource=0xbffff564) at repos.c:329
#4  0x0807428b in dav_get_resource (r=0x816c210, label_allowed=0, 
    use_checked_in=0, res_p=0xbffff564) at mod_dav.c:705
#5  0x080751b1 in dav_method_options (r=0x816c210) at mod_dav.c:1512
#6  0x080909f2 in ap_run_handler (r=0x816c210) at config.c:194
#7  0x08090f0d in ap_invoke_handler (r=0x816c210) at config.c:401
#8  0x080721c3 in ap_process_request (r=0x816c210) at http_request.c:288
#9  0x0806e198 in ap_process_http_connection (c=0x8167e60) at
http_core.c:292
#10 0x08099792 in ap_run_process_connection (c=0x8167e60) at connection.c:85
#11 0x0808f6a5 in child_main (child_num_arg=0) at prefork.c:643
#12 0x0808f758 in make_child (s=0x80d3958, slot=0) at prefork.c:683
#13 0x0808f842 in startup_children (number_to_start=5) at prefork.c:755
#14 0x0808fb44 in ap_mpm_run (_pconf=0x80d0b70, plog=0x810ec68, s=0x80d3958)
    at prefork.c:971
#15 0x08094e6b in main (argc=2, argv=0xbffff80c) at main.c:671
#16 0x401bc336 in __libc_start_main (main=0x80946a4 <main>, argc=2, 
    ubp_av=0xbffff80c, init=0x8063420 <_init>, fini=0x80ab470 <_fini>, 
    rtld_fini=0x4000d2fc <_dl_fini>, stack_end=0xbffff7fc)
    at ../sysdeps/generic/libc-start.c:129


httpd.conf:

DavDBMSHost localhost
DavDBMSDbName repos
DavDBMSId   peterb
DavDBMSPass (not shown)
DavDBMSTmpDir /tmp/

<Location /repos>
  DAV repos
</Location>


connects to mysql work okay as normal client.

Anything else?

peter

    x
On Thu, Apr 24, 2003 at 03:03:27PM -0600, Peter Burkholder wrote:
> Date: Thu, 24 Apr 2003 15:03:27 -0600
> From: Peter Burkholder <peterb@ucar.edu>
> To: Sung Kim <hunkim@soe.ucsc.edu>
> Subject: Re: [Catacomb] Seg faults 0.80 w/ apache 2.0.45
> User-Agent: Mutt/1.2.5.1i
> 
> I compiled apache without '--enable-maintainer-mode'
> 
> Will this work?
> 
> P.
> On Thu, Apr 24, 2003 at 11:40:19AM -0700, Sung Kim wrote:
> > Hello,
> > 
> > I just tested with Apache 2.0.45 and it works here.
> > Could you send me gdb track information for me?
> > 
> > 1. Stop apache: apachectl stop
> > 2. Run httpd with gdb: cd /usr/local/apache2/bin; gdb httpd
> > 3. Run apache in gdb: gdb> run -X
> > 4. Connect the apache server using WebDAV client
> > 5. If there is seg fault gdb will report something. 
> > 6. Get stack trace: gdb> where
> > 	It will show stack information.
> > 
> > I appreciate it.
> > 
> > --
> > Sung Kim, http://www.cse.ucsc.edu 
> > 
> > Peter Burkholder <peterb@ucar.edu> wrote:
> > 
> > > I think a recent poster noticed similar behavior.   Build and install
went
> > > fine, but when I try to connect:
> > > 
> > > [Thu Apr 24 06:22:08 2003] [error] - TRACE : dbms_opendb
> > > [Thu Apr 24 06:22:08 2003] [error] - TRACE : dbms_opendb
> > > [Thu Apr 24 06:22:19 2003] [error] - TRACE : dbms_opendb
> > > [Thu Apr 24 06:23:12 2003] [error] - TRACE : dav_repos_get_resource
> > > [Thu Apr 24 06:23:12 2003] [error] - TRACE : dbms_get_property
> > > [Thu Apr 24 06:23:12 2003] [notice] child pid 24842 exit signal
> > Segmentation fault (11), possible coredump in /usr/local/apache2.0
> > > [Thu Apr 24 06:23:15 2003] [error] - TRACE : dbms_opendb
> > > [Thu Apr 24 06:23:24 2003] [error] - TRACE : dav_repos_get_resource
> > > [Thu Apr 24 06:23:24 2003] [error] - TRACE : dbms_get_property
> > > [Thu Apr 24 06:23:25 2003] [notice] child pid 24844 exit signal
> > Segmentation fault (11), possible coredump in /usr/local/apache2.0
> > > 
> > > Any ideas on this one?
> > > 
> > > P.
> > > --
> > > Peter Burkholder, System Administrator
> > > Digital Library for Earth System Education (DLESE --
http://www.dlese.org)
> > > peterb@ucar.edu
> > > DLESE Program Center (DPC)                             ~~~  ~~  ~~~~
__o
> > > UCAR/DPC, P.O. Box 3000       Ph) 303-497-2663       ~~~  ~~~~ ~~
> > _`\<,_
> > > Boulder, CO 80307-3000        Fx) 303-497-8336  ~~~~ ~~~   ~~~~
(*)/
> > (*)
> > > _______________________________________________
> > > Catacomb mailing list
> > > Catacomb@webdav.org
> > > http://mailman.webdav.org/mailman/listinfo/catacomb
> > > 
> > _______________________________________________
> > Catacomb mailing list
> > Catacomb@webdav.org
> > http://mailman.webdav.org/mailman/listinfo/catacomb
> > 
> > 
> > _______________________________________________
> > Catacomb mailing list
> > Catacomb@webdav.org
> > http://mailman.webdav.org/mailman/listinfo/catacomb
> --
> Peter Burkholder, System Administrator
> Digital Library for Earth System Education (DLESE -- http://www.dlese.org)
> peterb@ucar.edu
> DLESE Program Center (DPC)                             ~~~  ~~  ~~~~   __o
> UCAR/DPC, P.O. Box 3000       Ph) 303-497-2663       ~~~  ~~~~ ~~
_`\<,_
> Boulder, CO 80307-3000        Fx) 303-497-8336  ~~~~ ~~~   ~~~~     (*)/
(*)
--
Peter Burkholder, System Administrator
Digital Library for Earth System Education (DLESE -- http://www.dlese.org)
peterb@ucar.edu
DLESE Program Center (DPC)                             ~~~  ~~  ~~~~   __o
UCAR/DPC, P.O. Box 3000       Ph) 303-497-2663       ~~~  ~~~~ ~~    _`\<,_
Boulder, CO 80307-3000        Fx) 303-497-8336  ~~~~ ~~~   ~~~~     (*)/ (*)