p.s. this is all done with php4, and midgard uncommented in httpd.conf
> patched it..here is the output from gdb:
>
> [root@oddjob /]# gdb /usr/sbin/httpd
> GNU gdb 5.0
> Copyright 2000 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 "i386-redhat-linux"...
> (no debugging symbols found)...
> (gdb) run -X
> Starting program: /usr/sbin/httpd -X
>Yuo don't need to run it with gdb. Just run it as you would normally,
>the messages will be in the error log.
Oops...sorry..i forgot that was the whole point of applying the patch.
hmm...here is what was there in the error_log just after i ran the patch,
and started apache using /usr/sbin/httpd -X:
[Mon Jul 16 14:30:09 2001] [notice] Apache/1.3.12 (Unix) (Red Hat/Linux)
Midgar
d/1.4.1-cvs-20010716/SG configured -- resuming normal operations
[Mon Jul 16 14:37:10 2001] [notice] caught SIGTERM, shutting down
[Mon Jul 16 14:38:38 2001] [notice] Apache/1.3.12 (Unix) (Red Hat/Linux)
PHP/4.
0.6 configured -- resuming normal operations
[Mon Jul 16 17:47:22 2001] [crit] (98)Address already in use: make_sock:
could n
ot bind to port 8102
[Mon Jul 16 18:36:01 2001] [crit] (98)Address already in use: make_sock:
could n
ot bind to port 8102
[Mon Jul 16 18:37:46 2001] [crit] (98)Address already in use: make_sock:
could n
ot bind to port 8102
[Mon Jul 16 18:39:26 2001] [crit] (98)Address already in use: make_sock:
could n
ot bind to port 8102
I wasn't sure exactly how old/what caused these, so i deleted the error_log,
and tried to restart and see the errro_log. Unfortunatley, there is nothing
helpful in the error_log now...error log contents:
[Mon Jul 16 18:51:38 2001] [notice] Apache/1.3.12 (Unix) (Red Hat/Linux)
PHP/4.
0.6 configured -- resuming normal operations
[Mon Jul 16 18:52:48 2001] [notice] caught SIGTERM, shutting down
[root@oddjob httpd]#
so i tred to run it through gdb again, and got completely different results
again:
(gdb) run -X
Starting program: /usr/sbin/httpd -X
Program received signal SIGSEGV, Segmentation fault.
open_path (name=0x403c7b5e "libz.so.1", namelen=10, preloaded=0,
dirsp=0x80a7da0, may_free_dirs=0, realname=0xbfffd458) at dl-load.c:1242
1242 dl-load.c: No such file or directory.
(gdb) bt
#0 open_path (name=0x403c7b5e "libz.so.1", namelen=10, preloaded=0,
dirsp=0x80a7da0, may_free_dirs=0, realname=0xbfffd458) at dl-load.c:1242
#1 0x40007c66 in _dl_map_object (loader=0x80a7e58,
name=0x403c7b5e "libz.so.1", preloaded=0, type=2, trace_mode=0, mode=0)
at dl-load.c:1427
#2 0x4000cc89 in _dl_map_object_deps () at dl-deps.c:234
#3 0x4023a6d6 in dl_open_worker (a=0xbfffd830) at dl-open.c:180
#4 0x4000db7c in _dl_catch_error (objname=0xbfffd828, errstring=0xbfffd82c,
operate=0x4023a4f4 <dl_open_worker>, args=0xbfffd830) at dl-error.c:138
#5 0x4023ab50 in _dl_open (file=0x80ab614 "/etc/httpd/modules/libphp4.so",
mode=-1073752024, caller=0x80690e4) at dl-open.c:357
#6 0x4012d387 in dlopen_doit (a=0xbfffd9a0) at dlopen.c:39
#7 0x4000db7c in _dl_catch_error (objname=0x4012ef8c, errstring=0x4012ef90,
operate=0x4012d350 <dlopen_doit>, args=0xbfffd9a0) at dl-error.c:138
#8 0x4012d71b in _dlerror_run (operate=0x4012d350 <dlopen_doit>,
args=0xbfffd9a0) at dlerror.c:132
#9 0x4012d336 in __dlopen_check (
file=0x80ab614 "/etc/httpd/modules/libphp4.so", mode=258) at dlopen.c:52
#10 0x80690e4 in ap_os_dso_load ()
#11 0x804fb28 in ap_get_server_built ()
#12 0x80542ad in ap_clear_module_list ()
#13 0x8054570 in ap_handle_command ()
#14 0x80545cb in ap_srm_command_loop ()
#15 0x8054963 in ap_process_resource_config ()
---Type <return> to continue, or q <return> to quit---
#16 0x805504c in ap_read_config ()
#17 0x805d122 in ap_child_terminate ()
#18 0x805d928 in main ()
#19 0x4014ab65 in __libc_start_main (main=0x805d5f0 <main>, argc=2,
ubp_av=0xbffffca4, init=0x804f084 <_init>, fini=0x807e45c <_fini>,
rtld_fini=0x4000df24 <_dl_fini>, stack_end=0xbffffc9c)
at ../sysdeps/generic/libc-start.c:111
Have i done somethign wrong with the patching? Hope the gdb output helps...
Aditya.
Emile
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]