Re: [naviserver-devel] nsphp.c error

2008-05-05 Thread Stephen Deasey
On Mon, May 5, 2008 at 5:02 AM, Daniel Stasinski <[EMAIL PROTECTED]> wrote:
> When using nsphp with CVS version of naviserver, the following crash occurs:
>
> /root/modules/nsphp/php-5.2.5/main/SAPI.c(424) : Block 0x08523200 status:
> Invalid pointer: ((thread_id=0x0001) != (expected=0xB53FFB90))
> [04/May/2008:20:58:14][27361.b53ffb90][-conn:default:0] Fatal:
> received fatal signal 11
> Aborted
>
> To duplicate, load a page that requires authentication, such as:
> http://something.com/nsconf.tcl and then a plain non-authenticated
> page like http://something.com/helloworld.php
>
> Daniel


Here's some tips to help narrow down the cause of the crash:

  http://naviserver.sourceforge.net/w/Running_Tests

A backtrace would be very helpful.


So would a short test case (the auth stuff you mentioned above).  You
could do this by loading nsphp in the naviserver/tests/test.nscfg file
and adding a new file tests/php.test, but even better would be to add
this to the nsphp module itself.

nsphp doesn't already have the test harness set up, but you can use
nsloopctl as an example of a module which does.

  http://naviserver.cvs.sourceforge.net/naviserver/modules/nsloopctl/

Basically you need to cut 'n paste the test targets from the Makefile,
copy the tests/all.tcl into place, copy the tests/config.tcl and edit,
then add a php.test file with your single test.

Send the output of 'cvs diff -u' to the list  (and your backtrace /
bug hunting results).


If you're uncomfortable fixing the bug someone else will take a look
at it, but if you'd like to take a shot yourself we can guide you
through it.


Thanks!

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
naviserver-devel mailing list
naviserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/naviserver-devel


Re: [naviserver-devel] nsphp.c error

2008-05-05 Thread Vlad Seryakov
I am working on it, i think i found the problem, i use ns_strcopy but 
should use estrdup, PHP does freeing. Will test and commit, i've never 
tested PHP with basic auth before.

Stephen Deasey wrote:
> On Mon, May 5, 2008 at 5:02 AM, Daniel Stasinski <[EMAIL PROTECTED]> wrote:
>> When using nsphp with CVS version of naviserver, the following crash occurs:
>>
>> /root/modules/nsphp/php-5.2.5/main/SAPI.c(424) : Block 0x08523200 status:
>> Invalid pointer: ((thread_id=0x0001) != (expected=0xB53FFB90))
>> [04/May/2008:20:58:14][27361.b53ffb90][-conn:default:0] Fatal:
>> received fatal signal 11
>> Aborted
>>
>> To duplicate, load a page that requires authentication, such as:
>> http://something.com/nsconf.tcl and then a plain non-authenticated
>> page like http://something.com/helloworld.php
>>
>> Daniel
> 
> 
> Here's some tips to help narrow down the cause of the crash:
> 
>   http://naviserver.sourceforge.net/w/Running_Tests
> 
> A backtrace would be very helpful.
> 
> 
> So would a short test case (the auth stuff you mentioned above).  You
> could do this by loading nsphp in the naviserver/tests/test.nscfg file
> and adding a new file tests/php.test, but even better would be to add
> this to the nsphp module itself.
> 
> nsphp doesn't already have the test harness set up, but you can use
> nsloopctl as an example of a module which does.
> 
>   http://naviserver.cvs.sourceforge.net/naviserver/modules/nsloopctl/
> 
> Basically you need to cut 'n paste the test targets from the Makefile,
> copy the tests/all.tcl into place, copy the tests/config.tcl and edit,
> then add a php.test file with your single test.
> 
> Send the output of 'cvs diff -u' to the list  (and your backtrace /
> bug hunting results).
> 
> 
> If you're uncomfortable fixing the bug someone else will take a look
> at it, but if you'd like to take a shot yourself we can guide you
> through it.
> 
> 
> Thanks!
> 
> -
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
> Don't miss this year's exciting event. There's still time to save $100. 
> Use priority code J8TL2D2. 
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> ___
> naviserver-devel mailing list
> naviserver-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/naviserver-devel
> 


-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
naviserver-devel mailing list
naviserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/naviserver-devel


Re: [naviserver-devel] nsphp.c error

2008-05-05 Thread Vlad Seryakov
Just commited the fix, tested with MediaWiki, works fine, does not crash 
on auth pages anymore.

Also, upgraded to php-5.2.6

