From nobody@FreeBSD.org  Mon Jun 25 17:35:16 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id E0D1416A41F
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 25 Jun 2007 17:35:16 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [69.147.83.33])
	by mx1.freebsd.org (Postfix) with ESMTP id B9D0813C4AE
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 25 Jun 2007 17:35:16 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l5PHZG0m054919
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 25 Jun 2007 17:35:16 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id l5PHZGUI054916;
	Mon, 25 Jun 2007 17:35:16 GMT
	(envelope-from nobody)
Message-Id: <200706251735.l5PHZGUI054916@www.freebsd.org>
Date: Mon, 25 Jun 2007 17:35:16 GMT
From: Erich Zigler <ezigler@superhero.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: transcode coring with sig11 by pthread_testcancel()
X-Send-Pr-Version: www-3.0

>Number:         114019
>Category:       ports
>Synopsis:       multimedia/transcode coring with sig11 by pthread_testcancel()
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-multimedia
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 25 17:40:01 GMT 2007
>Closed-Date:    Mon Mar 31 15:04:46 UTC 2008
>Last-Modified:  Mon Mar 31 15:04:46 UTC 2008
>Originator:     Erich Zigler
>Release:        6.2-STABLE
>Organization:
>Environment:
FreeBSD nightcrawler.superhero.org 6.2-STABLE FreeBSD 6.2-STABLE #0: Sun Jun 24 22:05:10 CDT 2007     root@nightcrawler.superhero.org:/usr/obj/usr/src/sys/NIGHTCRAWLER  i386
>Description:
When executing this command:

transcode -q2 -i "test.mpg" -x auto,null -I 5 -K -G 0.2 -y im,null -F png -o test.png

The following occurs:

Segmentation fault (core dumped)

Contents of the core file:

[needo@nightcrawler ~]$ gdb /usr/local/bin/transcode
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd"...(no debugging symbols found)...
(gdb) core transcode.core
Core was generated by `transcode'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/local/lib/libxml2.so.5...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libxml2.so.5
Reading symbols from /usr/local/lib/libiconv.so.3...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libiconv.so.3
Reading symbols from /lib/libm.so.4...(no debugging symbols found)...done.
Loaded symbols for /lib/libm.so.4
Reading symbols from /lib/libz.so.3...(no debugging symbols found)...done.
Loaded symbols for /lib/libz.so.3
Reading symbols from /lib/libpthread.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libpthread.so.2
Reading symbols from /lib/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols found)...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x2834d85b in pthread_testcancel () from /lib/libpthread.so.2
[New Thread 0x80ba200 (LWP 100063)]
[New Thread 0x80ba000 (runnable)]
[New LWP 100099]
(gdb) bt
#0  0x2834d85b in pthread_testcancel () from /lib/libpthread.so.2
#1  0x28345979 in pthread_mutexattr_init () from /lib/libpthread.so.2
#2  0x280d9450 in ?? ()
>How-To-Repeat:
Run:

transcode -q2 -i "test.mpg" -x auto,null -I 5 -K -G 0.2 -y im,null -F png -o test.png

Against a mpeg2 file.
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-multimedia 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Mon Jun 25 18:42:58 UTC 2007 
Responsible-Changed-Why:  
ports PR. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=114019 

From: "Erich Zigler" <ezigler@superhero.org>
To: bug-followup@FreeBSD.org,
 ezigler@superhero.org
Cc:  
Subject: Re: ports/114019: multimedia/transcode coring with sig11 by 
     pthread_testcancel()
Date: Mon, 25 Jun 2007 14:01:42 -0500 (CDT)

 I have narrowed down the problem to:
 
 /usr/local/lib/transcode/export_im.so
 
 I cannot even list what codecs are supported in the ImageMagick module:
 
 [needo@nightcrawler ~]$ transcode -y im -F list
 transcode v1.0.3 (C) 2001-2003 Thomas Oestreich, 2003-2004 T. Bitterberg
 [transcode] (probe) suggested AV correction -D 0 (0 ms) | AV 0 ms | 0 ms
 [transcode] auto-probing source (null) (ok)
 [transcode] V: import format    | unknown  (V=null|A=null)
 [transcode] V: import frame     | disabled
 [transcode] V: bits/pixel       | 0.000 (unknown)
 [transcode] V: decoding fps,frc | 25.000,0
 [transcode] V: Y'CbCr           | YV12/I420
 [transcode] A: import           | disabled
 [transcode] A: export           | disabled
 [transcode] V: encoding fps,frc | 25.000,3
 [transcode] A: bytes per frame  | 0 (0.000000)
 [transcode] A: adjustment       | 0@1000
 [transcode] V: IA32/AMD64 accel | sse2 (sse2 sse 3dnowext 3dnow mmxext mmx
 asm C)
 tc_memcpy: using sse for memcpy
 [transcode] warning : no option -i found, reading from "/dev/zero"
 [transcode] warning : no option -o found, encoded frames send to "/dev/null"
 [transcode] V: video buffer     | 10 @ 0x0
 [import_null.so] v0.2.0 (2002-01-19) (video) null | (audio) null
 [export_null.so] v0.1.2 (2001-08-17) (video) null | (audio) null
 [export_im.so] v0.0.4 (2003-11-13) (video) *
 Segmentation fault: 11 (core dumped)
 
 This occurs on FreeBSD 6.1 and 6.2.
 
State-Changed-From-To: open->feedback  
State-Changed-By: ahze 
State-Changed-When: Thu Feb 28 00:16:39 UTC 2008 
State-Changed-Why:  
Is this still a problem with latest transcode? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=114019 
State-Changed-From-To: feedback->closed  
State-Changed-By: ahze 
State-Changed-When: Mon Mar 31 15:03:37 UTC 2008 
State-Changed-Why:  
Feedback timeout 

http://www.freebsd.org/cgi/query-pr.cgi?pr=114019 
>Unformatted:
