Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

a bug in perl5 under Linux #861

Closed
p5pRT opened this issue Nov 17, 1999 · 9 comments
Closed

a bug in perl5 under Linux #861

p5pRT opened this issue Nov 17, 1999 · 9 comments

Comments

@p5pRT
Copy link

@p5pRT p5pRT commented Nov 17, 1999

Migrated from rt.perl.org#1791 (status was 'resolved')

Searchable as RT1791$

@p5pRT
Copy link
Author

@p5pRT p5pRT commented Nov 17, 1999

From guoheng.wei@intel.com

% perl -v

This is perl, version 5.005_03 built for i386-linux

% perl
print 8473018401 % 524288 , "\n"
524287

The correct answer should be 33.

Guoheng Wei _.-.
Sr. Component Design Eng. '( ^{_} (
Intel Corp. `~\`-----'\
512-314-0053 )_)---)_)

@p5pRT
Copy link
Author

@p5pRT p5pRT commented Nov 17, 1999

From [Unknown Contact. See original ticket]

I find this problem when I use perl5 compiled under Linux.

% perl -v

This is perl, version 5.005_03 built for i386-linux

% perl
print 8473018401 % 524288 , "\n"
524287

The correct answer should be 33.

% perl -v
This is perl, version 5.005_62 built for i686-linux
[etc]

% perl
print 8473018401 % 524288 , "\n"
33

--tom

@p5pRT
Copy link
Author

@p5pRT p5pRT commented Nov 17, 1999

From @AlanBurlison

% perl -v
This is perl, version 5.005_62 built for i686-linux
[etc]

% perl
print 8473018401 % 524288 , "\n"
33

$ perl -v
This is perl, version 5.005_03 built for sun4-solaris
[etc]

$ perl
print 8473018401 % 524288 , "\n"
524287

Hmm.

Alan Burlison

@p5pRT
Copy link
Author

@p5pRT p5pRT commented Nov 17, 1999

From [Unknown Contact. See original ticket]

Alan Burlison writes​:

% perl
print 8473018401 % 524288 , "\n"
33

$ perl
print 8473018401 % 524288 , "\n"
524287

Hmm.

Well, you see​: (unintentionally) insulting you is not my only function
on p5p.

Ilya

@p5pRT
Copy link
Author

@p5pRT p5pRT commented Nov 17, 1999

From @AlanBurlison

Ilya Zakharevich wrote​:

Well, you see​: (unintentionally) insulting you is not my only function
on p5p.

And the other function is?

;-)

Alan Burlison

@p5pRT
Copy link
Author

@p5pRT p5pRT commented Nov 18, 1999

From [Unknown Contact. See original ticket]

At 20​:59 +0100 1999-11-17, Ilya Zakharevich wrote​:

Alan Burlison writes​:

% perl
print 8473018401 % 524288 , "\n"
33

$ perl
print 8473018401 % 524288 , "\n"
524287

Hmm.

Well, you see​: (unintentionally) insulting you is not my only function
on p5p.

Fine, fine, but does anybody have any idea when and how the problem was
fixed, and whether the fix has yet been/can be applied in the maintenance
track? A grep through _62 Changes for % and modulo sheds no light. All
I've established is that the fix was in place by _57, the earliest
development version I have around.

--
Dominic Dunlop

@p5pRT
Copy link
Author

@p5pRT p5pRT commented Nov 18, 1999

From @vanstyn

In <v03110704b4598751194b@​[212.24.192.242]>, Dominic Dunlop writes​:
:At 20​:59 +0100 1999-11-17, Ilya Zakharevich wrote​:
:> Alan Burlison writes​:
:> > > % perl
:> > > print 8473018401 % 524288 , "\n"
:> > > 33
:>
:> > $ perl
:> > print 8473018401 % 524288 , "\n"
:> > 524287
:> >
:> > Hmm.
:>
:> Well, you see​: (unintentionally) insulting you is not my only function
:> on p5p.
:
:Fine, fine, but does anybody have any idea when and how the problem was
:fixed, and whether the fix has yet been/can be applied in the maintenance
:track? A grep through _62 Changes for % and modulo sheds no light. All
:I've established is that the fix was in place by _57, the earliest
:development version I have around.

For what it's worth​:

crypt% setperl 57
old​: perl5.005_03; new​: perl5.005_57
crypt% perl -wle 'print 8473018401 % 524288'
33
crypt% setperl 56
old​: perl5.005_57; new​: perl5.005_56
crypt% perl -wle 'print 8473018401 % 524288'
524287
crypt%

.. so it was presumably fixed for the first time in _57.

Hugo

@p5pRT
Copy link
Author

@p5pRT p5pRT commented Nov 18, 1999

From [Unknown Contact. See original ticket]

On Thu, Nov 18, 1999 at 11​:41​:09AM +0100, Dominic Dunlop wrote​:

% perl
print 8473018401 % 524288 , "\n"
33

$ perl
print 8473018401 % 524288 , "\n"
524287

Hmm.

Well, you see​: (unintentionally) insulting you is not my only function
on p5p.

Fine, fine, but does anybody have any idea when and how the problem was
fixed, and whether the fix has yet been/can be applied in the maintenance
track?

I think I did it shortly before numconvert modifications.

Ilya

@p5pRT
Copy link
Author

@p5pRT p5pRT commented Nov 18, 1999

From @gsar

On Thu, 18 Nov 1999 11​:41​:09 +0100, Dominic Dunlop wrote​:

Fine, fine, but does anybody have any idea when and how the problem was
fixed, and whether the fix has yet been/can be applied in the maintenance
track? A grep through _62 Changes for % and modulo sheds no light.

  % grep ' % ' Changes | grep mod
  Subject​: [PATCH 5.005_*] Make % use fmod()

Sarathy
gsar@​ActiveState.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant