2024-02-03 23:01:01 |
dann frazier |
bug |
|
|
added bug |
2024-02-03 23:01:10 |
dann frazier |
nominated for series |
|
Ubuntu Jammy |
|
2024-02-03 23:01:10 |
dann frazier |
bug task added |
|
cmake (Ubuntu Jammy) |
|
2024-02-03 23:01:17 |
dann frazier |
cmake (Ubuntu): status |
New |
Fix Released |
|
2024-02-03 23:01:20 |
dann frazier |
cmake (Ubuntu Jammy): assignee |
|
dann frazier (dannf) |
|
2024-02-03 23:01:25 |
dann frazier |
cmake (Ubuntu Jammy): status |
New |
In Progress |
|
2024-02-03 23:04:34 |
dann frazier |
nominated for series |
|
Ubuntu Mantic |
|
2024-02-03 23:04:34 |
dann frazier |
bug task added |
|
cmake (Ubuntu Mantic) |
|
2024-02-03 23:04:34 |
dann frazier |
nominated for series |
|
Ubuntu Noble |
|
2024-02-03 23:04:34 |
dann frazier |
bug task added |
|
cmake (Ubuntu Noble) |
|
2024-02-03 23:04:44 |
dann frazier |
cmake (Ubuntu Mantic): status |
New |
Fix Released |
|
2024-02-03 23:05:00 |
dann frazier |
attachment added |
|
gdb-backtrace.txt https://bugs.launchpad.net/ubuntu/+source/cmake/+bug/2052360/+attachment/5744465/+files/gdb-backtrace.txt |
|
2024-02-04 19:10:42 |
dann frazier |
description |
[Impact]
cmake-extra's copyrighttest autopkgtest segfaults on armhf in our test infra:
https://objectstorage.prodstack5.canonical.com/swift/v1/0f9aae918d5b4744bf7b827671c86842/autopkgtest-jammy/jammy/armhf/c/cmake-extras/20240118_231525_552d3@/log.gz
This is because /proc/cpuinfo appears to be empty, which triggers an underflow condition. This doesn't impact all architectures - it may be limited to armhf containers running on arm64 hosts.
This presumably impacts the building of any software using the CopyrightTest module provided by cmake-extra in a similar environment.
[Test Case]
Launch an armhf lxd jammy container and run the autopkgtest for cmake-extras within:
ubuntu@armhf:~/cmake-extras-1.6$ ./debian/tests/copyrighttest
+ set -ep
+ mktemp --tmpdir=/tmp -d
+ builddir=/tmp/tmp.106fU16BhF
+ trap rm -rf /tmp/tmp.106fU16BhF 0 INT QUIT ABRT PIPE TERM
+ pwd
+ srcdir=/home/ubuntu/cmake-extras-1.6/examples/copyrighttest-demo
+ cd /tmp/tmp.106fU16BhF
+ cmake /home/ubuntu/cmake-extras-1.6/examples/copyrighttest-demo
-- The C compiler identification is GNU 11.4.0
-- The CXX compiler identification is GNU 11.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
terminate called after throwing an instance of 'std::length_error'
what(): basic_string::_M_replace_aux
Aborted (core dumped)
+ rm -rf /tmp/tmp.106fU16BhF
ubuntu@armhf:~/cmake-extras-1.6$
[What Could Go Wrong]
Perhaps there is some evil AI out there that only has access to lxd containers for building its self-generated code. That AI could also be somehow bound to rules held over from its corporate origins that require it avoid violating human IP laws, and it therefore always does a scan using cmake-extras' CopyrightTestConfig module. This segfault could then have been the only thing standing in its way from achieving its world domination plans. |
[Impact]
cmake-extra's copyrighttest autopkgtest segfaults on armhf in our test infra:
https://objectstorage.prodstack5.canonical.com/swift/v1/0f9aae918d5b4744bf7b827671c86842/autopkgtest-jammy/jammy/armhf/c/cmake-extras/20240118_231525_552d3@/log.gz
This is because /proc/cpuinfo appears to be empty, which triggers an underflow condition. This doesn't impact all architectures - it may be limited to armhf containers running on arm64 hosts.
This presumably impacts the building of any software using the CopyrightTest module provided by cmake-extra in a similar environment.
[Test Case]
Launch an armhf lxd jammy container and run the autopkgtest for cmake-extras within:
ubuntu@armhf:~/cmake-extras-1.6$ ./debian/tests/copyrighttest
+ set -ep
+ mktemp --tmpdir=/tmp -d
+ builddir=/tmp/tmp.106fU16BhF
+ trap rm -rf /tmp/tmp.106fU16BhF 0 INT QUIT ABRT PIPE TERM
+ pwd
+ srcdir=/home/ubuntu/cmake-extras-1.6/examples/copyrighttest-demo
+ cd /tmp/tmp.106fU16BhF
+ cmake /home/ubuntu/cmake-extras-1.6/examples/copyrighttest-demo
-- The C compiler identification is GNU 11.4.0
-- The CXX compiler identification is GNU 11.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
terminate called after throwing an instance of 'std::length_error'
what(): basic_string::_M_replace_aux
Aborted (core dumped)
+ rm -rf /tmp/tmp.106fU16BhF
ubuntu@armhf:~/cmake-extras-1.6$
[What Could Go Wrong]
The upstream fix now emits an errors message when an empty /proc/cpuinfo file is found. This error message is not expected by cmake's built-in tests, causing those tests to fail. It may impact other tests as well. Though it should only be emitted in environments where cmake would otherwise crash. |
|
2024-02-14 14:05:56 |
Robie Basak |
cmake (Ubuntu Jammy): status |
In Progress |
Fix Committed |
|
2024-02-14 14:05:56 |
Robie Basak |
bug |
|
|
added subscriber Ubuntu Stable Release Updates Team |
2024-02-14 14:05:59 |
Robie Basak |
bug |
|
|
added subscriber SRU Verification |
2024-02-14 14:06:07 |
Robie Basak |
tags |
|
verification-needed verification-needed-jammy |
|
2024-02-20 18:44:05 |
dann frazier |
tags |
verification-needed verification-needed-jammy |
verification-done verification-done-jammy |
|
2024-02-22 21:33:34 |
Launchpad Janitor |
cmake (Ubuntu Jammy): status |
Fix Committed |
Fix Released |
|
2024-02-22 21:33:34 |
Launchpad Janitor |
cve linked |
|
2022-39253 |
|
2024-02-22 21:33:38 |
Andreas Hasenack |
removed subscriber Ubuntu Stable Release Updates Team |
|
|
|