Subject: pkg/9607: executables created with "ptl2" package cause segfaults
To: None <gnats-bugs@gnats.netbsd.org>
From: Matthias Scheler <tron@lyssa.zhadum.de>
List: netbsd-bugs
Date: 03/12/2000 13:21:40
>Number: 9607
>Category: pkg
>Synopsis: executables created with "ptl2" package cause segfaults
>Confidential: yes
>Severity: serious
>Priority: medium
>Responsible: pkg-manager (NetBSD software packages system bug manager)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Mar 12 13:20:59 2000
>Last-Modified:
>Originator: Matthias Scheler
>Organization:
Matthias Scheler http://www.sighardstrasse.de/~tron/
>Release: NetBSD-1.4.2/1.4U, pkgsrc from 2000/03/11
>Environment:
System: NetBSD lyssa.zhadum.de 1.4U NetBSD 1.4U (LYSSA) #0: Wed Mar 8 11:40:40 CET 2000 tron@lyssa.zhadum.de:/src/sys/compile/LYSSA i386
>Description:
Binaries created with the "ptlgcc" compiler frontend from the "ptl2" package
cause a segmentation fault during startup. Obviously there is a problem
with shared library loading:
1778 hurtz NAMI "/usr/lib/libc.so.12"
1778 hurtz RET open 3
1778 hurtz CALL read(0x3,0xbfbfd428,0x34)
1778 hurtz GIO fd 3 read 52 bytes
"\^?ELF\^A\^A\^A\0\0\0\0\0\0\0\0\0\^C\0\^C\0\^A\0\0\0\M-`8\^A\0004\0\0\
\0 \M-h\a\0\0\0\0\0004\0 \0\^D\0(\0<\09\0"
1778 hurtz RET read 52/0x34
1778 hurtz CALL close(0x3)
1778 hurtz RET close 0
1778 hurtz CALL open(0x4805e0c0,0,0x480599d0)
1778 hurtz NAMI "/usr/lib/libc.so.12"
1778 hurtz RET open 3
1778 hurtz CALL __fstat13(0x3,0xbfbfd498)
1778 hurtz RET __fstat13 0
1778 hurtz CALL read(0x3,0xbfbfc474,0x1000)
1778 hurtz GIO fd 3 read 4096 bytes
[...]
1778 hurtz RET read 4096/0x1000
1778 hurtz CALL mmap(0,0x81000,0x5,0x2,0x3,0,0,0)
1778 hurtz RET mmap 1208553472/0x48091000
1778 hurtz CALL mmap(0x48103000,0x4000,0x3,0x12,0x3,0,0x71000,0)
1778 hurtz RET mmap 1209020416/0x48103000
1778 hurtz CALL mmap(0x48107000,0xb000,0x3,0x1012,0xffffffff,0,0,0)
1778 hurtz RET mmap 1209036800/0x48107000
1778 hurtz CALL close(0x3)
1778 hurtz RET close 0
1778 hurtz CALL open(0xbfbfd1f0,0,0x4808d7d0)
1778 hurtz NAMI "/lib"
1778 hurtz RET open -1 errno 2 No such file or directory
1778 hurtz PSIG SIGSEGV SIG_DFL
>How-To-Repeat:
tron@lyssa:~>cat >hurtz.c
#include <stdio.h>
int main(int argc,char **argv)
{
(void)puts("Hello World");
return 0;
}
tron@lyssa:~>ptlgcc hurtz.c -Wall -o hurtz
tron@lyssa:~>./hurtz
Segmentation fault
>Fix:
Sorry, I don't now.
>Audit-Trail:
>Unformatted: