tlf-devel
[Top][All Lists]
Advanced

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

Re: [Tlf-devel] Re: TLF 0.8.19


From: Ladislav Vaiz
Subject: Re: [Tlf-devel] Re: TLF 0.8.19
Date: Thu, 24 Apr 2003 12:44:37 +0200 (MEST)

> Looks like tlf reads in the whole file in 1 string (fgets does not work?)

No. Tlf reads file using libc functions (fgets). But libc reads data
in blocks (here 4096) from kernel (read syscall). File is cached in libc
so second+ calls of gfets read data from this cache.

Lada, OK1ZIA

>
> Rein
>
> On Wednesday 23 April 2003 20:04, you wrote:
> > Gents,
> >
> > I removed all the hashed lines from the logcfg.dat file but it still
> > reported:
> >
> > close(3)                                = 0
> > munmap(0x30015000, 4096)                = 0
> > rt_sigaction(SIGTSTP, {SIG_IGN}, {0xff5c6c0, [], SA_RESTART}, 8) = 0
> > _newselect(0x1, 0x7ffff878, 0, 0, 0x7ffff8f8) = 0
> > _newselect(0x1, 0x7ffff878, 0, 0, 0x7ffff8f8) = 0
> > write(1, "\r\nreading configuration data", 28) = 28
> > rt_sigaction(SIGTSTP, {0xff5c6c0, [], SA_RESTART}, NULL, 8) = 0
> > open("logcfg.dat", O_RDONLY)            = 3
> > fstat(3, {st_mode=S_IFREG|0644, st_size=450, ...}) = 0
> > mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
> > 0x30015000
> > read(3, "EDITOR=vi\nCALL=M0AWS\nCONTEST=qso"..., 4096) = 450
> > --- SIGSEGV (Segmentation fault) ---
> > +++ killed by SIGSEGV +++
> >
> >
> > Has anyone seen this problem on the Intel platform or is this PPC specific
> > ?
> >
> > Regards,
> >
> > MikeT ...
> > M0AWS
> >
> > On Monday 21 April 2003 9:15 pm, Joop Stakenborg wrote:
> > > rein couperus PA0RCT wrote:
> > > >Anybody tried running tlf on a power pc?
> > > >
> > > >73,
> > > >
> > > >Rein PA0RCT
> > >
> > > Mike,
> > >
> > > Please install strace and do:
> > >
> > > strace -o trace.txt tlf
> > >
> > > When it segfaults, have a look at trace.txt.
> > > It might give you a clue what went wrong....
> > >
> > > Regards,
> > > Joop PA4TU
>
>

__... ...__  _.. .  ___ _._ .____ __.. .. ._

Autorem Murphyho zákona není Murphy, nýbrž někdo jiný téhož jména.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]