Description of problem: Steps to Reproduce: 1. Build Outpost ship 2. Deploy the outpost on some planet 3. Click on pull-down icon in outpost detail window ( prod/research/trade/supply where all 4 values are 0 ) Actual results: SIGABRT Expected results: Open pull-down window Version-Release number of selected component: freeorion-0.4.6-5.fc25 Additional info: reporter: libreport-2.8.0 backtrace_rating: 4 cmdline: freeorion crash_function: std::__throw_length_error environ: executable: /usr/bin/freeorion global_pid: 24740 kernel: 4.9.4-201.fc25.x86_64 open_fds: pkg_fingerprint: 4089 D8F2 FDB1 9C98 pkg_vendor: Fedora Project runlevel: N 5 type: CCpp uid: 1000 Truncated backtrace: Thread no. 1 (10 frames) #6 std::__throw_length_error at ../../../../../libstdc++-v3/src/c++11/functexcept.cc:86 #7 std::vector<float, std::allocator<float> >::reserve at /usr/include/c++/6.3.1/bits/vector.tcc:69 #8 GG::GLClientAndServerBufferBase<float>::reserve at /usr/src/debug/src-tarball/GG/src/GLClientAndServerBuffer.cpp:63 #9 MultiMeterStatusBar::Render at /usr/src/debug/src-tarball/UI/MultiMeterStatusBar.cpp:131 #10 GG::GUI::RenderWindow at /usr/src/debug/src-tarball/GG/src/GUI.cpp:1559 #15 GG::GUI::Render at /usr/src/debug/src-tarball/GG/src/GUI.cpp:1651 #16 GG::EventPumpBase::LoopBody at /usr/src/debug/src-tarball/GG/src/EventPump.cpp:75 #17 GG::ModalEventPump::operator() at /usr/src/debug/src-tarball/GG/src/EventPump.cpp:108 #18 GG::SDLGUI::Run at /usr/src/debug/src-tarball/GG/src/SDL/SDLGUI.cpp:874 #19 mainSetupAndRun at /usr/src/debug/src-tarball/client/human/chmain.cpp:284
Created attachment 1244075 [details] File: backtrace
Created attachment 1244076 [details] File: cgroup
Created attachment 1244077 [details] File: core_backtrace
Created attachment 1244078 [details] File: dso_list
Created attachment 1244079 [details] File: limits
Created attachment 1244080 [details] File: maps
Created attachment 1244081 [details] File: mountinfo
Created attachment 1244082 [details] File: namespaces
Created attachment 1244083 [details] File: proc_pid_status
Created attachment 1244084 [details] File: var_log_messages
*** Bug 1412831 has been marked as a duplicate of this bug. ***
I tracked this down to GG/src/GLClientAndServerBuffer.cpp:63. There is a call (UI/MultiMeterStatusBar.cpp:131) to this function (GLClientAndServerBuffer::reserve) that passes a signed int -1. vector::reserve accepts a type size_type, which is an unsigned int. This signed -1 gets implicitly cast to an unsigned int and overflows, so vector::reserve is actually trying to allocate 18446744073709551615. This throws the length_error since it's larger than max_size() (4611686018427387903). (lldb) p bar_verts.b_data.max_size() (size_type) $5 = 4611686018427387903 (lldb) p (size_type) num_segments - 1 (unsigned long) $6 = 18446744073709551615 This looks like an upstream bug. I'll construct a patch and submit a bug report to upstream.
freeorion-0.4.6-7.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-1af933c890
freeorion-0.4.6-7.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2017-8fd19d638c
freeorion-0.4.6-7.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-8fd19d638c
freeorion-0.4.6-7.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-1af933c890
freeorion-0.4.6-7.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.
freeorion-0.4.6-7.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.