Re: [naviserver-devel] Crash in x64 mode in Ns_Log

2007-10-12 Thread Vlad Seryakov
I use ns_log or Ns_Log, so it should take care about it, it ends up in Ns_DStringPrintf which calls vsnprintf. Is it correct in x64 to pass *va_list? Ns_VALog(Ns_LogSeverity severity, CONST char *fmt, va_list *vaPtr) Gustaf Neumann wrote: > be sure to terminate va_* argument lists with NULL (o

Re: [naviserver-devel] Crash in x64 mode in Ns_Log

2007-10-12 Thread Gustaf Neumann
be sure to terminate va_* argument lists with NULL (or to be on the safe side with (char*)NULL) and not with 0. when you have sizeof(int) != sizeof(char *), the compiler will put a 32bit for 0, a comparison with a 64bit null pointer will fail. I am pretty sure, the vsnprintf() tries to write

Re: [naviserver-devel] ns_config read/write

2007-10-12 Thread Vlad Seryakov
In it will not hurt performance when constantly asking for config parameter with locking i am fine with it. Can be also compile time option for configure Vasiljevic Zoran wrote: > So: > > >The configuration is global and read-only. Parameters may be > retrieved at >run-time using [cm

[naviserver-devel] Crash in x64 mode in Ns_Log

2007-10-12 Thread Vlad Seryakov
Hi, This is an example when it crashes inside vsnprintf, experimenting i found that issuing long unknown command crashes as well. In my case i noticed that trying to log long lines does not work as well. In x32 everything works fine db:vlad[18:01:19]#uname -a Linux db 2.6.22-ARCH #1 SMP PREEM

[naviserver-devel] ns_config read/write

2007-10-12 Thread Vasiljevic Zoran
So: The configuration is global and read-only. Parameters may be retrieved at run-time using [cmd ns_config], although usually configuration parameters are used by Tcl library files at start-up. I submitted a patch/module to RFE section since some time already, that implements the c