proposed-migration for collectd 5.12.0-17.1build1

Bug #2058966 reported by Steve Langasek
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
collectd (Ubuntu)
Fix Released
Undecided
Unassigned
openjdk-21 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

collectd 5.12.0-17.1build1 is built in -proposed but not on armhf. This will not block migration because armhf binaries are being removed from the release pocket, but unless addressed will regress armhf availability of this package in 24.04 LTS.

Revision history for this message
Dan Bungert (dbungert) wrote :

 libelf1t64 : Breaks: libelf1 (< 0.190-1.1build3) but 0.190-1 is to be installed
https://launchpadlibrarian.net/723252802/buildlog_ubuntu-noble-armhf.collectd_5.12.0-17.1build2_BUILDING.txt.gz

Changed in collectd (Ubuntu):
status: New → Confirmed
Revision history for this message
Steve Langasek (vorlon) wrote :

current log doesn't show this, now gets a configure error

Revision history for this message
Dan Bungert (dbungert) wrote :

Hiding under that is the following:
checking for JNI_CreateJavaVM in -ljvm... no
...
    java . . . . . . . . no (Symbol 'JNI_CreateJavaVM' not found) (dependency error)
...
configure: error: "Some plugins are missing dependencies - see the summary above for details"
https://launchpadlibrarian.net/723859013/buildlog_ubuntu-noble-armhf.collectd_5.12.0-17.1build2_BUILDING.txt.gz

Revision history for this message
Dan Bungert (dbungert) wrote :

/usr/bin/ld: /usr/lib/jvm/default-java/lib/server/libjvm.so: undefined reference to `_Copy_conjoint_bytes'

Revision history for this message
Vladimir Petko (vpa1977) wrote :

$ readelf -s /usr/lib/jvm/default-java/lib/server/libjvm.so | grep _Copy
    84: 00000000 0 FUNC GLOBAL DEFAULT UND _Copy_conjoint_bytes
 54701: 00711f19 480 FUNC LOCAL DEFAULT 12 Unsafe_CopyMemory0
 54716: 00712a79 536 FUNC LOCAL DEFAULT 12 Unsafe_CopySwapM[...]
 64467: 0051c174 0 FUNC LOCAL DEFAULT 12 _Copy_conjoint_j[...]
 66578: 0051bd70 0 FUNC LOCAL DEFAULT 12 _Copy_disjoint_words
 69023: 0051c178 0 FUNC LOCAL DEFAULT 12 _Copy_arrayof_co[...]
 73507: 0051bde8 0 FUNC LOCAL DEFAULT 12 _Copy_conjoint_words
 82170: 0051bed8 0 FUNC LOCAL DEFAULT 12 _Copy_conjoint_j[...]
 90889: 0051c174 0 FUNC LOCAL DEFAULT 12 _Copy_arrayof_co[...]
 91117: 0051bd6c 0 FUNC LOCAL DEFAULT 12 _Copy_arrayof_co[...]
 91297: 0051c170 0 FUNC LOCAL DEFAULT 12 _Copy_arrayof_co[...]
 92855: 0051c178 0 FUNC LOCAL DEFAULT 12 _Copy_conjoint_j[...]
 96326: 0048f9f1 16 FUNC LOCAL DEFAULT 12 ___Copy_conjoint[...]
 96330: 0048fa01 16 FUNC LOCAL DEFAULT 12 ___Copy_conjoint[...]
 96334: 0048fa11 16 FUNC LOCAL DEFAULT 12 ___Copy_conjoint[...]
 96338: 0048fa21 16 FUNC LOCAL DEFAULT 12 ___Copy_disjoint[...]
 96346: 0076a719 16 FUNC LOCAL DEFAULT 12 ___Copy_conjoint[...]
 96350: 0076a729 16 FUNC LOCAL DEFAULT 12 ___Copy_disjoint[...]
 96354: 0076a739 16 FUNC LOCAL DEFAULT 12 ___Copy_conjoint[...]
 96362: 0076a759 16 FUNC LOCAL DEFAULT 12 ___Copy_conjoint[...]
 96657: 00000000 0 FUNC GLOBAL DEFAULT UND _Copy_conjoint_bytes

Rest of the copy routines are declared as LOCAL.

This is caused by the following upstream commit:
commit 76477f8cdbc012f7ff0670ad57067ebf304612a0
Author: Coleen Phillimore <email address hidden>
Date: Mon Jan 10 14:34:04 2022 +0000

    8142362: Lots of code duplication in Copy class

    Reviewed-by: kvn, hseigel

It removed the function implementation but left a declaration in src/hotspot/os_cpu/linux_arm/linux_arm_32.S
----
    .globl _Copy_conjoint_bytes
    .type _Copy_conjoint_bytes, %function
----

Revision history for this message
Vladimir Petko (vpa1977) wrote :

Reproducer:
---
#include <jni.h>

int main(){
    JavaVM *jvm; /* denotes a Java VM */
    JNIEnv *env; /* pointer to native method interface */
    JavaVMInitArgs vm_args; /* JDK/JRE 6 VM initialization arguments */
    JavaVMOption* options = new JavaVMOption[1];
    options[0].optionString = "-Djava.class.path=/usr/lib/java";
    vm_args.version = JNI_VERSION_1_6;
    vm_args.nOptions = 1;
    vm_args.options = options;
    vm_args.ignoreUnrecognized = false;
    /* load and initialize a Java VM, return a JNI interface
     * pointer in env */
    JNI_CreateJavaVM(&jvm, (void**)&env, &vm_args);
}
---

g++ test.cpp -I/usr/lib/jvm/default-java/include -I/usr/lib/jvm/default-java/include/linux -L/usr/lib/jvm/default-java/lib/server -ljvm

Revision history for this message
Vladimir Petko (vpa1977) wrote :

The issue is not a backport[1] and was always present on armhf in openjdk-21.
I have raised an upstream bug for it[2]

[1] https://bugs.openjdk.org/browse/JDK-8142362
[2] https://bugs.openjdk.org/browse/JDK-8329983

Revision history for this message
Steve Langasek (vorlon) wrote :

removing collectd/armhf to unblock NBS removals.

Changed in collectd (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Vladimir Petko (vpa1977) wrote :
Changed in openjdk-21 (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.