Re: [BUGS] BUG #14584: Segmentation fault importing large XML file - Mailing list pgsql-bugs

From Jorge Solórzano
Subject Re: [BUGS] BUG #14584: Segmentation fault importing large XML file
Date
Msg-id CA+cVU8M2FuK3XrHRSypW1y3gk+xgGjAgrT0k+sLVWsRJsW=3+A@mail.gmail.com
Whole thread Raw
In response to Re: [BUGS] BUG #14584: Segmentation fault importing large XML file  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: [BUGS] BUG #14584: Segmentation fault importing large XML file  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
Let's assume that the bug is in libxml2, should postgres crash or should it have some kind of protection against it?

Yeah.  The segfault is inside xmlParserPrintFileContext(), so really there
is at least one libxml2 bug here and possibly two.  Maybe it should have
been able to cope with such large input, or maybe not, but for sure its
printing functions should have been able to cope with the state at the
time the error was reported.

I don't think there's much we can do about it; you need to report this
to the libxml2 folk.

                        regards, tom lane

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: [BUGS] BUG #14584: Segmentation fault importing large XML file
Next
From: Tom Lane
Date:
Subject: Re: [BUGS] BUG #14584: Segmentation fault importing large XML file