Source-Changes archive

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

Re: CVS commit: src/usr.bin/sort



> Module Name:  src
> Committed By: jdolecek
> Date:         Sun Feb 15 14:22:55 UTC 2004
> 
> Modified Files:
>       src/usr.bin/sort: init.c sort.c sort.h
> 
> Log Message:
> remove compile-time limit on number of -k options, allocate necessary
> structures as-needed

        seems you broke sort(1).  run it without giving any argument.

itojun


(gdb) run
Starting program: /usr/home/itojun/NetBSD/obj/usr.bin/sort.i386/sort 

Program received signal SIGSEGV, Segmentation fault.
0x0804b1f4 in fldreset (fldtab=0x8055024)
    at /home/itojun/NetBSD/src/usr.bin/sort/init.c:145
145                     for (i = 0; fldtab->icol.num != clist[i].num; i++)
(gdb) bt
#0  0x0804b1f4 in fldreset (fldtab=0x8055024)
    at /home/itojun/NetBSD/src/usr.bin/sort/init.c:145
#1  0xd0d0d0d0 in ?? ()
#2  0x0804c825 in main (argc=1, argv=0xbfbff6ac)
    at /home/itojun/NetBSD/src/usr.bin/sort/sort.c:264
#3  0x08048db2 in ___start ()
(gdb) print clist[0]
Error accessing memory address 0x0: Invalid argument.
(gdb) print clist
$1 = (struct coldesc *) 0x0




Home | Main Index | Thread Index | Old Index