bug-recutils
[Top][All Lists]
Advanced

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

[bug-recutils] segfault in recdel


From: Elias Pipping
Subject: [bug-recutils] segfault in recdel
Date: Sat, 4 Dec 2010 17:37:10 +0100

Hi,

both with recutils-1.0 and HEAD, running

  echo 'field1: value11' | ./utils/recdel --force

gives me a segfault.

Here's how I came across that:

address@hidden ~/recutils/torture/utils $ make check TESTS=recdel.sh
make  check-TESTS
make[1]: Entering directory `/home/pipping/recutils/torture/utils'
Running recdel test(s):
  recdel-first ok
  recdel-second ok
  recdel-last ok
  recdel-comment ok
  recdel-sex ok
  recdel-try-type xfail
  recdel-type ok
  recdel-request-all xfail
  recdel-force-all ./testutils.sh: line 104: 19628 Done
    cat multiple-records.in
     19629 Segmentation fault      | recdel --force >
recdel-force-all.out 2> recdel-force-all.err
error: testutils: test_tool: running recdel.
PASS: recdel.sh
=============
1 test passed
=============
make[1]: Leaving directory `/home/pipping/recutils/torture/utils'
address@hidden ~/recutils/torture/utils $ echo $?
0
address@hidden ~/recutils/torture/utils $

Here's a backtrace:

address@hidden ~/recutils $ cat input
field1: value11
address@hidden ~/recutils $ ./libtool --mode=execute gdb ./utils/recdel
GNU gdb (GDB) 7.2
Copyright (C) 2010 Free Software Foundation, Inc.
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.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/pipping/recutils/utils/.libs/recdel...done.
(gdb) run --force input
Starting program: /home/pipping/recutils/utils/.libs/recdel --force input
[Thread debugging using libthread_db enabled]

Program received signal SIGSEGV, Segmentation fault.
rec_record_next (record=0x0, elem=...) at rec-record.c:457
457       elem.mset_elem = rec_mset_next (record->mset,
(gdb) bt
#0  rec_record_next (record=0x0, elem=...) at rec-record.c:457
#1  0x00007ffff7bc32e5 in rec_write_record (writer=0x6246d0,
record=0x0, mode=REC_WRITER_NORMAL) at rec-writer.c:349
#2  0x00007ffff7bc350b in rec_write_rset (writer=0x6246d0,
rset=0x624130) at rec-writer.c:565
#3  0x00007ffff7bc35da in rec_write_db (writer=0x6246d0, db=0x623e00)
at rec-writer.c:594
#4  0x00000000004029ae in recutl_write_db_to_file (db=0x623e00,
file_name=0x7fffffffe5ca "input") at recutl.c:339
#5  0x000000000040350e in main (argc=<value optimized out>,
argv=0x7fffffffe2a8) at recdel.c:299
(gdb)

I'm attaching my (xz-compressed) config.log for recutils HEAD.


Regards,

Elias Pipping

Attachment: config.log.xz
Description: application/xz


reply via email to

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