From: Thomas DOT Pasch AT e-technik DOT uni-magdeburg DOT de Sender: Thomas DOT Pasch AT e-technik DOT uni-magdeburg DOT de Message-ID: <372FF4EB.D420FDAC@e-technik.uni-magdeburg.de> Date: Wed, 05 May 1999 09:36:11 +0200 Organization: Uni Magdeburg X-Mailer: Mozilla 4.5 [en] (X11; I; SunOS 5.6 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: pgcc AT delorie DOT com Subject: Bug Report: Cannot compile oz3 (http://www.mozart-oz.org) Content-Type: multipart/alternative; boundary="------------E4584036667296508746A62B" Reply-To: pgcc AT delorie DOT com --------------E4584036667296508746A62B Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, this is a bug report. I tried to compile the mozart system from http://www.mozart-oz.org . It can't be done. So I reported the bug to the mozart developers. This is copy of this discussion: > From: > Christian Schulte > Mon 13:36 > > Subject: > Re: Bug: mozart compiling problems (PR#339) > To: > Thomas DOT Pasch AT E-Technik DOT Uni-Magdeburg DOT DE > > > > > > I don't know if this is a bug, but I got trouble to compile mozart from > > the sources. It maybe that my compiler and/or linux setup is buggy. I'm > > using a pgcc-1.1.3 (a egcs derivate) as compiler and I'm working with > > the new glibc-2.1 (libc-6.1) libraries. Perhaps this is the reason of my > > problem. If have enclose a piece of the strace output that may help you > > to > > locate the problem. I'm using a stampede linux distro > > (www.stampede.org). > > I also tried pgcc both with glibc-2.1 and glibc-2.0. And in both cases the > created binaries are just useless. They immediately crash for different > reasons. > > So it seems to be a pgcc problem (egcs-1.1.2 with glibc-2.1 works very fine). > > On the other hand your strace suggests a kernel problem with mmap (which > kernel?). > > I would recommend to use egcs instead. > > My experience with pgcc (based on previous releases) is that it doesn't really > show (at least for Mozart) any speed improvements, the binaries become larger > and pgcc is quite slow. And it has more bugs... > > Cheers > --Christian > ------------------------------------------------------------------------ > Christian Schulte, Programming Systems Lab, DFKI GmbH > Postfach 15 11 50, 66041 Saarbrcken, Germany > Tel: +49 681 302-5340; Fax: +49 681 302-5615 Net: schulte AT dfki DOT de > URL: http://www.ps.uni-sb.de/~schulte/ > > > From: Thomas DOT Pasch AT e-technik DOT uni-magdeburg DOT de > Date: Wed, 28 Apr 1999 07:38:00 -0600 > To: bugs AT mozart-oz DOT org > Subject: Bug: mozart compiling problems > > Hello, > > I don't know if this is a bug, but I got trouble to compile mozart from > the sources. It maybe that my compiler and/or linux setup is buggy. I'm > using a pgcc-1.1.3 (a egcs derivate) as compiler and I'm working with > the new glibc-2.1 (libc-6.1) libraries. Perhaps this is the reason of my > > problem. If have enclose a piece of the strace output that may help you > to > locate the problem. I'm using a stampede linux distro > (www.stampede.org). > > Best regards, > > Thomas Pasch > > ----- > > DESCRIPTION OF THE PROBLEM: > > Mozart will compile fine at first, but after: > > make[3]: Entering directory `/root/fresh/mozart/share/lib' > rm -f boot-init.ozt boot-ozc.ozt > gzip -d < /root/fresh/mozart/share/lib/boot-init.ozt.gz > boot-init.ozt > gzip -d < /root/fresh/mozart/share/lib/boot-ozc.ozt.gz > boot-ozc.ozt > /root/fresh/mozart/share/lib/t2p.sh < boot-init.ozt > boot-init \ > || (rm -f boot-init; exit 1) > /root/fresh/mozart/share/lib/t2p.sh < boot-ozc.ozt > boot-ozc \ > || (rm -f boot-ozc; exit 1) > make all \ > OZC=/root/fresh/mozart/share/lib/boot-ozc.sh \ > OZENGINE=/root/fresh/mozart/share/lib/oze.sh \ > OZINIT=Init.ozf \ > OZ_LIB=. \ > > OZ_LOAD=root=.:prefix=/root/fresh/mozart/share/lib=/root/fresh/mozart/share/lib:prefix=/=/:prefix=./=./:prefix=http://www.mozart-oz.org/home/share/=./:= > > make[4]: Entering directory `/root/fresh/mozart/share/lib' > /root/fresh/mozart/share/lib/boot-ozc.sh -z 9 -l > Base=/root/fresh/mozart/share/lib/Base.ozf -b > /root/fresh/mozart/share/lib/ -c sp/Error.oz -o Error.ozf > > the things doesn't proceed any more. > > > This is my compiler version: > #> gcc -v > Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/pgcc-2.91.66/specs > > gcc version pgcc-2.91.66 19990314 (egcs-1.1.2 release) > > > This is a try with the just-build emulator: > > > strace platform/emulator/emulator.exe -init share/lib/sp/Error.oz > > (much more before this...) > > read(3, "O", 1) = 1 > read(3, "S", 1) = 1 > --- SIGALRM (Alarm clock) --- > sigreturn() = ? (mask now []) > read(3, "F", 1) = 1 > read(3, "o", 1) = 1 > read(3, "r", 1) = 1 > read(3, "m", 1) = 1 > read(3, "a", 1) = 1 > read(3, "t", 1) = 1 > --- SIGALRM (Alarm clock) --- > sigreturn() = ? (mask now []) > read(3, "t", 1) = 1 > read(3, "e", 1) = 1 > read(3, "r", 1) = 1 > read(3, "}", 1) = 1 > read(3, "\n", 1) = 1 > read(3, " ", 1) = 1 > read(3, " ", 1) = 1 > read(3, " ", 1) = 1 > read(3, "{", 1) = 1 > read(3, "R", 1) = 1 > read(3, "e", 1) = 1 > read(3, "g", 1) = 1 > read(3, "i", 1) = 1 > read(3, "s", 1) = 1 > read(3, "t", 1) = 1 > read(3, "e", 1) = 1 > read(3, "r", 1) = 1 > read(3, "F", 1) = 1 > read(3, "o", 1) = 1 > read(3, "r", 1) = 1 > read(3, "m", 1) = 1 > read(3, "a", 1) = 1 > read(3, "t", 1) = 1 > read(3, "t", 1) = 1 > read(3, "e", 1) = 1 > read(3, "r", 1) = 1 > read(3, " ", 1) = 1 > read(3, "f", 1) = 1 > read(3, "o", 1) = 1 > read(3, "r", 1) = 1 > read(3, "e", 1) = 1 > read(3, "i", 1) = 1 > read(3, "g", 1) = 1 > read(3, "n", 1) = 1 > read(3, " ", 1) = 1 > read(3, "F", 1) = 1 > read(3, "o", 1) = 1 > read(3, "r", 1) = 1 > read(3, "e", 1) = 1 > read(3, "i", 1) = 1 > read(3, "g", 1) = 1 > read(3, "n", 1) = 1 > read(3, "F", 1) = 1 > read(3, "o", 1) = 1 > read(3, "r", 1) = 1 > read(3, "m", 1) = 1 > read(3, "a", 1) = 1 > read(3, "t", 1) = 1 > read(3, "t", 1) = 1 > read(3, "e", 1) = 1 > read(3, "r", 1) = 1 > read(3, "}", 1) = 1 > read(3, "\n", 1) = 1 > read(3, " ", 1) = 1 > read(3, " ", 1) = 1 > read(3, " ", 1) = 1 > read(3, "{", 1) = 1 > read(3, "R", 1) = 1 > read(3, "e", 1) = 1 > read(3, "g", 1) = 1 > read(3, "i", 1) = 1 > read(3, "s", 1) = 1 > read(3, "t", 1) = 1 > read(3, "e", 1) = 1 > --- SIGALRM (Alarm clock) --- > sigreturn() = ? (mask now []) > read(3, "r", 1) = 1 > read(3, "F", 1) = 1 > read(3, "o", 1) = 1 > read(3, "r", 1) = 1 > read(3, "m", 1) = 1 > read(3, "a", 1) = 1 > read(3, "t", 1) = 1 > read(3, "t", 1) = 1 > read(3, "e", 1) = 1 > read(3, "r", 1) = 1 > read(3, " ", 1) = 1 > read(3, "u", 1) = 1 > read(3, "r", 1) = 1 > read(3, "l", 1) = 1 > read(3, " ", 1) = 1 > --- SIGALRM (Alarm clock) --- > sigreturn() = ? (mask now []) > read(3, " ", 1) = 1 > read(3, " ", 1) = 1 > read(3, " ", 1) = 1 > read(3, " ", 1) = 1 > read(3, "U", 1) = 1 > read(3, "R", 1) = 1 > read(3, "L", 1) = 1 > read(3, "F", 1) = 1 > read(3, "o", 1) = 1 > read(3, "r", 1) = 1 > read(3, "m", 1) = 1 > read(3, "a", 1) = 1 > read(3, "t", 1) = 1 > read(3, "t", 1) = 1 > read(3, "e", 1) = 1 > read(3, "r", 1) = 1 > read(3, "}", 1) = 1 > read(3, "\n", 1) = 1 > read(3, " ", 1) = 1 > read(3, " ", 1) = 1 > read(3, " ", 1) = 1 > read(3, "{", 1) = 1 > read(3, "R", 1) = 1 > read(3, "e", 1) = 1 > read(3, "g", 1) = 1 > read(3, "i", 1) = 1 > read(3, "s", 1) = 1 > read(3, "t", 1) = 1 > read(3, "e", 1) = 1 > read(3, "r", 1) = 1 > read(3, "F", 1) = 1 > read(3, "o", 1) = 1 > read(3, "r", 1) = 1 > read(3, "m", 1) = 1 > read(3, "a", 1) = 1 > read(3, "t", 1) = 1 > read(3, "t", 1) = 1 > read(3, "e", 1) = 1 > read(3, "r", 1) = 1 > read(3, " ", 1) = 1 > read(3, "m", 1) = 1 > read(3, "o", 1) = 1 > read(3, "d", 1) = 1 > read(3, "u", 1) = 1 > read(3, "l", 1) = 1 > read(3, "e", 1) = 1 > read(3, " ", 1) = 1 > read(3, " ", 1) = 1 > read(3, "M", 1) = 1 > read(3, "o", 1) = 1 > read(3, "d", 1) = 1 > read(3, "u", 1) = 1 > read(3, "l", 1) = 1 > read(3, "e", 1) = 1 > read(3, "F", 1) = 1 > read(3, "o", 1) = 1 > read(3, "r", 1) = 1 > read(3, "m", 1) = 1 > read(3, "a", 1) = 1 > read(3, "t", 1) = 1 > read(3, "t", 1) = 1 > --- SIGALRM (Alarm clock) --- > sigreturn() = ? (mask now []) > read(3, "e", 1) = 1 > read(3, "r", 1) = 1 > read(3, "}", 1) = 1 > read(3, "\n", 1) = 1 > read(3, "e", 1) = 1 > read(3, "n", 1) = 1 > read(3, "d", 1) = 1 > read(3, "\n", 1) = 1 > read(3, "", 1) = 0 > read(3, "", 1) = 0 > read(3, "", 1) = 0 > read(3, "", 1) = 0 > read(3, "", 1) = 0 > brk(0x8239000) = 0x8239000 > brk(0x8242000) = 0x8242000 > fcntl(3, F_GETFL) = 0 (flags O_RDONLY) > fstat(3, {st_mode=0, st_size=0, ...}) = 0 > mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = > 0x40016000 > _llseek(0x3, 0, 0, 0xbfffefa0, 0x1) = 0 > read(3, "", 4096) = 0 > _llseek(0x3, 0, 0x37a7, 0xbfffef74, 0) = 0 > close(3) = 0 > munmap(0x40016000, 4096) = 0 > --- SIGSEGV (Segmentation fault) --- > SYS_175(0x2, 0xbfffefdc, 0xbfffef5c, 0x8, 0x2) = 0 > SYS_175(0x2, 0xbfffef5c, 0, 0x8, 0x2) = 0 > --- SIGALRM (Alarm clock) --- > sigreturn() = ? (mask now []) > sigreturn() = ? (mask now []) > --- SIGSEGV (Segmentation fault) --- > SYS_175(0x2, 0xbfffefdc, 0xbfffef5c, 0x8, 0x2) = 0 > SYS_175(0x2, 0xbfffef5c, 0, 0x8, 0x2) = 0 > sigreturn() = ? (mask now []) > --- SIGSEGV (Segmentation fault) --- > SYS_175(0x2, 0xbfffefdc, 0xbfffef5c, 0x8, 0x2) = 0 > SYS_175(0x2, 0xbfffef5c, 0, 0x8, 0x2) = 0 > sigreturn() = ? (mask now []) > --- SIGSEGV (Segmentation fault) --- > SYS_175(0x2, 0xbfffefdc, 0xbfffef5c, 0x8, 0x2) = 0 > SYS_175(0x2, 0xbfffef5c, 0, 0x8, 0x2) = 0 > sigreturn() = ? (mask now []) > --- SIGSEGV (Segmentation fault) --- > SYS_175(0x2, 0xbfffefdc, 0xbfffef5c, 0x8, 0x2) = 0 > SYS_175(0x2, 0xbfffef5c, 0, 0x8, 0x2) = 0 > sigreturn() = ? (mask now []) > --- SIGSEGV (Segmentation fault) --- > SYS_175(0x2, 0xbfffefdc, 0xbfffef5c, 0x8, 0x2) = 0 > SYS_175(0x2, 0xbfffef5c, 0, 0x8, 0x2) = 0 > --- SIGALRM (Alarm clock) --- > sigreturn() = ? (mask now []) > sigreturn() = ? (mask now []) > > etc... > --------------E4584036667296508746A62B Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Hi,

this is a bug report. I tried to compile the mozart system from http://www.mozart-oz.org . It can't be done. So I reported the bug to the mozart developers. This is copy of this discussion:
 

From: 
         Christian Schulte 
                                                                                                   Mon 13:36

 Subject: 
         Re: Bug: mozart compiling problems (PR#339)
      To: 
         Thomas DOT Pasch AT E-Technik DOT Uni-Magdeburg DOT DE




> I don't know if this is a bug, but I got trouble to compile mozart from
> the sources. It maybe that my compiler and/or linux setup is buggy. I'm
> using a pgcc-1.1.3 (a egcs derivate) as compiler and I'm working with
> the new glibc-2.1 (libc-6.1) libraries. Perhaps this is the reason of my
> problem. If have enclose a piece of the strace output that may help you
> to
> locate the problem. I'm using a stampede linux distro
> (www.stampede.org).

I also tried pgcc both with glibc-2.1 and glibc-2.0. And in both cases the 
created binaries are just useless. They immediately crash for different
reasons.

So it seems to be a pgcc problem (egcs-1.1.2  with glibc-2.1 works very fine).

On the other hand your strace suggests a kernel problem with mmap (which
kernel?).

I would recommend to use egcs instead.

My experience with pgcc (based on previous releases) is that it doesn't really 
show (at least for Mozart) any speed improvements, the binaries become larger 
and pgcc is quite slow. And it has more bugs...

Cheers
--Christian
------------------------------------------------------------------------
Christian Schulte, Programming Systems Lab, DFKI GmbH
Postfach 15 11 50, 66041 Saarbrcken, Germany
Tel: +49 681 302-5340; Fax: +49 681 302-5615 Net: schulte AT dfki DOT de  
URL: http://www.ps.uni-sb.de/~schulte/

 

From: Thomas DOT Pasch AT e-technik DOT uni-magdeburg DOT de
Date: Wed, 28 Apr 1999 07:38:00 -0600
To: bugs AT mozart-oz DOT org
Subject: Bug: mozart compiling problems

Hello,

I don't know if this is a bug, but I got trouble to compile mozart from
the sources. It maybe that my compiler and/or linux setup is buggy. I'm
using a pgcc-1.1.3 (a egcs derivate) as compiler and I'm working with
the new glibc-2.1 (libc-6.1) libraries. Perhaps this is the reason of my

problem. If have enclose a piece of the strace output that may help you
to
locate the problem. I'm using a stampede linux distro
(www.stampede.org).

Best regards,

Thomas Pasch

-----

DESCRIPTION OF THE PROBLEM:

Mozart will compile fine at first, but after:

make[3]: Entering directory `/root/fresh/mozart/share/lib'
rm -f boot-init.ozt boot-ozc.ozt
gzip -d < /root/fresh/mozart/share/lib/boot-init.ozt.gz > boot-init.ozt
gzip -d < /root/fresh/mozart/share/lib/boot-ozc.ozt.gz > boot-ozc.ozt
/root/fresh/mozart/share/lib/t2p.sh < boot-init.ozt > boot-init \
|| (rm -f boot-init; exit 1)
/root/fresh/mozart/share/lib/t2p.sh < boot-ozc.ozt > boot-ozc \
|| (rm -f boot-ozc; exit 1)
make all \
        OZC=/root/fresh/mozart/share/lib/boot-ozc.sh \
        OZENGINE=/root/fresh/mozart/share/lib/oze.sh \
        OZINIT=Init.ozf \
        OZ_LIB=. \

OZ_LOAD=root=.:prefix=/root/fresh/mozart/share/lib=/root/fresh/mozart/share/lib:prefix=/=/:prefix=./=./:prefix=http://www.mozart-oz.org/home/share/=./:=

make[4]: Entering directory `/root/fresh/mozart/share/lib'
/root/fresh/mozart/share/lib/boot-ozc.sh -z 9 -l
Base=/root/fresh/mozart/share/lib/Base.ozf -b
/root/fresh/mozart/share/lib/ -c sp/Error.oz -o Error.ozf

the things doesn't proceed any more.


This is my compiler version:
#> gcc -v
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/pgcc-2.91.66/specs

gcc version pgcc-2.91.66 19990314 (egcs-1.1.2 release)


This is a try with the just-build emulator:

> strace platform/emulator/emulator.exe -init share/lib/sp/Error.oz

(much more before this...)

read(3, "O", 1)                         = 1
read(3, "S", 1)                         = 1
--- SIGALRM (Alarm clock) ---
sigreturn()                             = ? (mask now [])
read(3, "F", 1)                         = 1
read(3, "o", 1)                         = 1
read(3, "r", 1)                         = 1
read(3, "m", 1)                         = 1
read(3, "a", 1)                         = 1
read(3, "t", 1)                         = 1
--- SIGALRM (Alarm clock) ---
sigreturn()                             = ? (mask now [])
read(3, "t", 1)                         = 1
read(3, "e", 1)                         = 1
read(3, "r", 1)                         = 1
read(3, "}", 1)                         = 1
read(3, "\n", 1)                        = 1
read(3, " ", 1)                         = 1
read(3, " ", 1)                         = 1
read(3, " ", 1)                         = 1
read(3, "{", 1)                         = 1
read(3, "R", 1)                         = 1
read(3, "e", 1)                         = 1
read(3, "g", 1)                         = 1
read(3, "i", 1)                         = 1
read(3, "s", 1)                         = 1
read(3, "t", 1)                         = 1
read(3, "e", 1)                         = 1
read(3, "r", 1)                         = 1
read(3, "F", 1)                         = 1
read(3, "o", 1)                         = 1
read(3, "r", 1)                         = 1
read(3, "m", 1)                         = 1
read(3, "a", 1)                         = 1
read(3, "t", 1)                         = 1
read(3, "t", 1)                         = 1
read(3, "e", 1)                         = 1
read(3, "r", 1)                         = 1
read(3, " ", 1)                         = 1
read(3, "f", 1)                         = 1
read(3, "o", 1)                         = 1
read(3, "r", 1)                         = 1
read(3, "e", 1)                         = 1
read(3, "i", 1)                         = 1
read(3, "g", 1)                         = 1
read(3, "n", 1)                         = 1
read(3, " ", 1)                         = 1
read(3, "F", 1)                         = 1
read(3, "o", 1)                         = 1
read(3, "r", 1)                         = 1
read(3, "e", 1)                         = 1
read(3, "i", 1)                         = 1
read(3, "g", 1)                         = 1
read(3, "n", 1)                         = 1
read(3, "F", 1)                         = 1
read(3, "o", 1)                         = 1
read(3, "r", 1)                         = 1
read(3, "m", 1)                         = 1
read(3, "a", 1)                         = 1
read(3, "t", 1)                         = 1
read(3, "t", 1)                         = 1
read(3, "e", 1)                         = 1
read(3, "r", 1)                         = 1
read(3, "}", 1)                         = 1
read(3, "\n", 1)                        = 1
read(3, " ", 1)                         = 1
read(3, " ", 1)                         = 1
read(3, " ", 1)                         = 1
read(3, "{", 1)                         = 1
read(3, "R", 1)                         = 1
read(3, "e", 1)                         = 1
read(3, "g", 1)                         = 1
read(3, "i", 1)                         = 1
read(3, "s", 1)                         = 1
read(3, "t", 1)                         = 1
read(3, "e", 1)                         = 1
--- SIGALRM (Alarm clock) ---
sigreturn()                             = ? (mask now [])
read(3, "r", 1)                         = 1
read(3, "F", 1)                         = 1
read(3, "o", 1)                         = 1
read(3, "r", 1)                         = 1
read(3, "m", 1)                         = 1
read(3, "a", 1)                         = 1
read(3, "t", 1)                         = 1
read(3, "t", 1)                         = 1
read(3, "e", 1)                         = 1
read(3, "r", 1)                         = 1
read(3, " ", 1)                         = 1
read(3, "u", 1)                         = 1
read(3, "r", 1)                         = 1
read(3, "l", 1)                         = 1
read(3, " ", 1)                         = 1
--- SIGALRM (Alarm clock) ---
sigreturn()                             = ? (mask now [])
read(3, " ", 1)                         = 1
read(3, " ", 1)                         = 1
read(3, " ", 1)                         = 1
read(3, " ", 1)                         = 1
read(3, "U", 1)                         = 1
read(3, "R", 1)                         = 1
read(3, "L", 1)                         = 1
read(3, "F", 1)                         = 1
read(3, "o", 1)                         = 1
read(3, "r", 1)                         = 1
read(3, "m", 1)                         = 1
read(3, "a", 1)                         = 1
read(3, "t", 1)                         = 1
read(3, "t", 1)                         = 1
read(3, "e", 1)                         = 1
read(3, "r", 1)                         = 1
read(3, "}", 1)                         = 1
read(3, "\n", 1)                        = 1
read(3, " ", 1)                         = 1
read(3, " ", 1)                         = 1
read(3, " ", 1)                         = 1
read(3, "{", 1)                         = 1
read(3, "R", 1)                         = 1
read(3, "e", 1)                         = 1
read(3, "g", 1)                         = 1
read(3, "i", 1)                         = 1
read(3, "s", 1)                         = 1
read(3, "t", 1)                         = 1
read(3, "e", 1)                         = 1
read(3, "r", 1)                         = 1
read(3, "F", 1)                         = 1
read(3, "o", 1)                         = 1
read(3, "r", 1)                         = 1
read(3, "m", 1)                         = 1
read(3, "a", 1)                         = 1
read(3, "t", 1)                         = 1
read(3, "t", 1)                         = 1
read(3, "e", 1)                         = 1
read(3, "r", 1)                         = 1
read(3, " ", 1)                         = 1
read(3, "m", 1)                         = 1
read(3, "o", 1)                         = 1
read(3, "d", 1)                         = 1
read(3, "u", 1)                         = 1
read(3, "l", 1)                         = 1
read(3, "e", 1)                         = 1
read(3, " ", 1)                         = 1
read(3, " ", 1)                         = 1
read(3, "M", 1)                         = 1
read(3, "o", 1)                         = 1
read(3, "d", 1)                         = 1
read(3, "u", 1)                         = 1
read(3, "l", 1)                         = 1
read(3, "e", 1)                         = 1
read(3, "F", 1)                         = 1
read(3, "o", 1)                         = 1
read(3, "r", 1)                         = 1
read(3, "m", 1)                         = 1
read(3, "a", 1)                         = 1
read(3, "t", 1)                         = 1
read(3, "t", 1)                         = 1
--- SIGALRM (Alarm clock) ---
sigreturn()                             = ? (mask now [])
read(3, "e", 1)                         = 1
read(3, "r", 1)                         = 1
read(3, "}", 1)                         = 1
read(3, "\n", 1)                        = 1
read(3, "e", 1)                         = 1
read(3, "n", 1)                         = 1
read(3, "d", 1)                         = 1
read(3, "\n", 1)                        = 1
read(3, "", 1)                          = 0
read(3, "", 1)                          = 0
read(3, "", 1)                          = 0
read(3, "", 1)                          = 0
read(3, "", 1)                          = 0
brk(0x8239000)                          = 0x8239000
brk(0x8242000)                          = 0x8242000
fcntl(3, F_GETFL)                       = 0 (flags O_RDONLY)
fstat(3, {st_mode=0, st_size=0, ...})   = 0
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40016000
_llseek(0x3, 0, 0, 0xbfffefa0, 0x1)     = 0
read(3, "", 4096)                       = 0
_llseek(0x3, 0, 0x37a7, 0xbfffef74, 0)  = 0
close(3)                                = 0
munmap(0x40016000, 4096)                = 0
--- SIGSEGV (Segmentation fault) ---
SYS_175(0x2, 0xbfffefdc, 0xbfffef5c, 0x8, 0x2) = 0
SYS_175(0x2, 0xbfffef5c, 0, 0x8, 0x2)   = 0
--- SIGALRM (Alarm clock) ---
sigreturn()                             = ? (mask now [])
sigreturn()                             = ? (mask now [])
--- SIGSEGV (Segmentation fault) ---
SYS_175(0x2, 0xbfffefdc, 0xbfffef5c, 0x8, 0x2) = 0
SYS_175(0x2, 0xbfffef5c, 0, 0x8, 0x2)   = 0
sigreturn()                             = ? (mask now [])
--- SIGSEGV (Segmentation fault) ---
SYS_175(0x2, 0xbfffefdc, 0xbfffef5c, 0x8, 0x2) = 0
SYS_175(0x2, 0xbfffef5c, 0, 0x8, 0x2)   = 0
sigreturn()                             = ? (mask now [])
--- SIGSEGV (Segmentation fault) ---
SYS_175(0x2, 0xbfffefdc, 0xbfffef5c, 0x8, 0x2) = 0
SYS_175(0x2, 0xbfffef5c, 0, 0x8, 0x2)   = 0
sigreturn()                             = ? (mask now [])
--- SIGSEGV (Segmentation fault) ---
SYS_175(0x2, 0xbfffefdc, 0xbfffef5c, 0x8, 0x2) = 0
SYS_175(0x2, 0xbfffef5c, 0, 0x8, 0x2)   = 0
sigreturn()                             = ? (mask now [])
--- SIGSEGV (Segmentation fault) ---
SYS_175(0x2, 0xbfffefdc, 0xbfffef5c, 0x8, 0x2) = 0
SYS_175(0x2, 0xbfffef5c, 0, 0x8, 0x2)   = 0
--- SIGALRM (Alarm clock) ---
sigreturn()                             = ? (mask now [])
sigreturn()                             = ? (mask now [])

etc...
--------------E4584036667296508746A62B--