develooper Front page | perl.perl5.porters | Postings from October 2018

[perl #133582] POSIX::log2 weird behaviour

Thread Next
From:
Dmitry Petrov
Date:
October 15, 2018 15:04
Subject:
[perl #133582] POSIX::log2 weird behaviour
Message ID:
rt-4.0.24-26754-1539355071-1878.133582-75-0@perl.org
# New Ticket Created by  Dmitry Petrov 
# Please include the string:  [perl #133582]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=133582 >


This is a bug report for perl from dpetrov@nes.ru,
generated with the help of perlbug 1.41 running under perl 5.28.0.


-----------------------------------------------------------------
perl -MPOSIX -e "print int POSIX::log2(64);"
5

WTF?

-----------------------------------------------------------------
---
Flags:
    category=library
    severity=high
    module=POSIX
---
Site configuration information for perl 5.28.0:

Configured by strawberry-perl at Sat Jun 23 13:56:45 2018.

Summary of my perl5 (revision 5 version 28 subversion 0) configuration:

  Platform:
    osname=MSWin32
    osvers=10.0.17134.112
    archname=MSWin32-x64-multi-thread
    uname='Win32 strawberry-perl 5.28.0.1 #1 Sat Jun 23 13:55:45 2018 x64'
    config_args='undef'
    hint=recommended
    useposix=true
    d_sigaction=undef
    useithreads=define
    usemultiplicity=define
    use64bitint=define
    use64bitall=undef
    uselongdouble=undef
    usemymalloc=n
    default_inc_excludes_dot=define
    bincompat5005=undef
  Compiler:
    cc='gcc'
    ccflags =' -s -O2 -DWIN32 -DWIN64 -DCONSERVATIVE
-D__USE_MINGW_ANSI_STDIO -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT
-DPERL_IMPLICIT_SYS -DUSE_PERLIO -fwrapv -fno-strict-aliasing
-mms-bitfields'
    optimize='-s -O2'
    cppflags='-DWIN32'
    ccversion=''
    gccversion='7.1.0'
    gccosandvers=''
    intsize=4
    longsize=4
    ptrsize=8
    doublesize=8
    byteorder=12345678
    doublekind=3
    d_longlong=define
    longlongsize=8
    d_longdbl=define
    longdblsize=16
    longdblkind=3
    ivtype='long long'
    ivsize=8
    nvtype='double'
    nvsize=8
    Off_t='long long'
    lseeksize=8
    alignbytes=8
    prototype=define
  Linker and Libraries:
    ld='g++'
    ldflags ='-s -L"C:\Strawberry\perl\lib\CORE" -L"C:\Strawberry\c\lib"'
    libpth=C:\Strawberry\c\lib C:\Strawberry\c\x86_64-w64-mingw32\lib
C:\Strawberry\c\lib\gcc\x86_64-w64-mingw32\7.1.0
    libs= -lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32
-ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr
-lwinmm -lversion -lodbc32 -lodbccp32 -lcomctl32
    perllibs= -lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32
-ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr
-lwinmm -lversion -lodbc32 -lodbccp32 -lcomctl32
    libc=
    so=dll
    useshrplib=true
    libperl=libperl528.a
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_win32.xs
    dlext=xs.dll
    d_dlsymun=undef
    ccdlflags=' '
    cccdlflags=' '
    lddlflags='-mdll -s -L"C:\Strawberry\perl\lib\CORE"
-L"C:\Strawberry\c\lib"'


---
@INC for perl 5.28.0:
    C:/Strawberry/perl/site/lib
    C:/Strawberry/perl/vendor/lib
    C:/Strawberry/perl/lib

---
Environment for perl 5.28.0:
    HOME (unset)
    LANG=RU
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=C:\Program Files\Far
Manager\;C:\ProgramData\Oracle\Java\javapath;C:\Program
Files\WinRAR;C:\Program Files
(x86)\Google\Chrome\Application;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program
Files (x86)\Common Files\Acronis\SnapAPI\;C:\adb;C:\Program Files
(x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Crucial\Crucial
Storage Executive;C:\Program Files (x86)\Microsoft SQL Server\Client
SDK\ODBC\130\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL
Server\130\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL
Server\130\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL
Server\130\Tools\Binn\ManagementStudio\;C:\Program Files
(x86)\Skype\Phone\;C:\Program Files (x86)\Microsoft SQL
Server\140\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL
Server\140\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL
Server\140\Tools\Binn\ManagementStudio\;C:\Strawberry\c\bin;C:\Strawberry\perl\site\bin;C:\Strawberry\perl\bin;C:\Program
Files\Git\cmd;C:\Program Files
(x86)\vim\vim74;C:\ProgramData\chocolatey\bin;C:\Users\Xellos\AppData\Local\atom\bin
    PERL_BADLANG (unset)
    SHELL (unset)


-- 
Dmitry Petrov,
programmer,
"New Economic School",
phone: +7 (495) 956 9508 (ext.112)
www.nes.ru


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About