pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/35429: p7zip vs NetBSD libpthread problem for multiple CPUs/threads



>Number:         35429
>Category:       pkg
>Synopsis:       p7zip fails on archive add with multiple CPUs/threads
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 16 06:40:00 +0000 2007
>Originator:     Geoff C. Wing
>Release:        NetBSD 4.99.8 (2006-01-15)
>Organization:
>Environment:
System: NetBSD g.primenet.com.au 4.99.8 NetBSD 4.99.8 (G) #0: Mon Jan 15 
15:18:50 EST 2007 
gcw%g.primenet.com.au@localhost:/usr/netbsd/src/sys/arch/i386/compile/G i386
Architecture: i386
Machine: i386
>Description:
        When running 7z (archivers/p7zip) on NetBSD with multiple CPUs or
        with forced multiple threads a threading problem is detected by
        NetBSD's libpthread which causes the program to abort.

------------------------------------------------------------ 2 CPU machine
% echo foo > bar
% 7z a bar.7z bar

7-Zip (A) 4.43 beta  Copyright (c) 1999-2006 Igor Pavlov  2006-09-15
p7zip Version 4.43 (locale=C,Utf16=off,HugeFiles=on,2 CPUs)
Scanning

Creating archive bar.7z

Compressing  bar                                                        0%7z: 
Error detected by libpthread: Unlocking mutex owned by another thread.
Detected by file "pthread_mutex.c", line 371, function "pthread_mutex_unlock".
See pthread(3) for information.
[1]    11041 abort      7z a bar.7z bar
% 7z a -mmt=1 bar.7z bar

7-Zip (A) 4.43 beta  Copyright (c) 1999-2006 Igor Pavlov  2006-09-15
p7zip Version 4.43 (locale=C,Utf16=off,HugeFiles=on,2 CPUs)
Scanning

Creating archive bar.7z

Compressing  bar                                                          

Everything is Ok
------------------------------------------------------------ 1 CPU machine
% echo foo > bar; echo foo > baz
% 7z a -mmt=2 bar.7z bar baz

7-Zip (A) 4.43 beta  Copyright (c) 1999-2006 Igor Pavlov  2006-09-15
p7zip Version 4.43 (locale=C,Utf16=off,HugeFiles=on,1 CPU)
Scanning

Creating archive bar.7z

Compressing  bar                                                          
Compressing  baz                                                        0%7z: 
Error detected by libpthread: Unlocking mutex owned by another thread.
Detected by file "pthread_mutex.c", line 371, function "pthread_mutex_unlock".
See pthread(3) for information.
[1]    27732 abort      7z a -mmt=2 bar.7z bar baz
------------------------------------------------------------

        Decompressing/extracting files hasn't shown any problems.

>How-To-Repeat:
        See up.
>Fix:
        Maybe force "-mmt=1" option on archive update




Home | Main Index | Thread Index | Old Index