Package: libnspr4-0d
Version: 4.7.1-4
Severity: normal
The libraries fails to reinitialize correctly after an
initialization/cleanup cycle.
Please see attached testcase.
If I run it I get the following output:
Init 1
Cleanup 1
success=1
Init 2
Cleanup 2
<deadlocked here>
If I set NSPR_LOG_MODULES=all:5, I get:
Init 1
-136541440[8ed2580]: Loaded library a.out (init)
Cleanup 1
-136541440[8ed2580]: PR_Cleanup: shutting down NSPR
success=1
Init 2
Segmentation fault
Thank you,
Ludovico
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (x86_64)
Kernel: Linux 2.6.27-11-generic (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=ANSI_X3.4-1968)
(ignored: LC_ALL set to C)
Shell: /bin/sh linked to /bin/bash
Versions of packages libnspr4-0d depends on:
ii libc6 2.9-6 GNU C Library: Shared libraries
libnspr4-0d recommends no packages.
libnspr4-0d suggests no packages.
-- no debconf information
#include <nspr.h>
#include <stdio.h>
int main() {
PRStatus s;
fprintf(stderr, "Init 1\n");
PR_Init(PR_SYSTEM_THREAD, PR_PRIORITY_NORMAL, 1);
fprintf(stderr, "Cleanup 1\n");
s = PR_Cleanup();
fprintf(stderr, "success=%d\n", s == PR_SUCCESS);
fprintf(stderr, "Init 2\n");
PR_Init(PR_SYSTEM_THREAD, PR_PRIORITY_NORMAL, 1);
fprintf(stderr, "Cleanup 2\n");
PR_Cleanup();
fprintf(stderr, "success=%d\n", s == PR_SUCCESS);
return 0;
}