Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 59258 - perl-5.8.4-r1 build fails on alpha
Summary: perl-5.8.4-r1 build fails on alpha
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: Alpha Linux
: High major (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-03 06:16 UTC by Andrej Filipcic
Modified: 2004-09-21 13:38 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrej Filipcic 2004-08-03 06:16:27 UTC
Building of perl-5.8.4-r1 segfaults when miniperl is called on alpha when using
gcc-3.3.4-r1 and glibc-2.3.3_pre20040207. It appears that the size of sitearch and sitelib in perl.c is too small in some cases...

Here is a patch:
-----------------
diff -ur perl-5.8.4/perl.c perl-5.8.4.af/perl.c
--- perl-5.8.4/perl.c   2004-08-03 14:53:32.000000000 +0200
+++ perl-5.8.4.af/perl.c        2004-08-03 13:53:10.000000000 +0200
@@ -4336,8 +4336,8 @@
   struct stat s;

   /* add small buffer in case old versions are longer than the current version
*/
-  char sitearch[sizeof(SITEARCH_EXP)+16] = SITEARCH_EXP;
-  char sitelib[sizeof(SITELIB_EXP)+16] = SITELIB_EXP;
+  char sitearch[sizeof(SITEARCH_EXP)+46] = SITEARCH_EXP;
+  char sitelib[sizeof(SITELIB_EXP)+46] = SITELIB_EXP;
   char const *vers[] = { PERL_INC_VERSION_LIST };
   char const **p;


Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Robert Coie (RETIRED) gentoo-dev 2004-09-09 11:41:59 UTC
This may not just be alpha-specific. Can you describe what conditions made
these variables overflow on your machine?
Comment 2 Andrej Filipcic 2004-09-10 06:50:25 UTC
Please, remove the bug. I discovered that I have made a backup (/usr/lib/perl5/5.8.3.tmp). That is why the ebuild crashed.

Comment 3 Michael Cummings (RETIRED) gentoo-dev 2004-09-21 13:38:24 UTC
per OP's last post