Daniel Stasinski wrote:
> When using nsphp with CVS version of naviserver, the following crash occurs:
> 
> /root/modules/nsphp/php-5.2.5/main/SAPI.c(424) : Block 0x08523200 status:
> Invalid pointer: ((thread_id=0x0001) != (expected=0xB53FFB90))
> [04/May/2008:20:58:14][27361.b53ffb90][-conn:default:0] Fatal:
> received fatal signal 11
> Aborted
> 
> To duplicate, load a page that requires authentication, such as:
> http://something.com/nsconf.tcl and then a plain non-authenticated
> page like http://something.com/helloworld.php
> 
> Daniel
> 


-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
naviserver-devel mailing list
naviserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/naviserver-devel


[naviserver-devel] tmpnam issues

2008-05-05 Thread Vlad Seryakov
I guess Zoran uses Windows port in production.
Have you ever encounter any problems with tmpnam?

Do we need to work on thins for naviserver?

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
naviserver-devel mailing list
naviserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/naviserver-devel


[naviserver-devel] nsssl crash

2008-05-05 Thread Daniel Stasinski
Before I begin hunting down a crash involving nsssl from cvs, are
there any known issues?

The server loads with no errors but crashes on the first ssl page access.

ns_sectionns/server/default/module/nsssl
ns_paramport443
ns_paramaddress 192.168.0.10
ns_paramhostnamesecure.server.com
ns_paramcertificate
/home/nsadmin/naviserver/servers/www.server.com/modules/nsssl/server.pem
ns_paramciphers
"ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP"
ns_paramprotocols   "SSLv2, SSLv3, TLSv1"

Daniel

-- 
| ---
| Daniel P. Stasinski | http://www.saidsimple.com
| [EMAIL PROTECTED] | http://www.disabilities-r-us.com
| XMMP: [EMAIL PROTECTED] | http://www.avenues.org
| Google Talk: mooo | http://www.scriptkitties.com

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
naviserver-devel mailing list
naviserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/naviserver-devel


Re: [naviserver-devel] nsphp.c error

2008-05-05 Thread Daniel Stasinski
On Mon, May 5, 2008 at 10:16 AM, Vlad Seryakov <[EMAIL PROTECTED]> wrote:
> Just commited the fix, tested with MediaWiki, works fine, does not crash
>  on auth pages anymore.

Will update.  Thank you, Vlad.

Having run a strictly AOLserver shop for the last 10 years, I'll
looking forward to the direction of NaviServer.

Daniel

-- 
| ---
| Daniel P. Stasinski | http://www.saidsimple.com
| [EMAIL PROTECTED] | http://www.disabilities-r-us.com
| XMMP: [EMAIL PROTECTED] | http://www.avenues.org
| Google Talk: mooo | http://www.scriptkitties.com

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
naviserver-devel mailing list
naviserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/naviserver-devel


Re: [naviserver-devel] nsssl crash

2008-05-05 Thread Vlad Seryakov
It used to work fine but actually it was some time ago, let me load and 
check it locally, in the meantime backtrack would be helpful as well.

Daniel Stasinski wrote:
> Before I begin hunting down a crash involving nsssl from cvs, are
> there any known issues?
> 
> The server loads with no errors but crashes on the first ssl page access.
> 
> ns_sectionns/server/default/module/nsssl
> ns_paramport443
> ns_paramaddress 192.168.0.10
> ns_paramhostnamesecure.server.com
> ns_paramcertificate
> /home/nsadmin/naviserver/servers/www.server.com/modules/nsssl/server.pem
> ns_paramciphers
> "ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP"
> ns_paramprotocols   "SSLv2, SSLv3, TLSv1"
> 
> Daniel
> 


-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
naviserver-devel mailing list
naviserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/naviserver-devel


Re: [naviserver-devel] nsssl crash

2008-05-05 Thread Vlad Seryakov
Yes, it does not work with latest driver, API, i will make it up-to-date 
and commit

Daniel Stasinski wrote:
> Before I begin hunting down a crash involving nsssl from cvs, are
> there any known issues?
> 
> The server loads with no errors but crashes on the first ssl page access.
> 
> ns_sectionns/server/default/module/nsssl
> ns_paramport443
> ns_paramaddress 192.168.0.10
> ns_paramhostnamesecure.server.com
> ns_paramcertificate
> /home/nsadmin/naviserver/servers/www.server.com/modules/nsssl/server.pem
> ns_paramciphers
> "ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP"
> ns_paramprotocols   "SSLv2, SSLv3, TLSv1"
> 
> Daniel
> 


