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

Text::Wrap: "This shouldn't happen" happens #8492

Closed
p5pRT opened this issue Jun 20, 2006 · 6 comments
Closed

Text::Wrap: "This shouldn't happen" happens #8492

p5pRT opened this issue Jun 20, 2006 · 6 comments

Comments

@p5pRT
Copy link

p5pRT commented Jun 20, 2006

Migrated from rt.perl.org#39548 (status was 'rejected')

Searchable as RT39548$

@p5pRT
Copy link
Author

p5pRT commented Jun 20, 2006

From @eserte

This is a bug report for perl from slaven.rezic@​berlin.de,
generated with the help of perlbug 1.35 running under perl v5.8.8.


The following script

#!perl
require Text​::Wrap;
$VAR1 = " (Karl-Bonhoeffer-Nervenklinik zwischen Hermann-Piper-Str. und U-Bahnhof) ";
$VAR2 = " ";
$VAR3 = "(5079,19635 5124,19634 5228,19320 5246,19244)\n";
Text​::Wrap​::wrap($VAR1,$VAR2,$VAR3);
__END__

dies with the message​:

This shouldn't happen at /usr/perl5.8.8/lib/5.8.8/Text/Wrap.pm line 65.

A workaround would be to set $huge to "overflow" (and maybe to tell
the user so).

Regards,
  Slaven



Flags​:
  category=library
  severity=low


Site configuration information for perl v5.8.8​:

Configured by eserte at Sat Jan 28 10​:01​:12 CET 2006.

Summary of my perl5 (revision 5 version 8 subversion 8 patch 26973) configuration​:
  Platform​:
  osname=freebsd, osvers=4.9-stable, archname=i386-freebsd
  uname='freebsd vran.herceg.de 4.9-stable freebsd 4.9-stable #0​: thu dec 4 12​:12​:57 cet 2003 root@​vran.herceg.de​:usrobjusrlocalsrcfreebsd-4srcsysvran i386 '
  config_args='-Dprefix=/usr/perl5.8.8 -D cc=ccache cc -Dgccansipedantic -Duse64bit -de -D hintfile=myfreebsd'
  hint=recommended, useposix=true, d_sigaction=define
  usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
  useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
  use64bitint=undef use64bitall=undef uselongdouble=undef
  usemymalloc=y, bincompat5005=undef
  Compiler​:
  cc='ccache cc', ccflags ='-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -I/usr/local/include',
  optimize='-O2 -mpentium -pipe',
  cppflags='-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -I/usr/local/include'
  ccversion='', gccversion='2.95.4 20020320 [FreeBSD]', gccosandvers=''
  intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
  d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
  ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
  alignbytes=4, prototype=define
  Linker and Libraries​:
  ld='ccache cc', ldflags ='-Wl,-E -L/usr/local/lib'
  libpth=/usr/lib /usr/local/lib
  libs=-lgdbm -ldb -lm -lcrypt -lutil -lc
  perllibs=-lm -lcrypt -lutil -lc
  libc=, so=so, useshrplib=false, libperl=libperl.a
  gnulibc_version=''
  Dynamic Linking​:
  dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
  cccdlflags='-DPIC -fpic', lddlflags='-shared -L/usr/local/lib'

Locally applied patches​:
  MAINT26907


@​INC for perl v5.8.8​:
  /home/e/eserte/projects/webeditor-mysample/lib
  /home/e/eserte/work/WE_Framework/lib
  /home/e/eserte/projects/webeditor-mysample/lib
  /home/e/eserte/work/WE_Framework/lib
  /usr/perl5.8.8/lib/5.8.8/i386-freebsd
  /usr/perl5.8.8/lib/5.8.8
  /usr/perl5.8.8/lib/site_perl/5.8.8/i386-freebsd
  /usr/perl5.8.8/lib/site_perl/5.8.8
  /usr/perl5.8.8/lib/site_perl
  .


