The problem with the segmentation fault has to do with the virtual host support in Apache 2.2. I'm using Ubuntu 12.04 with Apache 2.2 MPM Prefork. The way Ubuntu suggests to set up the configuration is to have only general info in the main conf file( apache2.conf) and always have the first virtual host as the catcher for all other virtual hosts if any. So I put the oorexx configuration directives in that (default) virtual host configuration.
When the time comes for mod_oorexx to set up the rexx interface, oorexx_child_init in handlers.cpp only looks at the first server_rec, which is the one for general info, that is not invoked when a rex script has to be invoked. By surrounding the setup with a loop to follow the chain of (virtual) servers the setup will work for all of the servers. i.e. for ( ;s ; s=s->next) { .... existing setup code } On 25-7-2012 14:03, Ruurd Idenburg wrote: > Update: When the Interpreter instance is created in: > > handlers.cpp : line 89: in oorexx_cchild_init: > > RexxCreateInterpreter(&cfg->contentInst, &cfg->contentThrdInst, options); > > the API Vectors are all completely filled in > > Ruurd Idenburg > > On 25-7-2012 11:55, Ruurd Idenburg wrote: >> Update: >> >> handlers.cpp: line 149: >> >> RexxDirectoryObject dir = >> (RexxDirectoryObject)cfg->contentThrdInst->GetLocalEnvironment(); >> >> >> Well, the reason for the segmentation fault is that the entry in the API >> Vectors in the instance threadcontext(i.e. contentThrdInst) is 0x0 while >> the one for (for instance) GetGlobalEnvironment has a non-zero value. >> >> Also noticed that a lot of the API vectors are zero, which surprises me, >> as all of them are mentioned in the Programmers Guide as being available >> within a thread context. >> >> Ruurd Idenburg >> >> On 23-7-2012 21:12, Ruurd Idenburg wrote: >>> Hey Dave, >>> >>> No excuses needed; after all this is a volunteer business; it's just >>> that all that c++ stuff is just a little too far over my head to do it >>> myself; in fact I was pretty satisfied I could pin the segmentation >>> fault down to that particular statement with the help of gdb. >>> >>> I'll see if I can get some more insight in what is going wrong and why >>> and will post here any new findings. >>> >>> Ruurd Idenburg >>> >>> On 23-7-2012 15:04, David Ashley wrote: >>>> I got side tracked after I wrote mod_oorexx and I have never gotten back >>>> to to it. Poor excuse, I know, but that happens sometimes. Unfortunately >>>> I am in the middle of a family project for the next 2 weeks and I do not >>>> have the time to get back to mod_oorexx. I will put it on to my todo >>>> list and get back to you. >>>> >>>> David Ashley >>>> >>>> On Sun, 2012-07-22 at 23:35 +0200, Ruurd Idenburg wrote: >>>>> What's the status of mod_oorexx, as per www.rexxla.org "to be released >>>>> shortly after 4.0"? >>>>> >>>>> If I take the stuff from the incuberator and compile that on Ubuntu >>>>> 10.04 (64Bit), I get a segment fault (11) at the following statement in: >>>>> >>>>> handlers.cpp >>>>> >>>>> line 149: >>>>> >>>>> RexxDirectoryObject dir = (RexxDirectoryObject) >>>>> cfg->contentThrdInst->GetLocalEnvironment(); >>>>> >>>>> with Apache 2.2.14 , in both worker and prefork variant. >>>>> >>>>> Somebody can shed some light on this? >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> Live Security Virtual Conference >>>>> Exclusive live event will cover all the ways today's security and >>>>> threat landscape has changed and how IT managers can respond. Discussions >>>>> will include endpoint security, mobile security and the latest in malware >>>>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>>>> _______________________________________________ >>>>> Oorexx-users mailing list >>>>> Oorexx-users@lists.sourceforge.net >>>>> https://lists.sourceforge.net/lists/listinfo/oorexx-users >>>> ------------------------------------------------------------------------------ >>>> Live Security Virtual Conference >>>> Exclusive live event will cover all the ways today's security and >>>> threat landscape has changed and how IT managers can respond. Discussions >>>> will include endpoint security, mobile security and the latest in malware >>>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>>> _______________________________________________ >>>> Oorexx-users mailing list >>>> Oorexx-users@lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/oorexx-users >>>> >>> ------------------------------------------------------------------------------ >>> Live Security Virtual Conference >>> Exclusive live event will cover all the ways today's security and >>> threat landscape has changed and how IT managers can respond. Discussions >>> will include endpoint security, mobile security and the latest in malware >>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>> _______________________________________________ >>> Oorexx-users mailing list >>> Oorexx-users@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/oorexx-users >>> >> ------------------------------------------------------------------------------ >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. Discussions >> will include endpoint security, mobile security and the latest in malware >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _______________________________________________ >> Oorexx-users mailing list >> Oorexx-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/oorexx-users >> > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Oorexx-users mailing list > Oorexx-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/oorexx-users ------------------------------------------------------------------------------ One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y _______________________________________________ Oorexx-users mailing list Oorexx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/oorexx-users