Bug#1062702: libomp-dev: Program which has run for ten years crashed after distribution upgrade

William Melgaard piobair at mindspring.com
Fri Feb 2 19:02:49 GMT 2024


Package: libomp-dev
Version: 1:14.0-55.7~deb12u1
Severity: grave
Justification: renders package unusable
X-Debbugs-Cc: piobair at mindspring.com

Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?
   * What exactly did you do (or not do) that was effective (or
     ineffective)?
   * What was the outcome of this action?
   * What outcome did you expect instead?

*** End of the template - remove these template lines ***


-- System Information:
Debian Release: 12.4
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-13-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages libomp-dev depends on:
ii  libomp-14-dev  1:14.0.6-12

libomp-dev recommends no packages.

libomp-dev suggests no packages.

-- no debconf information
Program containing omp pragma failed after dist upgrade

[CODE]
// oomptest.c
// compile as gcc oomptest.c -o oomp -lm -fopenmp

#include <stdlib.h>
#include <stdio.h>
#include <math.h>

int omp_get_max_threads(void);
int omp_get_thread_num(void);

void subroutine(float *subject, float *object, int index){
  object[index] -= subject[0];
}
	

int main(int argc, char* argv[]){
	int i, id;
	float v0[2] = {13579, 24680}, v1[5]={1, 3, 5, 7, 9};

	#pragma omp parallel num_threads(5) private (id)
	{
		id = omp_get_thread_num(); printf("line 22 id=%d\n", id);
		subroutine(&v0[1], &v1[id], id);
	}
	for(i=0; i<5; i++)printf("v1[%d] = %f\n", i, v1[i]);
	
}[/CODE]
output from test program
"

line 22 id=0
line 22 id=3
line 22 id=1
line 22 id=2
line 22 id=4
v1[0] = -24679.000000
v1[1] = 3.000000
v1[2] = -24675.000000
v1[3] = 7.000000
v1[4] = -24671.000000
"
expected output from test program
>
line 22 id=0
line 22 id=3
line 22 id=1
line 22 id=2
line 22 id=4
v1[0] = -24679.000000
v1[1] = -24677.000000
v1[2] = -24675.000000
v1[3] = -24673.000000
v1[4] = -24671.000000
"



More information about the Pkg-llvm-team mailing list