This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PostgreSQL: initdb fails with v7.4.2 - postmaster fork error with v7.4.1


On Thu, 17 Jun 2004, Natalie Menk wrote:

> --- Igor Pechtchanski <pechtcha@XX.XXX.XXX> wrote:

<http://cygwin.com/acronyms/#PCYMTNQREAIYR>.

> > On Thu, 17 Jun 2004, Natalie Menk wrote:
> >
> > > [...initdb fails with postgresql 7.4.2]
> > >
> >       o build against cygserver instead of cygipc
> >   [...] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
> I build cyserver instead of cygipc and initdb works.

Huh?  You didn't need to build anything -- just start the cygserver daemon
instead of ipc-daemon2...  Did you actually read the README?

> Now I get nearly the same fork errror message under postgresql 7.4.2
> while starting postmaster.
> It looks like this:
> --------------------------
> n@n ~
> $ CYGWIN=server postmaster -D edge_inline -h localhost -i
> WARNING:  dup(0) failed after 3195 successes: Bad file descriptor
> C:\cygwin\bin\postgres.exe (2164): *** fork: can't reserve memory for stack 0x30000 - 0x230000, Win32 error 487
>       5 [main] postmaster 3336 proc_subproc: Couldn't duplicate my handle<0x7F4> for pid 2164, Win32 error 5
>     396 [main] postmaster 3336 sync_with_child: child 2164(0x668) died before in itialization with status code 0x1
>     517 [main] postmaster 3336 sync_with_child: *** child state waiting for longjmp
> LOG:  could not fork statistics buffer: Resource temporarily unavailable
>   27885 [main] postmaster 3336 fork_copy: linked dll data/bss pass 0 failed, 0x77B000..0x787880, done 0, windows pid 3780, Win32 error 487
> LOG:  could not fork startup process: Resource temporarily unavailable
> -----------------------------------
> [...]
> >
> > As for your fork error, try Googling for the exact error message --
> > there
> > are plenty of threads on the subject.
> >       Igor
>
> I coulnd't find something helpful with Google, googling for the exact
> error message or parts from it. Because of that I'm asking here.
>
> Thanks for helping,
> Natalie

That's pretty strange.  I've got at least 2 relevant hits with things to
try:
<http://google.com/search?q=cygwin+%22win32+error+487%22+%22can%27t+reserve+memory+for+stack%22>
(the "things to try" mentioned there are updating Windows and rebasing).
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]