chokkan/crfsuite — Issue #3: segfault on simple training input
Author: kho
Created: 2011-11-16 01:08:44+00:00
State: open

Training input:

```
a x
b y
```

Output of running ```crfsuite learn```

```
CRFSuite 0.12 Copyright (c) 2007-2011 Naoaki Okazaki

Start time of the training: 2011-11-16T01:05:15Z

Reading the data set(s)
[1] a
0....1....2....3....4....5....6....7....8....9....10
Number of instances: 1
Seconds required: 0.000

Statistics the data set(s)
Number of data sets (groups): 1
Number of instances: 1
Number of items: 2
Number of attributes: 2
Number of labels: 2

Feature generation
type: CRF1d
feature.minfreq: 0.000000
feature.possible_states: 0
feature.possible_transitions: 0
0....1....2....3....4....5....6....7....8....9....10
Number of features: 3
Seconds required: 0.000

L-BFGS optimization
c1: 0.000000
c2: 1.000000
num_memories: 6
max_iterations: 2147483647
epsilon: 0.000010
stop: 10
delta: 0.000010
linesearch: MoreThuente
linesearch.max_iterations: 20

***** Iteration #1 *****
Loss: 1.166644
Feature norm: 0.423138
Error norm: 0.014465
Active features: 3
Line search trials: 2
Line search step: 0.410505
Seconds required for this iteration: 0.000

***** Iteration #2 *****
Loss: 1.166594
Feature norm: 0.600181
Error norm: 0.002310
Active features: 3
Line search trials: 1
Line search step: 1.000000
Seconds required for this iteration: 0.000

***** Iteration #3 *****
Loss: 1.166593
Feature norm: 0.600198
Error norm: 0.000006
Active features: 3
Line search trials: 1
Line search step: 1.000000
Seconds required for this iteration: 0.000

*** glibc detected *** crfsuite: free(): invalid pointer: 0x00000000098b4e30 ***
======= Backtrace: =========
/lib64/libc.so.6[0x336fa7245f]
/lib64/libc.so.6(cfree+0x4b)[0x336fa728bb]
/chomes/wuke/.world/liblbfgs-1.10/lib/liblbfgs-1.10.so(lbfgs+0x1483)[0x2b594b9c8003]
/chomes/wuke/.world/crfsuite-0.12/lib/libcrfsuite-0.12.so(crfsuite_train_lbfgs+0x303)[0x2b594b7b8ab3]
/chomes/wuke/.world/crfsuite-0.12/lib/libcrfsuite-0.12.so[0x2b594b7c004d]
crfsuite[0x403080]
crfsuite[0x40480b]
/lib64/libc.so.6(__libc_start_main+0xf4)[0x336fa1d994]
crfsuite[0x401629]
======= Memory map: ========
00400000-00407000 r-xp 00000000 00:2c 9494537 /chomes/wuke/.world/crfsuite-0.12/bin/crfsuite
00606000-00607000 rw-p 00006000 00:2c 9494537 /chomes/wuke/.world/crfsuite-0.12/bin/crfsuite
098a1000-098c2000 rw-p 098a1000 00:00 0 [heap]
336f600000-336f61c000 r-xp 00000000 fd:00 1011849 /lib64/ld-2.5.so
336f81b000-336f81c000 r--p 0001b000 fd:00 1011849 /lib64/ld-2.5.so
336f81c000-336f81d000 rw-p 0001c000 fd:00 1011849 /lib64/ld-2.5.so
336fa00000-336fb4e000 r-xp 00000000 fd:00 261766 /lib64/libc-2.5.so
336fb4e000-336fd4e000 ---p 0014e000 fd:00 261766 /lib64/libc-2.5.so
336fd4e000-336fd52000 r--p 0014e000 fd:00 261766 /lib64/libc-2.5.so
336fd52000-336fd53000 rw-p 00152000 fd:00 261766 /lib64/libc-2.5.so
336fd53000-336fd58000 rw-p 336fd53000 00:00 0
3370200000-3370282000 r-xp 00000000 fd:00 261846 /lib64/libm-2.5.so
3370282000-3370481000 ---p 00082000 fd:00 261846 /lib64/libm-2.5.so
3370481000-3370482000 r--p 00081000 fd:00 261846 /lib64/libm-2.5.so
3370482000-3370483000 rw-p 00082000 fd:00 261846 /lib64/libm-2.5.so
3374200000-337420d000 r-xp 00000000 fd:00 261848 /lib64/libgcc_s-4.1.2-20080825.so.1
337420d000-337440d000 ---p 0000d000 fd:00 261848 /lib64/libgcc_s-4.1.2-20080825.so.1
337440d000-337440e000 rw-p 0000d000 fd:00 261848 /lib64/libgcc_s-4.1.2-20080825.so.1
2b594b7ae000-2b594b7b0000 rw-p 2b594b7ae000 00:00 0
2b594b7b0000-2b594b7c5000 r-xp 00000000 00:2c 9494832 /chomes/wuke/.world/crfsuite-0.12/lib/libcrfsuite-0.12.so
2b594b7c5000-2b594b9c4000 ---p 00015000 00:2c 9494832 /chomes/wuke/.world/crfsuite-0.12/lib/libcrfsuite-0.12.so
2b594b9c4000-2b594b9c5000 rw-p 00014000 00:2c 9494832 /chomes/wuke/.world/crfsuite-0.12/lib/libcrfsuite-0.12.so
2b594b9c5000-2b594b9c9000 r-xp 00000000 00:2c 16683972 /chomes/wuke/.world/liblbfgs-1.10/lib/liblbfgs-1.10.so
2b594b9c9000-2b594bbc8000 ---p 00004000 00:2c 16683972 /chomes/wuke/.world/liblbfgs-1.10/lib/liblbfgs-1.10.so
2b594bbc8000-2b594bbc9000 rw-p 00003000 00:2c 16683972 /chomes/wuke/.world/liblbfgs-1.10/lib/liblbfgs-1.10.so
2b594bbc9000-2b594bbca000 rw-p 2b594bbc9000 00:00 0
2b594bc14000-2b594bc15000 rw-p 2b594bc14000 00:00 0
2b594bc15000-2b594bc18000 r-xp 00000000 00:2c 9494889 /chomes/wuke/.world/crfsuite-0.12/lib/libcqdb-0.12.so
2b594bc18000-2b594be17000 ---p 00003000 00:2c 9494889 /chomes/wuke/.world/crfsuite-0.12/lib/libcqdb-0.12.so
2b594be17000-2b594be18000 rw-p 00002000 00:2c 9494889 /chomes/wuke/.world/crfsuite-0.12/lib/libcqdb-0.12.so
2b594be18000-2b594be1a000 rw-p 2b594be18000 00:00 0
7fffb3b20000-7fffb3b35000 rw-p 7ffffffe9000 00:00 0 [stack]
7fffb3bfd000-7fffb3c00000 r-xp 7fffb3bfd000 00:00 0 [vdso]
ffffffffff600000-ffffffffffe00000 ---p 00000000 00:00 0 [vsyscall]
Aborted
```