Zypper package manager crash due to verbose logging

So I was running zypper -vvv dup and the application due to a libboost cast exception due to something related to the logging code:

Preload finished. [success (4.0 KiB/s) ] .................................................................................................................................................[done]
terminate called after throwing an instance of 'boost::wrapexcept<boost::bad_any_cast>'
  what():  boost::bad_any_cast: failed conversion using boost::any_cast

I resolved the issue by removing the -vvv

I will be honest, I despise the whole libboost project, it poses nothing but problems.

Hiya. Seems like it’s a known bug that is caused by using -vvv specifically. Using -vv shouldn’t cause it.

Try putting the -vvv at the end. So sudo zypper dup -vvv

Will be resolved in libzypp-17.37.4

3 Likes

I get this error instead:
The flag v is not known.

Looks like this one.
https://bugzilla.opensuse.org/show_bug.cgi?id=1239012

1 Like

here is the diff fixing the ordeal here: Fix wrong userdata parameter type when running zypp with debug verbosity (bsc#1239012) by bzeller · Pull Request #644 · openSUSE/libzypp · GitHub