Description of problem: Start netgen-mesher from command line without arguments: -------------------------------- [matti@E-5520 ~]$ netgen-mesher terminate called after throwing an instance of 'std::invalid_argument' what(): stoi Aborted (core dumped) -------------------------------- Version-Release number of selected component: netgen-mesher-6.2.2101-2.fc34 Additional info: reporter: libreport-2.15.2 backtrace_rating: 4 cgroup: 0::/user.slice/user-1000.slice/user/app.slice/app-org.gnome.Terminal.slice/vte-spawn-5a4d6b0a-e814-4d96-8cb9-95e5af41ddd1.scope cmdline: netgen-mesher crash_function: std::__throw_invalid_argument executable: /usr/bin/netgen-mesher journald_cursor: s=30c0bf6ab0c94988b2d2ce564bad7944;i=3b11;b=d60da67aa2ce415baaa5420b0f6de741;m=1d08eda38;t=5c97de7a5235a;x=2c49c74eb5221de5 kernel: 5.13.8-200.fc34.x86_64 rootdir: / runlevel: N 5 type: CCpp uid: 1000 Truncated backtrace: Thread no. 1 (1 frames) #6 std::__throw_invalid_argument at ../../../../../libstdc++-v3/src/c++11/functexcept.cc:78
Created attachment 1813956 [details] File: backtrace
Created attachment 1813957 [details] File: core_backtrace
Created attachment 1813958 [details] File: cpuinfo
Created attachment 1813959 [details] File: dso_list
Created attachment 1813960 [details] File: environ
Created attachment 1813961 [details] File: limits
Created attachment 1813962 [details] File: maps
Created attachment 1813963 [details] File: mountinfo
Created attachment 1813964 [details] File: open_fds
Created attachment 1813965 [details] File: proc_pid_status
This problem arises from the cmake code that determines the version generating malformed output. The malformed version information ends up in /usr/include/netgen-mesher/include/netgen_version.hpp as well as compiled in. On startup, netgen attempts to parse its own version info and crashes. The core problem is that the fallback version identifier, in addition to being wrong, is malformed. Line 20 of cmake/generate_version_file.cmake gives a default string of "v6.2.0.0" whereas the subsequent parsing code assumes a structure similar to "v6.2.0-0-0" with the last two numbers representing tweak and git version. Replacing the default version with the (correctly formatted) correct version solves the problem. The attached patch does this. Perhaps a better solution would be to use a full archive with .git version control rather than a snapshot, in which case the automatic version identification ought to work.
Created attachment 1852655 [details] This patch solves the problem by inserting the correct and correctly formatted version
FEDORA-2022-fb4b717747 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2022-fb4b717747
FEDORA-2022-fb4b717747 has been pushed to the Fedora 35 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-fb4b717747` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-fb4b717747 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2022-fb4b717747 has been pushed to the Fedora 35 stable repository. If problem still persists, please make note of it in this bug report.