Bug 1993574 - [abrt] netgen-mesher: std::__throw_invalid_argument(): netgen-mesher killed by SIGABRT
Summary: [abrt] netgen-mesher: std::__throw_invalid_argument(): netgen-mesher killed b...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: netgen-mesher
Version: 34
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Sandro Mani
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:a7f344feef517d2cca3048f517c...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-08-14 05:43 UTC by Matti Lehti
Modified: 2022-02-07 01:16 UTC (History)
3 users (show)

Fixed In Version: netgen-mesher-6.2.2105-3.fc35
Doc Type: ---
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-02-07 01:16:06 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (32.15 KB, text/plain)
2021-08-14 05:43 UTC, Matti Lehti
no flags Details
File: core_backtrace (4.22 KB, text/plain)
2021-08-14 05:43 UTC, Matti Lehti
no flags Details
File: cpuinfo (2.23 KB, text/plain)
2021-08-14 05:43 UTC, Matti Lehti
no flags Details
File: dso_list (698 bytes, text/plain)
2021-08-14 05:44 UTC, Matti Lehti
no flags Details
File: environ (3.68 KB, text/plain)
2021-08-14 05:44 UTC, Matti Lehti
no flags Details
File: limits (1.29 KB, text/plain)
2021-08-14 05:44 UTC, Matti Lehti
no flags Details
File: maps (3.93 KB, text/plain)
2021-08-14 05:44 UTC, Matti Lehti
no flags Details
File: mountinfo (2.43 KB, text/plain)
2021-08-14 05:44 UTC, Matti Lehti
no flags Details
File: open_fds (143 bytes, text/plain)
2021-08-14 05:44 UTC, Matti Lehti
no flags Details
File: proc_pid_status (1.39 KB, text/plain)
2021-08-14 05:44 UTC, Matti Lehti
no flags Details
This patch solves the problem by inserting the correct and correctly formatted version (425 bytes, patch)
2022-01-22 06:58 UTC, Steve Holland
no flags Details | Diff

Description Matti Lehti 2021-08-14 05:43:52 UTC
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

Comment 1 Matti Lehti 2021-08-14 05:43:56 UTC
Created attachment 1813956 [details]
File: backtrace

Comment 2 Matti Lehti 2021-08-14 05:43:58 UTC
Created attachment 1813957 [details]
File: core_backtrace

Comment 3 Matti Lehti 2021-08-14 05:43:59 UTC
Created attachment 1813958 [details]
File: cpuinfo

Comment 4 Matti Lehti 2021-08-14 05:44:00 UTC
Created attachment 1813959 [details]
File: dso_list

Comment 5 Matti Lehti 2021-08-14 05:44:02 UTC
Created attachment 1813960 [details]
File: environ

Comment 6 Matti Lehti 2021-08-14 05:44:04 UTC
Created attachment 1813961 [details]
File: limits

Comment 7 Matti Lehti 2021-08-14 05:44:06 UTC
Created attachment 1813962 [details]
File: maps

Comment 8 Matti Lehti 2021-08-14 05:44:07 UTC
Created attachment 1813963 [details]
File: mountinfo

Comment 9 Matti Lehti 2021-08-14 05:44:08 UTC
Created attachment 1813964 [details]
File: open_fds

Comment 10 Matti Lehti 2021-08-14 05:44:10 UTC
Created attachment 1813965 [details]
File: proc_pid_status

Comment 11 Steve Holland 2022-01-22 06:56:56 UTC
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.

Comment 12 Steve Holland 2022-01-22 06:58:25 UTC
Created attachment 1852655 [details]
This patch solves the problem by inserting the correct and correctly formatted version

Comment 13 Fedora Update System 2022-01-28 17:55:43 UTC
FEDORA-2022-fb4b717747 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2022-fb4b717747

Comment 14 Fedora Update System 2022-01-30 01:14:24 UTC
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.

Comment 15 Fedora Update System 2022-02-07 01:16:06 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.