The following reply was made to PR mod_jserv/5420; it has been noted by GNATS.
From: Ed Korthof <[EMAIL PROTECTED]> To: Thierry Delaitre <[EMAIL PROTECTED]> Cc: [EMAIL PROTECTED] Subject: Re: mod_jserv/5420: Segmentation Fault Date: Mon, 6 Dec 1999 23:12:08 -0800 (PST) hi -- the place where the problem is occuring is populated by the __FILE__ macro; apache expects certain things there, in the module_structure. so either the wrong thing is there, or the memory got corrupted already at the point when this was called. in the testing environment which i have, DSOs work fine. i'm guessing that you're seeing one of two things. either the gcc which you're using is buggy, or you built the mod_jserv.so file on a different machine from the one used to build your httpd (or with different compiler settings). the version of gcc which you're using isn't in that common of use (i've generally seen 2.7.x, with the explanation that the 2.8.x series is buggy) -- but if this were a bug in that, i'd expect a work-around in the apache source. but it's also possible that the jserv initialization is corrupting the stack; if that's the case, it's not triggered by my environment. if that's what's going on, it'd be helpful to see your conf file. are you certain the .so file was compiled on the same machine (and with the same compiler) as apache? if so, could you gdb one of the core files and send me the output from 'p jserv_module'? it should look something like this: ***** (gdb) p jserv_module $1 = {version = 19990320, minor_version = 6, module_index = 20, name = 0x400e8337 "mod_jserv.c", dynamic_load_handle = 0x80de9b8, next = 0x80c8518, magic = 1095774515, init = 0x400df2b4 <jserv_init>, create_dir_config = 0, merge_dir_config = 0, create_server_config = 0x400dde78 <jserv_server_config_create>, merge_server_config = 0x400ddf4c <jserv_server_config_merge>, cmds = 0x400ed42c, handlers = 0x400ed40c, translate_handler = 0x400df650 <jserv_translate_handler>, ap_check_user_id = 0, auth_checker = 0, access_checker = 0, type_checker = 0x400df718 <jserv_type_match>, fixer_upper = 0, logger = 0, header_parser = 0, child_init = 0x400df37c <jserv_child_init>, child_exit = 0, post_read_request = 0} (gdb) ***** what do you mean when you say the system was solaris 7 w/ 32 bits? thanks -- ed On 5 Dec 1999, Thierry Delaitre wrote: > Date: 5 Dec 1999 15:04:10 -0000 > From: Thierry Delaitre <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: mod_jserv/5420: Segmentation Fault > > > >Number: 5420 > >Category: mod_jserv > >Synopsis: Segmentation Fault > >Confidential: no > >Severity: critical > >Priority: medium > >Responsible: jserv > >State: open > >Class: sw-bug > >Submitter-Id: apache > >Arrival-Date: Sun Dec 5 07:10:00 PST 1999 > >Last-Modified: > >Originator: [EMAIL PROTECTED] > >Organization: > apache > >Release: 1.3.9 - 1.1b3 > >Environment: > Solaris 7 in 32 bits with gcc2.8.1 > >Description: > I recompiled apache-1.3.9 with DSO support and I recompiled Jserv as a DSO > module. The problem is that when I start apache with Jserv, I get a > segmentatio > fault. I tried to not load the APacheJserv module and Apache works fine. > > (gdb) run > Starting program: /rhino_local/apache/bin/httpd > > Program received signal SIGSEGV, Segmentation fault. > 0xef6505e0 in strrchr () from /usr/lib/libc.so.1 > (gdb) bt > #0 0xef6505e0 in strrchr () from /usr/lib/libc.so.1 > #1 0x4f96c in ap_add_module () > #2 0x4fb24 in ap_add_loaded_module () > #3 0x471d0 in load_module () > #4 0x50314 in invoke_cmd () > #5 0x510e4 in ap_handle_command () > #6 0x511c4 in ap_srm_command_loop () > #7 0x51928 in ap_process_resource_config () > #8 0x58a74 in include_config () > #9 0x501fc in invoke_cmd () > #10 0x510e4 in ap_handle_command () > #11 0x511c4 in ap_srm_command_loop () > #12 0x51928 in ap_process_resource_config () > #13 0x5251c in ap_read_config () > #14 0x60b3c in main () > (gdb) > >How-To-Repeat: > Every time httpd is started with Apache Jserv support > >Fix: > No. Any help would be appreciated. > > Regards,