On 11/16/2015 02:14 PM, Scott Kostyshak wrote:
On Mon, Nov 16, 2015 at 01:55:30PM -0500, Richard Heck wrote:
Recipe:

1. Open the User Guide.
2. Click somewhere in the main text.
3. Insert > Citation
4. Enter the search field and type "cap"
5. Hit search button.

Error: Software exception Detected
----------------------------------------
LyX has caught an exception, it will now attempt to save all unsaved
documents and exit.

Exception: regex_error

This is on Fedora 22, gcc 5.1.1, with configuration as:
--enable-build-type=dev.

The offending code is this assignment

         static const lyx::regex reg("[].|*?+(){}^$\\[\\\\]");

in escape_special_characters in GuiCitation.cpp. I would guess that this is
a consequence of changes to the regex engine.

Richard

I cannot reproduce on Ubuntu 15.04, built with 5.6dev and the following CMake 
flags:

-DCMAKE_INSTALL_PREFIX=/usr/local/lyx-master \
-DLYX_DEBUG=ON -DLYX_RELEASE=OFF -DLYX_CPACK=ON \
-DLYX_PROGRAM_SUFFIX=ON -DLYX_LOCALVERSIONING=ON \
-DCPACK_BINARY_RPM:BOOL=OFF -DCPACK_BINARY_DEB:BOOL=ON \
-DCPACK_BINARY_NSIS:BOOL=OFF -DCPACK_BINARY_STGZ:BOOL=OFF \
-DCPACK_BINARY_TGZ:BOOL=OFF -DCPACK_BINARY_TBZ2:BOOL=OFF \
-DCPACK_BINARY_TZ:BOOL=OFF -DCPACK_SOURCE_TBZ2:BOOL=OFF \
-DCPACK_SOURCE_TGZ:BOOL=ON -DCPACK_SOURCE_TZ:BOOL=OFF \
-DCPACK_SOURCE_ZIP:BOOL=OFF -DLYX_EXTERNAL_BOOST=OFF \
-DLYX_HUNSPELL=ON -DLYX_ENCHANT=ON -DLYX_NLS=ON \
-DLYX_ENABLE_CXX11=ON \
-DLYX_ENABLE_URLTESTS=ON \
-DLYX_ENABLE_EXPORT_TESTS=ON \
-DLYX_USE_QT=QT5 \

The choice of the regex engine in regex.h seems dependent upon a variety of factors. I'm not sure which one I'm getting.

I'll check this on other machines.

Richard

Reply via email to