Environment for perl v5.8.8​:
  HOME=/home/e/eserte
  LANG (unset)
  LANGUAGE (unset)
  LC_ALL=de_DE.ISO8859-1
  LC_CTYPE=de_DE.ISO8859-1
  LD_LIBRARY_PATH (unset)
  LOGDIR (unset)
  PATH=/usr/X11R6/bin​:/usr/X11/bin​:/usr/perl5.8.0/bin​:/usr/local/bin​:/usr/bin​:/bin​:/usr/gnu/bin​:/usr/TeX/bin​:/usr/local/sbin​:/usr/sbin​:/sbin​:/usr/local/pilot/bin​:/home/e/eserte/bin/FreeBSD​:/home/e/eserte/bin/sh​:/home/e/eserte/bin​:/usr/X386/bin​:/usr/games​:/home/e/eserte/devel​:/home/e/eserte/projects/webeditor-mysample/bin​:/home/e/eserte/work/WE_Framework/scripts
  PERL5LIB=​:/home/e/eserte/projects/webeditor-mysample/lib​:/home/e/eserte/work/WE_Framework/lib​:/home/e/eserte/projects/webeditor-mysample/lib​:/home/e/eserte/work/WE_Framework/lib
  PERL5_CPANPLUS_CONFIG=/home/e/eserte/.cpanplus/config
  PERL_BADLANG (unset)
  PERL_HTML_DISPLAY_CLASS=HTML​::Display​::Mozilla
  SHELL=/bin/tcsh

@p5pRT
Copy link
Author

p5pRT commented Jun 22, 2006

From shouldbedomo@mac.com

Hoping that the maintainer of this module, David Muir Sharnoff, can
address this issue, I'm forwarding your report to him.

Begin forwarded message​:

Resent-From​: perl5-porters-return-114153-shouldbedomo=mac.com@​perl.org
From​: Slaven Rezic <perlbug-followup@​perl.org> (via RT)
Date​: 20 June 2006 23​:56​:42.000
Resent-To​: perl5-porters@​perl.org
To​: bugs-bitbucket@​rt.perl.org
Subject​: [perl #39548] Text​::Wrap​: "This shouldn't happen" happens
Reply-To​: perl5-porters@​perl.org

# New Ticket Created by Slaven Rezic
# Please include the string​: [perl #39548]
# in the subject line of all future correspondence about this issue.
# <URL​: https://rt-archive.perl.org/perl5/Ticket/Display.html?id=39548 >

This is a bug report for perl from slaven.rezic@​berlin.de,
generated with the help of perlbug 1.35 running under perl v5.8.8.

-----------------------------------------------------------------
The following script

#!perl
require Text​::Wrap;
$VAR1 = " (Karl-Bonhoeffer-Nervenklinik zwischen Hermann-Piper-
Str. und U-Bahnhof) ";
$VAR2 =
"
";
$VAR3 = "(5079,19635 5124,19634 5228,19320 5246,19244)\n";
Text​::Wrap​::wrap($VAR1,$VAR2,$VAR3);
__END__

dies with the message​:

This shouldn't happen at /usr/perl5.8.8/lib/5.8.8/Text/Wrap.pm line
65.

A workaround would be to set $huge to "overflow" (and maybe to tell
the user so).

Regards,
Slaven
-----------------------------------------------------------------
---
Flags​:
category=library
severity=low
---
Site configuration information for perl v5.8.8​:

Configured by eserte at Sat Jan 28 10​:01​:12 CET 2006.

Summary of my perl5 (revision 5 version 8 subversion 8 patch 26973)
configuration​:
Platform​:
osname=freebsd, osvers=4.9-stable, archname=i386-freebsd
uname='freebsd vran.herceg.de 4.9-stable freebsd 4.9-stable #0​:
thu dec 4 12​:12​:57 cet 2003
root@​vran.herceg.de​:usrobjusrlocalsrcfreebsd-4srcsysvran i386 '
config_args='-Dprefix=/usr/perl5.8.8 -D cc=ccache cc -
Dgccansipedantic -Duse64bit -de -D hintfile=myfreebsd'
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=y, bincompat5005=undef
Compiler​:
cc='ccache cc', ccflags ='-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H
-fno-strict-aliasing -pipe -I/usr/local/include',
optimize='-O2 -mpentium -pipe',
cppflags='-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-
aliasing -pipe -I/usr/local/include'
ccversion='', gccversion='2.95.4 20020320 [FreeBSD]',
gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define,
longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8,
Off_t='off_t', lseeksize=8
alignbytes=4, prototype=define
Linker and Libraries​:
ld='ccache cc', ldflags ='-Wl,-E -L/usr/local/lib'
libpth=/usr/lib /usr/local/lib
libs=-lgdbm -ldb -lm -lcrypt -lutil -lc
perllibs=-lm -lcrypt -lutil -lc
libc=, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version=''
Dynamic Linking​:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
cccdlflags='-DPIC -fpic', lddlflags='-shared -L/usr/local/lib'

