NetBSD-Bugs archive

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

bin/39627: calendar segfault



>Number:         39627
>Category:       bin
>Synopsis:       calendar segfault
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Sep 25 10:20:00 +0000 2008
>Originator:     Thomas Klausner
>Release:        NetBSD 4.99.72
>Organization:

>Environment:
        
        
Architecture: x86_64
Machine: amd64
>Description:
calendar segfaults on the following input line:
Monday 1500-1600 something
The backtrace is:
(gdb) r -f ~/calendar.test
Starting program: /usr/src/usr.bin/calendar/calendar -f ~/calendar.test

Program received signal SIGSEGV, Segmentation fault.
0x0000000000401cc3 in isnow (endp=0x7f7ffda0906c "1600 something")
    at calendar.c:297
297             day = cumdays[month] + day;
(gdb) bt
#0  0x0000000000401cc3 in isnow (endp=0x7f7ffda0906c "1600 something")
    at calendar.c:297
#1  0x00000000004018ea in cal () at calendar.c:199
#2  0x0000000000401867 in main (argc=0, argv=0x7f7fffffd558) at calendar.c:176
(gdb) p month
$1 = 1500

This is a regression -- it worked in 2.0.
>How-To-Repeat:
See above.
>Fix:
        

>Unformatted:
        
        


Home | Main Index | Thread Index | Old Index