Mailinglist Archive: yast-commit (494 mails)

< Previous Next >
[yast-commit] [yast/yast-xml] 0d26a2: Omit libxml2 memory cleanup to prevent a crash (bs...
Branch: refs/heads/SLE-12-SP3
Home: https://github.com/yast/yast-xml
Commit: 0d26a2258de4d65a2bf7d90dda607592d8bb4f63

https://github.com/yast/yast-xml/commit/0d26a2258de4d65a2bf7d90dda607592d8bb4f63
Author: Martin Vidner <mvidner@xxxxxxx>
Date: 2017-07-19 (Wed, 19 Jul 2017)

Changed paths:
M src/XmlAgent.cc

Log Message:
-----------
Omit libxml2 memory cleanup to prevent a crash (bsc#1047449)

Skipping the cleanup
- also skips some callbacks, but this agent does not use them
- leaks memory, but when this agent goes, so does the rest of the program

http://xmlsoft.org/html/libxml-parser.html#xmlCleanupParser says:

This function name is somewhat misleading. It does not clean up parser
state, it cleans up memory allocated by the library itself. It is a
cleanup function for the XML library. It tries to reclaim all related
global memory allocated for the library processing. It doesn't
deallocate any document related memory. One should call
xmlCleanupParser() only when the process has finished using the
library and all XML/HTML documents built with it. See also
xmlInitParser() which has the opposite function of preparing the
library for operations.

WARNING: if your application is multithreaded or has plugin support
calling this may crash the application if another thread or a plugin is
still using libxml2. It's sometimes very hard to guess if libxml2 is in
use in the application, some libraries or plugins may use it without
notice. In case of doubt abstain from calling this function or do it
just before calling exit() to avoid leak reports from valgrind !


Commit: 4d6449e925fd898b9731a95a099eb35ca1653aae

https://github.com/yast/yast-xml/commit/4d6449e925fd898b9731a95a099eb35ca1653aae
Author: Martin Vidner <mvidner@xxxxxxx>
Date: 2017-07-19 (Wed, 19 Jul 2017)

Changed paths:
M package/yast2-xml.changes
M package/yast2-xml.spec

Log Message:
-----------
version + changelog


Commit: 9ec9b92b59df740dec23bbbfb9366bfb4b2f2404

https://github.com/yast/yast-xml/commit/9ec9b92b59df740dec23bbbfb9366bfb4b2f2404
Author: Martin Vidner <mvidner@xxxxxxx>
Date: 2017-07-19 (Wed, 19 Jul 2017)

Changed paths:
M package/yast2-xml.spec

Log Message:
-----------
Used prepare_spec to normalize the spec file


Commit: 50d1582c6c35b881756d66e6cc5789151eb45ca6

https://github.com/yast/yast-xml/commit/50d1582c6c35b881756d66e6cc5789151eb45ca6
Author: Martin Vidner <martin@xxxxxxxxxx>
Date: 2017-07-19 (Wed, 19 Jul 2017)

Changed paths:
M package/yast2-xml.changes
M package/yast2-xml.spec
M src/XmlAgent.cc

Log Message:
-----------
Merge pull request #4 from yast/skip-memory-deallocation

Omit libxml2 memory cleanup to prevent a crash


Compare: https://github.com/yast/yast-xml/compare/78734dfb6abb...50d1582c6c35
< Previous Next >
This Thread