Locally applied patches​:
MAINT26907

---
@​INC for perl v5.8.8​:
/home/e/eserte/projects/webeditor-mysample/lib
/home/e/eserte/work/WE_Framework/lib
/home/e/eserte/projects/webeditor-mysample/lib
/home/e/eserte/work/WE_Framework/lib
/usr/perl5.8.8/lib/5.8.8/i386-freebsd
/usr/perl5.8.8/lib/5.8.8
/usr/perl5.8.8/lib/site_perl/5.8.8/i386-freebsd
/usr/perl5.8.8/lib/site_perl/5.8.8
/usr/perl5.8.8/lib/site_perl
.

---
Environment for perl v5.8.8​:
HOME=/home/e/eserte
LANG (unset)
LANGUAGE (unset)
LC_ALL=de_DE.ISO8859-1
LC_CTYPE=de_DE.ISO8859-1
LD_LIBRARY_PATH (unset)
LOGDIR (unset)
PATH=/usr/X11R6/bin​:/usr/X11/bin​:/usr/perl5.8.0/bin​:/usr/local/
bin​:/usr/bin​:/bin​:/usr/gnu/bin​:/usr/TeX/bin​:/usr/local/sbin​:/usr/
sbin​:/sbin​:/usr/local/pilot/bin​:/home/e/eserte/bin/FreeBSD​:/home/e/
eserte/bin/sh​:/home/e/eserte/bin​:/usr/X386/bin​:/usr/games​:/home/e/
eserte/devel​:/home/e/eserte/projects/webeditor-mysample/bin​:/home/e/
eserte/work/WE_Framework/scripts
PERL5LIB=​:/home/e/eserte/projects/webeditor-mysample/lib​:/home/
e/eserte/work/WE_Framework/lib​:/home/e/eserte/projects/webeditor-
mysample/lib​:/home/e/eserte/work/WE_Framework/lib
PERL5_CPANPLUS_CONFIG=/home/e/eserte/.cpanplus/config
PERL_BADLANG (unset)
PERL_HTML_DISPLAY_CLASS=HTML​::Display​::Mozilla
SHELL=/bin/tcsh

--
Dominic Dunlop

@p5pRT
Copy link
Author

p5pRT commented Jun 22, 2006

The RT System itself - Status changed from 'new' to 'open'

@p5pRT
Copy link
Author

p5pRT commented Jun 22, 2006

From shouldbedomo@mac.com

On 2006–06–22, at 16​:33, I wrote​:

Hoping that the maintainer of this module, David Muir Sharnoff, can
address this issue, I'm forwarding your report to him.

I should have added, that, as the module's shipped with the Core Perl
distribution, the perl5 maintainers get to grapple with the problem
should this strategy fail!
--
Dominic Dunlop

@p5pRT
Copy link
Author

p5pRT commented Jul 5, 2006

From @muir

I cannot reproduce this problem.

I've tried perl 5.8.8, 5.8.7, 5.8.0.

I've tried both my distributed version of Text​::Wrap and the version
from perl 5.8.8 & 5.9.3 distributions.

Which version of Text​::Wrap are you using?

-Dave

@p5pRT
Copy link
Author

p5pRT commented May 12, 2008

p5p@spam.wizbit.be - Status changed from 'open' to 'rejected'

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

No branches or pull requests

1 participant