-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
naviserver-devel mailing list
naviserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/naviserver-devel


Re: [naviserver-devel] nsssl crash

2008-05-05 Thread Vlad Seryakov
Fixed, i actually tested it only with the setup from README file, but it 
should not crash because of different openssl flags.

Daniel Stasinski wrote:
> Before I begin hunting down a crash involving nsssl from cvs, are
> there any known issues?
> 
> The server loads with no errors but crashes on the first ssl page access.
> 
> ns_sectionns/server/default/module/nsssl
> ns_paramport443
> ns_paramaddress 192.168.0.10
> ns_paramhostnamesecure.server.com
> ns_paramcertificate
> /home/nsadmin/naviserver/servers/www.server.com/modules/nsssl/server.pem
> ns_paramciphers
> "ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP"
> ns_paramprotocols   "SSLv2, SSLv3, TLSv1"
> 
> Daniel
> 


-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
naviserver-devel mailing list
naviserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/naviserver-devel


Re: [naviserver-devel] drop CVS (was: [AOLSERVER] nsdbi database driver interface 0.1)

2008-05-05 Thread Stephen Deasey
On Sat, May 3, 2008 at 2:01 PM, Vasiljevic Zoran <[EMAIL PROTECTED]> wrote:
>
> On 02.05.2008, at 21:50, Vlad Seryakov wrote:
>
>> Frankly, i would go from CVS to SVN/Mercurial/Git, whatever.
>> I still think SF CVS sucks, so i would switch anytime if my voice will
>> need to be counted:-)))
>
> It seems as I'm the only one advocating continued use of CVS...
> And I have a simple reason: I do not see any benefit undertaking
> this (abandond-CVS) effort. What is to be gained? Or, perhaps,
> whar is that we  are loosing by sticking to CVS?


I am too lazy to write that essay. You should try it out to see what
you're missing out on.  Here's a starter:


mkdir ~/in ~/co

hg clone http://freehg.org/u/groks/naviserver/  ~/in/naviserver

hg clone ~/in/naviserver  ~/co/ns-work

cd ~/co/ns-work

hg log -l 10


(I haven't updated the hg naviserver repo recently)


Try exporting some of your recent changes to the naviserver cvs repo
as patches, and then importing them to the hg repo.

Enable the mq Mercurial Queues extension:

# ~/.hgrc
[extensions]
mq=

Enable mq for your repo:

hg qinit

Import a few patches:

hg qimport ~/driver-send-recv.diff
hg qimport ~/nsjob-cancel.diff
hg qimport ~/nsjob-handle.diff
hg qimport ~/driver-send-recv-backout.diff
hg qimport ~/nsjob-errorcode.diff
hg qimport ~/nsjob-deadlock.diff

Check the repo:

hg log -l 10
hg outgoing

   hg help outgoing

You could imagine that this is what you actually did -- you committed
a handful of patches locally before pushing them to the public repo.
Because you haven't typed 'hg push', you can change your mind.

For example, you could completely remove the send-recv patches:

hg qpop -a
hg qdel driver-send-recv.diff
hg qdel driver-send-recv-backout.diff
hg qpush -a

hg qseries
hg log -l 5

hg serve -v


I think the big advantage is that you it encourages you to write
better patches and it encourages better collaboration. There are
technical benefits as there were with subversion over cvs, such as
renames and atomic commits, but they're not day-to-day important.
It's that it encourages you to write high quality patches because
you're not worried about merging in your changes before some one else
touches the same files, you can break large changes down into a series
of well commented changesets -- a patchest, and you can edit your
patches into something coherent before you push to every one else.

Give it a try.

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
naviserver-devel mailing list
naviserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/naviserver-devel


Re: [naviserver-devel] [AOLSERVER] nsdbi database driver interface 0.1

2008-05-05 Thread Stephen Deasey
On Fri, May 2, 2008 at 8:50 PM, Vlad Seryakov <[EMAIL PROTECTED]> wrote:
> Frankly, i would go from CVS to SVN/Mercurial/Git, whatever.
> I still think SF CVS sucks, so i would switch anytime if my voice will
> need to be counted:-)))
>
> The question i have, is freehg.org reliable and supposed to live long?
> On other hand SF is very popular and search engine favorite, not that
> popularity is my big concern though.


freehg.org was just a convenient place to publish.  I guess we would
put the repos on the sourceforge web space. Mercurial can run as a cgi
script front end to the repo for anonymous pulling and web browsing.
Commiters would push via ssh.

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
naviserver-devel mailing list
naviserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/naviserver-devel