bug-recutils
[Top][All Lists]
Advanced

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

Re: [bug-recutils] [help-recutils] core dump with recsel


From: Aikido Guy
Subject: Re: [bug-recutils] [help-recutils] core dump with recsel
Date: Fri, 4 Oct 2013 10:47:11 -0400

On Thu, Oct 3, 2013 at 2:34 PM, Jose E. Marchesi <address@hidden> wrote:

    on tmp.rec:
    > %rec: one
    > %mandatory: Foo
    > + Bar
    > %unique: Foo
    > %sort: Foo
    > %type: Foo line
    >
    > Foo: blah
    > Bar: blah
    >
    > Foo: blee
    > Bar: blee
    >
    > #%rec: two

    A segmentation fault occurs.

I cannot reproduce this problem with git master.

    Additionally (on a simpler *.rec file) the -P reports extra
    newlines.

    Am I doing something strange here?

Can you provide an example featuring these extra newlines?  I don't see
anything wrong on the output of -P...

Thanks.

I was using recutils-1.5.tar.gz + a patch when I received this segmentation fault. I uninstalled this.

I then performed the following:
$ git clone git://git.savannah.gnu.org/recutils.git
$ cd recutils/
$ more INSTALL  # not found
$ ./bootstrap
$ ./configure
$ make
$ sudo make install
$ man recinf     # works
$ recinf --version
recinf: error while loading shared libraries: librec.so.0: cannot open shared object file: No such file or directory
$ find / -name librec.so.0
/home/blah/recutils/recutils/src/.libs/librec.so.0
/usr/local/lib/librec.so.0
$ sudo ldconfig
$ recinf --version
recinf (GNU recutils) 1.5

Copyright (C) 2010, 2011, 2012 Jose E. Marchesi.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Jose E. Marchesi.

Ok. So it seems that I am up and running with the git master code and yes, I can confirm that the core dump has gone for git master.

As for extra newlines, when using the same tmp.rec file above (I was previously using a simpler tmp.rec file in order to bypass the core dump problem):
$ recsel --type=one -P Foo tmp.rec
> blah
>
> blee

As can be seen, there is an extra blank line between blah and blee. Is this the expected behaviour? I would like to request that no blank line exists. Thanks :)




reply via email to

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