Обсуждение: pg_restore segfault with pg-CVS
Current pg_restore segfaults. Manually fault seems to happen at (*AH->ClosePtr) (AH) in pg_backup_archiver.c/CloseArchive(Archive *) --strk;
At 06:55 PM 14/09/2004, strk wrote: >Current pg_restore segfaults. You might need to give a little more information; does it only segfault for a specific DB? Does it segfault for a trivial empty DB? Can you construct a minimal example? ---------------------------------------------------------------- Philip Warner | __---_____ Albatross Consulting Pty. Ltd. |----/ - \ (A.B.N. 75 008 659 498) | /(@) ______---_ Tel: (+61) 0500 83 82 81 | _________ \ Fax: (+61) 03 5330 3172 | ___________ | Http://www.rhyme.com.au | / \| | --________-- PGP key available upon request, | / and from pgp.mit.edu:11371 |/
On Tue, Sep 14, 2004 at 10:45:16PM +1000, Philip Warner wrote: > At 06:55 PM 14/09/2004, strk wrote: > >Current pg_restore segfaults. > > You might need to give a little more information; does it only segfault for > a specific DB? Does it segfault for a trivial empty DB? Can you construct a > minimal example? Trying to make minimal example I found out it's pg_dump too. Example:$ pg_dump template1...Segmentation Fault --strk; > > > ---------------------------------------------------------------- > Philip Warner | __---_____ > Albatross Consulting Pty. Ltd. |----/ - \ > (A.B.N. 75 008 659 498) | /(@) ______---_ > Tel: (+61) 0500 83 82 81 | _________ \ > Fax: (+61) 03 5330 3172 | ___________ | > Http://www.rhyme.com.au | / \| > | --________-- > PGP key available upon request, | / > and from pgp.mit.edu:11371 |/
strk <strk@keybit.net> writes: > Trying to make minimal example I found out it's pg_dump too. > Example: > $ pg_dump template1 > ... > Segmentation Fault You've got a broken build then, or a platform-specific problem. Check shared library linkage, maybe? regards, tom lane
On Tue, Sep 14, 2004 at 10:55:46AM -0400, Tom Lane wrote: > strk <strk@keybit.net> writes: > > Trying to make minimal example I found out it's pg_dump too. > > Example: > > $ pg_dump template1 > > ... > > Segmentation Fault > > You've got a broken build then, or a platform-specific problem. > Check shared library linkage, maybe? > > regards, tom lane Yup. Was mismatching binary/library. Thanks to all. --strk;