pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: byavuz81@gmail.com
Subject: BUG #17358: While using --with-uuid=bsd option, uuid_ossp test fails on NetBSD 9.2
Date: Fri, 07 Jan 2022 10:38:50 +0000
Message-ID: <17358-89806e7420797025@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      17358
Logged by:          Nazir Bilal Yavuz
Email address:      byavuz81@gmail.com
PostgreSQL version: 14.1
Operating system:   NetBSD 9.2
Description:        

Hi, 

While installing PostgreSQL from source code, uuid_ossp test fails on NetBSD
9.2.
The commands I used are:
./configure \
--with-uuid=bsd \
\
--with-includes=/usr/pkg/include --with-libs=/usr/pgk/lib && \
gmake -s world-bin && gmake -s check-world

OS: 
NetBSD localhost 9.2 NetBSD 9.2 (GENERIC) #0: Wed May 12 13:15:55 UTC 2021 
mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64

Error message: 
test uuid                         ... ok           11 ms
test uuid                         ... ok           12 ms
test uuid_ossp                    ... FAILED       11 ms

Diff:
diff -U3 /home/postgres/postgres/contrib/uuid-ossp/expected/uuid_ossp.out
/home/postgres/postgres/contrib/uuid-ossp/results/uuid_ossp.out
--- /home/postgres/postgres/contrib/uuid-ossp/expected/uuid_ossp.out   
2022-01-07 09:54:27.613601852 +0000
+++ /home/postgres/postgres/contrib/uuid-ossp/results/uuid_ossp.out    
2022-01-07 10:02:25.833291382 +0000
@@ -59,7 +59,7 @@
        uuid_reserved_bits(uuid_generate_v1());
  uuid_version_bits | uuid_reserved_bits 
 -------------------+--------------------
- 00010000          | 10000000
+ 01000000          | 10000000
 (1 row)
 
 -- Although RFC 4122 only requires the multicast bit to be set in V1MC
style
@@ -70,20 +70,20 @@
        uuid_local_admin_bit(uuid_generate_v1mc());
  uuid_version_bits | uuid_reserved_bits | uuid_multicast_bit |
uuid_local_admin_bit 

-------------------+--------------------+--------------------+----------------------
- 00010000          | 10000000           | t                  | t
+ 01000000          | 10000000           | t                  | t
 (1 row)
 
 -- timestamp+clock sequence should be monotonic increasing in v1
 SELECT uuid_timestamp_bits(uuid_generate_v1()) <
uuid_timestamp_bits(uuid_generate_v1());
  ?column? 
 ----------
- t
+ f
 (1 row)
 
 SELECT uuid_timestamp_bits(uuid_generate_v1mc()) <
uuid_timestamp_bits(uuid_generate_v1mc());
  ?column? 
 ----------
- t
+ f
 (1 row)
 
 -- Ideally, the node value is stable in V1 addresses, but OSSP UUID
@@ -96,7 +96,7 @@
        END;
  case 
 ------
- t
+ f
 (1 row)
 
 -- In any case, V1MC node addresses should be random.

Thanks,
Nazir Bilal Yavuz



view thread (13+ messages)  latest in thread

Message-ID: <17358-89806e7420797025@postgresql.org>
Permalink:  ../17358-89806e7420797025@postgresql.org/
Also on:    postgresql.org/message-id/17358-89806e7420797025@postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, byavuz81@gmail.com
  Subject: Re: BUG #17358: While using --with-uuid=bsd option, uuid_ossp test fails on NetBSD 9.2
  In-Reply-To: <17358-89806e7420797025@postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox