Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 277312 - sys-cluster/pvm segfaults after compilation with gcc-4.x
Summary: sys-cluster/pvm segfaults after compilation with gcc-4.x
Status: RESOLVED DUPLICATE of bug 151316
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: Gentoo Cluster Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-10 12:52 UTC by Alexander Prokofiev
Modified: 2010-09-10 19:01 UTC (History)
1 user (show)

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 Alexander Prokofiev 2009-07-10 12:52:50 UTC
pvm utility segfaults on start when compiled with gcc-4.
This seems to be because of the way newer gcc treats not
correct code.
This happens with pvm-3.4.5. I've not checked newer pvm-3.4.6

This patches helps:

--- pvm3/src/global.c.orig      2009-07-10 19:01:51.000000000 +0000
+++ pvm3/src/global.c   2009-07-10 19:01:12.000000000 +0000
@@ -205,7 +205,7 @@

 /* Trace Data Identifier Structures */

-struct Pvmtevdid* pvmtevdidlist =
+struct Pvmtevdid pvmtevdidlist[] =
 {
        /* TEV_DID_AN */        "AN",   "PVM Architecture Name",
        /* TEV_DID_AC */        "AC",   "PVM Architecture Code",
@@ -335,7 +335,7 @@

 /* Trace Event Info */

-struct Pvmtevinfo* pvmtevinfo =
+struct Pvmtevinfo pvmtevinfo[] =
 {
        /* TEV_ADDHOSTS */              "addhosts",             0,      { 0, 0 }, { 0, 0 }, 0,
        /* TEV_BARRIER */               "barrier",              0,      { 0, 0 }, { 0, 0 }, 0,
--- pvm3/src/global.h.orig      2009-07-10 19:01:51.000000000 +0000
+++ pvm3/src/global.h   2009-07-10 19:14:38.000000000 +0000
@@ -156,6 +156,7 @@
  *
  */

+#include <pvmtev.h>

 /* UDPMAXLEN should be set to the largest UDP message length
    your system can handle. */
@@ -318,7 +319,7 @@

 /* General Trace Globals Declarations */
+extern struct Pvmtevdid pvmtevdidlist[];

-extern struct Pvmtevinfo* pvmtevinfo;
+extern struct Pvmtevinfo pvmtevinfo[];





Reproducible: Always

Steps to Reproduce:
1. emerge sys-cluster/pvm
2. run "pvm"
3. segfault
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-12-06 13:38:41 UTC

*** This bug has been marked as a duplicate of bug 151316 ***