The current gcc4 patch 'pvm-3.4.5-gcc-4.1.patch' is bogus and produces a pvm console binary that segfaults immediately. Here's the problem showing up in the compile: ../../src/global.c:210: warning: initialization from incompatible pointer type ../../src/global.c:210: warning: excess elements in scalar initializer ../../src/global.c:210: warning: (near initialization for ‘pvmtevdidlist’) ../../src/global.c:211: warning: excess elements in scalar initializer ../../src/global.c:211: warning: (near initialization for ‘pvmtevdidlist’) ../../src/global.c:211: warning: excess elements in scalar initializer ../../src/global.c:211: warning: (near initialization for ‘pvmtevdidlist’) Here's the problem in the end product: ~ # pvm Segmentation fault Attached is a direct replacement for 'pvm-3.4.5-gcc-4.1.patch'
Created attachment 99646 [details, diff] pvm-3.4.5_gcc4.patch
I'm seeing the same issue, and resolved it (for my local use at least). I've only tried it on the amd64 platform, but simply reverting the pvm-3.4.5-gcc-4.1.patch works for me. I don't understand what that patch was trying to accomplish; it doesn't make any sense in standard C! As for the replacement patch, what is the rationale for moving those declarations out of the headers (which is where they belong IMO)? Note that it doesn't segfault until after it starts the pvmd3 daemon (note, that's pvmd3, "killall pvm" doesn't work!)
(In reply to comment #1) > Created an attachment (id=99646) [edit] > pvm-3.4.5_gcc4.patch > Substituting pvm-3.4.5-gcc-4.1.patch with this file helped me on x86; pvm stopped segfaulting.
(In reply to comment #3) > (In reply to comment #1) > > Created an attachment (id=99646) [edit] > > pvm-3.4.5_gcc4.patch > > > > Substituting pvm-3.4.5-gcc-4.1.patch with this file helped me on x86; pvm > stopped segfaulting. > Works for me, too.
(In reply to comment #3) > (In reply to comment #1) > > Created an attachment (id=99646) [edit] > > pvm-3.4.5_gcc4.patch > > > > Substituting pvm-3.4.5-gcc-4.1.patch with this file helped me on x86; pvm > stopped segfaulting. > I had issues with pvm segfaults despite running /etc/profile, a reboot dealt with it but then i kept getting "libpvm mksocs() connect: Connection refused" errors. I'm running GCC 3.4.6 on x86 but this patch helped out.
The attached patch works for me on amd64/gcc-4.1.2.
Hey, fix this already!
Hi, anybody care to fix this ? Thanks
*** Bug 277312 has been marked as a duplicate of this bug. ***
Taking bug. Unable to initially reproduce issue with pvm-3.4.6. Will take care of pvm and bindings.
Treecleaned.
Did 3.4.6 ever make it to the tree? I just compiled it without patches using gcc-4.3.4 and the console program did not segfault. But I guess... is there any demand for it?