The attached file (output of lorder) causes a segmentation fault in
GNU tsort 2.0.

data


: champion:~/dt/textutils-2.0; gdb src/tsort
GNU gdb 19990928
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...
(gdb) run ~/data
Starting program: /home/th/dt/textutils-2.0/src/tsort ~/data
/home/th/dt/textutils-2.0/src/tsort: /home/th/data: input contains a loop:

/home/th/dt/textutils-2.0/src/tsort: Cache/libgzcache.a

Program received signal SIGSEGV, Segmentation fault.
0x804903f in detect_loop (k=0x804bbd8) at tsort.c:324
324               k = k->top->suc;
(gdb) bt
#0  0x804903f in detect_loop (k=0x804bbd8) at tsort.c:324
#1  0x804907d in recurse_tree (root=0x804bbd8, action=0x8048fe8 <detect_loop>)
    at tsort.c:337
#2  0x804909e in recurse_tree (root=0x804bb30, action=0x8048fe8 <detect_loop>)
    at tsort.c:341
#3  0x804909e in recurse_tree (root=0x804bb68, action=0x8048fe8 <detect_loop>)
    at tsort.c:341
#4  0x804909e in recurse_tree (root=0x804b690, action=0x8048fe8 <detect_loop>)
    at tsort.c:341
#5  0x804909e in recurse_tree (root=0x804b580, action=0x8048fe8 <detect_loop>)
    at tsort.c:341
#6  0x804909e in recurse_tree (root=0x804b868, action=0x8048fe8 <detect_loop>)
    at tsort.c:341
#7  0x80490f6 in walk_tree (root=0x804b460, action=0x8048fe8 <detect_loop>)
    at tsort.c:355
#8  0x804935d in tsort (file=0xbffffb19 "/home/th/data") at tsort.c:447
#9  0x80494ba in main (argc=2, argv=0xbffff9a4) at tsort.c:485
(gdb) 


Theo Honohan
44 (0) 1223 478663

Reply via email to