Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Feb 2002 17:35:27 +0300
From:      "Vladimir B.Grebenschikov" <vova@sw.ru>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        current@freebsd.org
Subject:   ports/34908: libpng port makes bad dynamic library on -CURRENT
Message-ID:  <E16b0VK-000PUb-00@vbook.express.ru>

next in thread | raw e-mail | index | archive | help

>Number:         34908
>Category:       ports
>Synopsis:       libpng port makes bad dynamic library on -CURRENT
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 13 06:40:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Vladimir B. Grebenschikov
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
SWsoft
>Environment:
System: FreeBSD vbook.express.ru 5.0-CURRENT FreeBSD 5.0-CURRENT #42: Wed Feb 13 14:57:29 MSK 2002 root@walder.sw.ru:/usr/obj/ext/current/src/sys/VBOOK i386

Todays current:
% date
Wed Feb 13 14:32:09 GMT 2002

%  pkg_info -I png\*
png-1.2.1           Library for manipulating PNG images
%

>Description:

Programm linked against libpng.so on -CURRNET causes SIGBUS on startup

>How-To-Repeat:

% cat > trypng.c
#include <stdio.h>

main(int ac, char ** av)
{
  printf("Hello World\n");
}
^D
% gcc -o trypng trypng.c -L/usr/local/lib -lpng
% ./trypng
Bus error (core dumped)
% ldd ./trypng
./trypng:
        libpng.so.5 => lib/xx/libpng.so.5 (0x28068000)
        libc.so.5 => /usr/lib/libc.so.5 (0x2808a000)
        libz.so.2 => /usr/lib/libz.so.2 (0x2813d000)
        libm.so.2 => /usr/lib/libm.so.2 (0x2814a000)
% gdb ./trypng
GNU gdb 4.18
Copyright 1998 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-unknown-freebsd"...
(no debugging symbols found)...
(gdb) r
Starting program: ./trypng 

Program received signal SIGBUS, Bus error.
0x280500e2 in ?? ()
(gdb) bt
#0  0x280500e2 in ?? ()
#1  0x2804db7c in ?? ()
#2  0x2804c6af in ?? ()
(gdb) 

>Fix:

Workaround - build libpng on 4.5-RELEASE system and install package on
5.0-CURRENT

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E16b0VK-000PUb-00>