Re: [Firebird-devel] Semantics of release

2011-05-18 Thread Alex Peshkoff
 On 05/16/11 21:00, Vlad Khorsun wrote:

 We can introduce some special mode to report such errors using exceptions,
 or write message into log, or even provide callback for debugging purposes.

 But Adriano's question was about *semantics*. So, do you agree with me 
 that
 explicit detach() must be called by good code and not just release() ? And 
 that
 call of release() when refCount == 1 is a bug in caller's code ?

 Regards,
 Vlad

 --
 Achieve unprecedented app performance and reliability
 What every C/C++ and Fortran developer should know.
 Learn how Intel has extended the reach of its next-generation tools
 to help boost performance applications - inlcuding clusters.
 http://p.sf.net/sfu/intel-dev2devmay
 Firebird-Devel mailing list, web interface at 
 https://lists.sourceforge.net/lists/listinfo/firebird-devel




--
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel


Re: [Firebird-devel] [pkg-firebird-general] Bug#626931: Bug#626931: Bug#626931: FTBFS on GNU/Hurd

2011-05-18 Thread Alex Peshkoff
 Hi, Marius!
 We need a new define for hurd

Do you need help in creating prefix.hurd_i386 file?

 afther we undefine LINUX that part compiles but i hit another issues
 that i found it to be in haikuos too

 g++ -I../src/include/gen -I../src/include -I../src/vulcan -DNAMESPACE=Vulcan 
 -gg
db -p -Wall
 -Wno-switch -DLINUX -pipe -MMD -fPIC -DFB_SEND_FLAGS=MSG_NOSIGNAL -D

A bit strange that I once again see -DLINUX here.

DEV_BUILD
 -pthread -DBOOT_BUILD -pthread -fno-rtti -c ../src/jrd/os/posix/isc_ip
c.cpp -o
 ../temp/boot/jrd/isc_ipc.o

 ../src/jrd/os/posix/isc_ipc.cpp: In function 'bool isc_signal2(int,
 FPTR_VOID, v
oid*, ULONG)':

 ../src/jrd/os/posix/isc_ipc.cpp:187:31: error: 'SA_SIGINFO' was not
 declared in
this scope

 ../src/jrd/os/posix/isc_ipc.cpp: In function 'void
 ISC_signal_cancel(int, FPTR_V
OID_PTR,
 void*)':


 http://mapopa.blogspot.com/2010/06/firebird-database-porting-progress-on.html

 ps here is one kvm-linux, qemu image that can be used

Sorry, now I do not have enough free time to experiment with hurd myself.
But will always be glad to help with advice.


--
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel


Re: [Firebird-devel] Semantics of release

2011-05-18 Thread Alex Peshkoff
 On 05/17/11 19:34, Adriano dos Santos Fernandes wrote:
 On 17/05/2011 04:05, Alex Peshkoff wrote:
 In FB2.5 yValve did not need any more MT-safeness except provided by
 atomic counters and some helper locks like hanlers' map RwLock.
 Initially I've planned to keep same approach for FB3. But I did not
 review latest Adriano's changes from this POV.

 I already show you that 2.5 yvalve is not thread safe. Once more.

 How do you expect this code to work concurrently?

 --
  Statement statement = translateCStatement(stmt_handle);

  statement-checkPrepared();
  sqlda_sup::dasup_clause clause = 
 statement-das.dasup_clauses[DASUP_CLAUSE_select];

  if (clause.dasup_info_len  clause.dasup_info_buf)
  {
  iterative_sql_info(status,
  stmt_handle,
  sizeof(describe_select_info),
  describe_select_info,
  clause.dasup_info_len,
  clause.dasup_info_buf,
  dialect,
  sqlda);
  }
 --

 Accessing same memory, extending internal buffers, etc.

Good point, but I did not mean abuse of API. I only wanted to say that
under normal circumstances there are no race conditions that may cause
server to segfault/hang.


--
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel


Re: [Firebird-devel] Cannot connect (errors on firebird.log)

2011-05-18 Thread Alex Peshkoff
 On 05/18/11 16:07, Leonardo M. Ramé wrote:
 Sorry for cross posting, I asked this in firebird-support but I got no answer 
 so far.

 I recently installed Firebird 2.5 on a FreeBSD, it was running ok
 until this moring when suddendly it stopped accepting connections.

 The server runs via inetd.

 Here is a copy of the last lines of firebird.log:

 ---
 server.rame.local Tue May 17 16:15:33 2011
   ISC_event_wait: semop failed with errno =3D 22


 server.rame.local Tue May 17 16:15:33 2011
   create_semaphores failed:
   operating system directive semget failed
   No space left on device


 server.rame.local Tue May 17 16:15:33 2011
   ISC_event_wait: semop failed with errno =3D 22


 server.rame.local Tue May 17 16:15:33 2011
   create_semaphores failed:
   operating system directive semget failed
   No space left on device

Should rebuild kernel with more SysV semaphores.


--
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel


Re: [Firebird-devel] Cannot connect (errors on firebird.log)

2011-05-18 Thread Leonardo M . Ramé
--- On Wed, 5/18/11, Alex Peshkoff peshk...@mail.ru wrote:

 From: Alex Peshkoff peshk...@mail.ru
 Subject: Re: [Firebird-devel] Cannot connect (errors on firebird.log)
 To: firebird-devel@lists.sourceforge.net
 Date: Wednesday, May 18, 2011, 9:34 AM
  On 05/18/11 16:07, Leonardo M. Ramé
 wrote:
  Sorry for cross posting, I asked this in
 firebird-support but I got no answer so far.
 
  I recently installed Firebird 2.5 on a FreeBSD, it was
 running ok
  until this moring when suddendly it stopped accepting
 connections.
 
  The server runs via inetd.
 
  Here is a copy of the last lines of firebird.log:
 
  ---
  server.rame.local Tue May 17 16:15:33 2011
    ISC_event_wait: semop failed with
 errno =3D 22
 
 
  server.rame.local Tue May 17 16:15:33 2011
    create_semaphores failed:
    operating system directive semget
 failed
    No space left on device
 
 
  server.rame.local Tue May 17 16:15:33 2011
    ISC_event_wait: semop failed with
 errno =3D 22
 
 
  server.rame.local Tue May 17 16:15:33 2011
    create_semaphores failed:
    operating system directive semget
 failed
    No space left on device
 
 Should rebuild kernel with more SysV semaphores.
 

Thanks, I have to add that I'm using inetd instead of running the process on 
boot. Do you think the situation will improve if I run the server as a service 
instead of inetd?

Leonardo M. Ramé
http://leonardorame.blogspot.com


--
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel