pkgsrc-Bugs archive

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

pkg/52460: devel/jq: strftime function causes core dump



>Number:         52460
>Category:       pkg
>Synopsis:       devel/jq: strftime function causes core dump
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Aug 03 04:05:00 +0000 2017
>Originator:     Kimihiro Nonaka
>Release:        HEAD (20170802)
>Organization:
>Environment:
NetBSD netbsd 7.1_STABLE NetBSD 7.1_STABLE (NBSERVER) #10: Wed Jul 26 09:55:06 JST 2017  nonaka@netbsd:/home/storage/snapshot/NetBSD/7-STABLE/obj.NetBSD-amd64/amd64/sys/arch/amd64/compile/NBSERVER amd64
>Description:
nonaka@netbsd$ echo 334 | jq 'strftime("%Y-%m-%dT%H:%M:%SZ")'
Memory fault (core dumped)
nonaka@netbsd$ gdb jq
GNU gdb (GDB) 7.7.1
Copyright (C) 2014 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--netbsd".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from jq...(no debugging symbols found)...done.
(gdb) core jq.core
[New process 1]
Core was generated by `jq'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00000000004054a1 in tm2jv ()
(gdb) bt
#0  0x00000000004054a1 in tm2jv ()
#1  0x00000000004056b7 in f_gmtime ()
#2  0x0000000000405cc1 in f_strftime ()
#3  0x0000000000404684 in jq_next ()
#4  0x00000000004026da in process ()
#5  0x0000000000426436 in main ()
(gdb)
>How-To-Repeat:
echo 334 | jq 'strftime("%Y-%m-%dT%H:%M:%SZ")'
>Fix:



Home | Main Index | Thread Index | Old Index