Subject: port-alpha/9026: mysql on alpha returns illegal data in select now();
To: None <gnats-bugs@gnats.netbsd.org>
From: None <tom@knienieder.com>
List: netbsd-bugs
Date: 12/19/1999 05:18:51
>Number:         9026
>Category:       port-alpha
>Synopsis:       mysql on alpha returns illegal data in select now();
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-alpha-maintainer (NetBSD/alpha Portmaster)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Dec 19 05:18:00 1999
>Last-Modified:
>Originator:     Tom Knienieder
>Organization:
none to speak of
>Release:        1.4.1
>Environment:
NetBSD dubai 1.4.1 NetBSD 1.4.1 (MALAGA) #0: Tue Dec 10 08:54:06 PST 2019
root@malaga2:/usr/src/sys/arch/alpha/compile/MALAGA alpha

>Description:
mysql (3.22.21, 3.22.21) from the ports returns wrong data in a
select now() statment.



>How-To-Repeat:
- install mysql from ports.
- call the commandline interface for mysql
do the following select:

mysql> select now();
+---------------------+
| now()               |
+---------------------+
| 2136-01-25 20:29:34 |
+---------------------+
1 row in set (0.00 sec)


>Fix:

i ifdef'd time(),localtime() inside mit-pthread. This fixed
it, but of course it's not threadsafe now - so this is not a real 
fix, but gives an idea where to look for this error.

>Audit-Trail:
>Unformatted: