Closed Bug 927455 Opened 11 years ago Closed 11 years ago

Text::Wrap 2012.0818 incorrectly parses strings when $Text::Wrap::huge = 'wrap'

Categories

(Bugzilla :: Creating/Changing Bugs, defect)

4.2.5
x86_64
Other
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: rednuhtt, Unassigned)

References

()

Details

Attachments

(1 file)

Environment: Windows 2012 server, mysql-5.5.29-winx64, ActivePerl-5.14.3.1404, IIS 8, Bugzilla 4.2.5

Problem:
When submitting a comment only to a certain bug the following error is thrown:

"Bugzilla has suffered an internal error. Please save this page and send it to Admin@whatever.com with details of what you were doing at the time this message appeared. 

URL: https://bz.whatever.com/process_bug.cgi
 
undef error - This shouldn't happen at C:/Perl64/lib/Text/Wrap.pm line 84.  "

The comment is recorded in Bugzilla but Bugzilla doesn't send the email after the above error occurs.

Steps taken to isolate the issue but the issue still persists:

1. Restart of the server ...
2. Run checksetup.pl
3. Set email to none
4. The issue happens when changing anything to the bug not only adding a comment.
5. Deleted the comments from the database from that specific bug but still the issue appears when entering a new comment.
6. Exported the bug in XML and imported it back and the new Bug doesn't show any problems.
7. Exported the database to a test server and the same behavior was observed to the same bug.

Any help is much appreciated.

Best regards, 

Rednuht.
(In reply to Rednuht from comment #0)
> undef error - This shouldn't happen at C:/Perl64/lib/Text/Wrap.pm line 84.  "

I doubt the error message says "This shouldn't happen" or Perl has a lot of humor.

Without more information, there is nothing we can do for you. Probably someone inserted some invalid character in a bug comment (which is the only one calling Text::Wrap). Also make sure your installation uses UTF8 as encoding.

Restarting the web server or running checksetup.pl again obviously has no effect.

I would tend to consider this bug as a support question. Please visit http://www.bugzilla.org/support for help.
Attached image error.JPG
Created an attachment with the error, it seems that Perl really has a lot of humor.

Best regards, 

Rednuht.
Please let me know what additional information you would require.

Best regards, 

Rednuht.
As discussed on IRC, the problem is due to (probably) an invalid string in the See Also field. This makes it a support question, not a bug in Bugzilla.
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Resolution: --- → INVALID
After editing the file C:/Perl64/lib/Text/Wrap.pm and adding to line 84:

die "This shouldn't happen: $t";

the error message changed pinpointing to the first bug from the see also field:

undef error - This shouldn't happen http://bz.whatever.com/show_bug.cgi?id=xxxxx at C:/Perl64/lib/Text/Wrap.pm line 84. 

where the xxxxx bug is actually the first bug from the see also field

Thank you for your help in pinpointing the cause of this issue !

Best regards, 

Rednuht.
After some more investigation, it appeared that Text::Wrap 2012.0818 was buggy. Upgrading to a newer version of Text::Wrap fixed the problem.
 Frédéric Buclin actually discovered that this is a bug in Text::Wrap 
https://rt.cpan.org/Public/Bug/Display.html?id=79766

After upgrading : ppm upgrade Text::Wrap

the issue is fixed now.

Awesome support !!!

Best regards, 

Rednuht.
(In reply to Frédéric Buclin from comment #7)
> After some more investigation, it appeared that Text::Wrap 2012.0818 was
> buggy. Upgrading to a newer version of Text::Wrap fixed the problem.

Should we blacklist that version of Text::Wrap then?
(In reply to Dave Miller [:justdave] (justdave@bugzilla.org) from comment #9)
> Should we blacklist that version of Text::Wrap then?

No. It's not part of our requirements, and Text::Wrap is part of the core Perl distribution. You can hardly ban a core module.
This problem has arisen in my installation of Bugzilla.

Although I have full access to the server on which Bugzilla is installed, I'm largely clueless as to upgrading to later versions, updating Text::Wrap etc. I have Bugzilla installed on a Windows server, and my familiarity is with MacOS.

As a relative dummy, will it likely be easier for me to solve this problem by updating Text::Wrap, or upgrading my current Bugzilla 4.2.4 installation to 4.4.1, assuming that either would solve the problem ?

Many thanks
Summary: undef error - This shouldn't happen at C:/Perl64/lib/Text/Wrap.pm line 84. → Text::Wrap 2012.0818 incorrectly parses strings when $Text::Wrap::huge = 'wrap'
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: