Re: Why is r-handler a garbled string?

2009-01-04 Thread Sander Temme
On Jan 2, 2009, at 12:14 PM, John David Duncan wrote: Yes, in fact the package does contain config.nice, which begins: CC=/opt/SUNWspro/bin/cc; export CC CFLAGS=-xO3 -xarch=386 -xchip=pentium -xspace -Xa -xildoff - xc99=all -DSSL_EXPERIMENTAL -DSSL_ENGINE -xO4; export CFLAGS That's what

Re: Why is r-handler a garbled string?

2009-01-02 Thread John David Duncan
Hi, I've solved the problem, though I may not exactly understand how. It was an issue with the way I was building the module, which was fixed once I added in the flags I got from apr-config --cppflags. (I used to rant that the mostly-undocumented design change to apxs in apache 2.0 was

Re: Why is r-handler a garbled string?

2008-12-30 Thread John David Duncan
You may be looking at something getting clobbered, and somehow that manifests itself on OpenSolaris but not on the other platform(s). Perhaps that has to do with the way data structures are aligned, endianness (are you on Sparc or Intel?) etc. Perhaps set some breakpoints and see if the

Re: Why is r-handler a garbled string?

2008-12-30 Thread Sander Temme
On Dec 30, 2008, at 9:10 AM, John David Duncan wrote: You may be looking at something getting clobbered, and somehow that manifests itself on OpenSolaris but not on the other platform(s). Perhaps that has to do with the way data structures are aligned, endianness (are you on Sparc or

Re: Why is r-handler a garbled string?

2008-12-30 Thread Arturo 'Buanzo' Busleiman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 John David Duncan wrote: if(strcmp(r-handler,my_name)) return DECLINED; why aren't you using strncmp?! Sorry, couldn't help it. I've seen (and exploited) way too many vulns like this. - -- Arturo Buanzo Busleiman Independent Linux and

Why is r-handler a garbled string?

2008-12-29 Thread John David Duncan
Hi, I have a module that runs correctly on some platforms (e.g. Apache 2.2.8 on Mac OS X 10.5) but not on others (e.g. Apache 2.2.9 on OpenSolaris). The problem revolves around the handler name check in a handler: if(strcmp(r-handler,my_name)) return DECLINED; On the problem machine,

Re: Why is r-handler a garbled string?

2008-12-29 Thread Sander Temme
On Dec 29, 2008, at 9:06 PM, John David Duncan wrote: I have a module that runs correctly on some platforms (e.g. Apache 2.2.8 on Mac OS X 10.5) but not on others (e.g. Apache 2.2.9 on OpenSolaris). .. [Mon Dec 29 20:46:25 2008] [debug] handlers.cc(46): r-handler is P \xfa\b\x0c

Re: Why is r-handler a garbled string?

2008-12-29 Thread John David Duncan
On Dec 29, 2008, at 9:20 PM, Sander Temme wrote: On Dec 29, 2008, at 9:06 PM, John David Duncan wrote: I have a module that runs correctly on some platforms (e.g. Apache 2.2.8 on Mac OS X 10.5) but not on others (e.g. Apache 2.2.9 on OpenSolaris). .. [Mon Dec 29 20:46:25 2008] [debug]

Re: Why is r-handler a garbled string?

2008-12-29 Thread Sander Temme
On Dec 29, 2008, at 9:28 PM, John David Duncan wrote: Interesting. What's your locale? echo $LANG in the shell that starts Apache? It's en_US.UTF-8 on both of those machines. Yeah, that seems to be the default on my Mac. I also just tried starting apache on the Solaris machine with