sunperf library - dgetri

Maybe i only use sunperf library bad, but i can't use dgetri without error. Just little example:

[code]

#include <sunperf.h>

int main() {

const int n = 3;

double A[n][n];

A[0][0] = 1; A[0][1] = 2; A[0][2] = 3;

A[1][0] = 4; A[1][1] = 9; A[1][2] = 14;

A[2][0] = 6; A[2][1] = 14; A[2][2] = 23;

int pivot[n];

int info;

dgetrf(n, n, (double *)A, n, (int *)pivot, (int *)&info);

dgetri(n, (double *)A, n, (int *)pivot, (int *)&info);

return 0;

}

[/code]

Compile and link flags: [code]-g -dalign -xlic_lib=sunperf[/code]

I tried same code with CC and cc:

[code]

CC: Sun C++ 5.8 Patch 121017-05 2006/08/30

cc: Sun C 5.8 Patch 121015-02 2006/03/29

[/code]

dbx output:

[code]

bash-3.00$ dbx -c run ./test

Reading test

Reading ld.so.1

Reading libsunperf.so.6

Reading libfui.so.2

Reading libfsu.so.1

Reading libmtsk.so.1

Reading libsunmath.so.1

Reading libm.so.2

Reading libc.so.1

Reading libdl.so.1

Reading libfsu.so.1

Reading libm.so.1

Reading libpthread.so.1

Reading libsunperf_isa.so.6

Reading libfsu_isa.so.1

Running: test

(process id 1974)

Reading libc_psr.so.1

t@1 (l@1) signal SEGV (no mapping at the fault address) in strlen at 0xfdf30c90

0xfdf30c90: strlen+0x0050:ld[%o2], %o1

Current function is main

15dgetri(n, (double *)A, n, (int *)pivot, (int *)&info);

(dbx)

[/code]

When executing program alone it blocks for cca 3 sec and then dumps core.

dgetrs works fine but with dgetri is something wrong. Thx for help.

[1738 byte] By [Olda79] at [2007-11-26 11:20:24]
# 1
Hi,This is a known problem with Sun Performance Library related to the Bug Id 6412396It is fixed with patch 122135-02-Jeremy
jeremyweek3 at 2007-7-7 3:35:48 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 2
Thanks. I usually update system with "smpatch update" command, but it replies "No patches required" so i thought that it's in order. Is there way how to be sure, that i have system updated?
Olda79 at 2007-7-7 3:35:48 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 3

I downloaded patch 122135-02 and tried "patchadd -G ./122135-02", but it failed with log:

Package not patched:

PKG=SPROmrpl

Original package not installed.

This appears to be an attempt to install the same architecture and

version of a package which is already installed. This installation

will attempt to overwrite this package.

/space/download/patch/sunstudio/122135-02/SPROpl/install/checkinstall: /space/download/patch/sunstudio/122135-02/SPROpl/install/checkinstall: cannot open

pkgadd: ERROR: checkinstall script did not complete successfully

Dryrun complete.

No changes were made to the system.

Thx for any suggestion.

Olda79 at 2007-7-7 3:35:48 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 4

> I downloaded patch 122135-02 and tried "patchadd -G

> ./122135-02", but it failed with log:

>

> Package not patched:

> PKG=SPROmrpl

> Original package not installed.

What is the output of the following two commands:

pkginfo -l SPROmrpl

and

showrev -p | grep 122135-02

?

Paul

Paul_Floyd at 2007-7-7 3:35:48 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 5

bash-3.00$ pkginfo -l SPROmrpl

PKGINST: SPROmrpl

NAME: Sun Studio 11 Man Pages for Sun Perf Library

CATEGORY: application

ARCH: sparc

VERSION: 11.0,REV=2005.09.21

BASEDIR: /space/opt

VENDOR: Sun Microsystems, Inc.

DESC: Man Pages for Sun Perf Library

PSTAMP: 050921142407-2753-80ad116a

INSTDATE: Jun 16 2006 09:59

HOTLINE: Please contact your local service provider

STATUS: completely installed

FILES:2650 installed pathnames

24 shared pathnames

25 directories

1 executables

13705 blocks used (approx)

bash-3.00$ showrev -p | grep 122135-02

bash-3.00$

In patch readme i found required patch 120753-02 so i tried

bash-3.00$ showrev -p | grep 120753-02

Patch: 120753-02 Obsoletes: Requires: Incompatibles: Packages: SUNWlibmsr, SUNWlibm

bash-3.00$

Olda79 at 2007-7-7 3:35:48 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 6

It's difficult to say what the problem is here. One post you give makes it sound like

SPROmrpl is installed, and the previous one doesn't seem to think so.

Maybe there is a permissions problem happening with the patches.

Are you trying to install the patches from /tmp? This is important since /tmp is world writable, and sometimes patchadd can give confusing messages if trying to install from

another location.

If installing from /tmp doesn't work, feel free to contact me at :

jeremy DOT week @ sun DOT com

And I can try to help further.

-Jeremy

jeremyweek at 2007-7-7 3:35:48 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 7
Thank you, installing patch from /tmp works fine. The example above runs without error now.
Olda79 at 2007-7-7 3:35:48 > top of Java-index,Development Tools,Solaris and Linux Development Tools...