*
Welcome, Guest. Please login or register. July 04, 2009, 06:28:34 AM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: memory fault after command lsof  (Read 10761 times)
0 Members and 1 Guest are viewing this topic.
Michael
Administrator
Hero Member
*****
Posts: 593


« Reply #10 on: January 06, 2008, 01:27:33 PM »

I believe there is a much newer version of gcc available. I would try using that first.
In my experience gcc is sometimes behind in the correct include file (.h) definitions because it wants to remake some of them rather than just use all of them.

The last part of the gcc install does this. Easiest way to get this fixed is probably to remove and reinstall gcc - and if you are going to do that - check on the newest version - I thought it was gcc 4.X.Y
Logged
Toth
Full Member
***
Posts: 27


« Reply #9 on: January 02, 2008, 12:12:12 PM »

Hi!
I try compile lsof:
Download lsof_4.78_src from IBM. Extract files. Run "./Configure aixgcc" and use default settings everywhere. After it run "make":
*******************
#make
        (cd lib; make DEBUG="-O" CFGF="-DHASIPv6 -DHASSTAT64 -DHAS_JFS2 -I/home/tothb1/lsof_4.78/lsof_4.78_src/dialects/aix/aix5 -fms-extensions -maix64 -DAIX_KERNBITS=64 -DAIXA=1 -DAIXV=5300 -DLSOF_VSTR=\"5.3.0.0\"")
        gcc  -DHASIPv6 -DHASSTAT64 -DHAS_JFS2 -I/home/tothb1/lsof_4.78/lsof_4.78_src/dialects/aix/aix5 -fms-extensions -maix64 -DAIX_KERNBITS=64 -DAIXA=1 -DAIXV=5300 -DLSOF_VSTR="5.3.0.0"  -O -c ckkv.c
        gcc  -DHASIPv6 -DHASSTAT64 -DHAS_JFS2 -I/home/tothb1/lsof_4.78/lsof_4.78_src/dialects/aix/aix5 -fms-extensions -maix64 -DAIX_KERNBITS=64 -DAIXA=1 -DAIXV=5300 -DLSOF_VSTR="5.3.0.0"  -O -c cvfs.c
        gcc  -DHASIPv6 -DHASSTAT64 -DHAS_JFS2 -I/home/tothb1/lsof_4.78/lsof_4.78_src/dialects/aix/aix5 -fms-extensions -maix64 -DAIX_KERNBITS=64 -DAIXA=1 -DAIXV=5300 -DLSOF_VSTR="5.3.0.0"  -O -c dvch.c
In file included from /usr/include/sys/uio.h:92,
                 from /usr/include/sys/vnode.h:49,
                 from ../dlsof.h:68,
                 from ../lsof.h:191,
                 from dvch.c:43:
/usr/include/sys/xmem.h:289: error: parse error before "ulong"
make: The error code from the last command is 1.
Stop.
make: The error code from the last command is 2.
Stop.

Please help me!!!
Thanks!
Tot

oslevel -s
5300-06-02-0727
gcc -v
Reading specs from /opt/freeware/lib/gcc-lib/powerpc-ibm-aix5.2.0.0/3.3.2/specs
Configured with: ../configure --with-as=/usr/bin/as --with-ld=/usr/bin/ld --disable-nls --enable-languages=c,c++ --prefix=/opt/freeware --enable-threads --enable-version-specific-runtime-libs --host=powerpc-ibm-aix5.2.0.0
Thread model: aix
gcc version 3.3.2
Logged
John Peck
Global Moderator
Senior Member
*****
Posts: 46


« Reply #8 on: December 29, 2007, 11:55:13 PM »


This sort of thing used to happen often with performance related commands, where there was some mis-match with the kernel after an update of the commands.  Ultimately it's likely to require a patch of some kind, and probably a reboot.
Logged
Toth
Full Member
***
Posts: 27


« Reply #7 on: December 29, 2007, 03:23:55 PM »

Hi!
This server critical (I can't reboot those), and I can't install latest patchset.
I talked about this error with IBM support. They said compile lsof.
Thanks!
Tot
Logged
Michael
Administrator
Hero Member
*****
Posts: 593


« Reply #6 on: December 29, 2007, 09:53:07 AM »

1) regarding oslevel - TL06 has at least two additional patches
2) I am thinking more in terms of an application error atm.

My approach now would be to compile the package myself, if only for harvesting extra debug information, and see if I can still replicate the problem.

Any information useful for replicating the problem is much appreciated.
Logged
Toth
Full Member
***
Posts: 27


« Reply #5 on: December 18, 2007, 12:38:06 PM »

Hi!
I got this error message too. Somebody can help me? I use aix 5.3 (oslevel -s: 5300-06-02-0727)
rpm -qa
cdrecord-1.9-6
mkisofs-1.13-4
lsof-4.61-4
openssl-0.9.7g-1
bash-3.0-1
bash-doc-3.0-1
sudo-1.6.7p5-3
bzip2-1.0.2-3
gzip-1.2.4a-7
unzip-5.51-1
zip-2.3-3
popt-1.7-1
AIX-rpm-5.3.0.50-2
Thanks!
Toth
Logged
JChau
New Member
*
Posts: 4


« Reply #4 on: June 14, 2007, 03:48:43 PM »

mate,
it didn't solve my problem. However, atleast you gave me some hints where i've never thought before... Embarrassed
Logged
Michael
Administrator
Hero Member
*****
Posts: 593


« Reply #3 on: June 13, 2007, 07:41:37 PM »

Does this mean you got it solved?  Smiley
Logged
JChau
New Member
*
Posts: 4


« Reply #2 on: June 13, 2007, 06:47:39 AM »

Thanks Mate.  Grin
Logged
Michael
Administrator
Hero Member
*****
Posts: 593


« Reply #1 on: June 10, 2007, 11:38:56 AM »

I recall that lsof has binaries for each version of AIX as the information seems to be version specific. And it may even be update level specific - and you have just happened upon a magic combination of factors.

If the versions are correct, one of the AIX mechanisms I use to get more info about what might be going on at filesystem level is to turn on the audit mechanism. And if that doesnt help (enough) the trace mechanism.

The message is a memory (address) violation, or segmentation fault.

Analyzing the core dump might help as well.

Quote
$ grep 11 /usr/include/sys/signal.h
#define SIGSEGV   11    /* (*) segmentation violation */
« Last Edit: June 10, 2007, 11:40:34 AM by Michael » Logged
JChau
New Member
*
Posts: 4


« on: May 30, 2007, 07:06:28 AM »

Hi AIXer,

I encountered a weird problem in my AIX box where it's running on v5.3. This problem only occur on one specific useid called snswww which is used for application and it's only occur on specific hour. Outisde the period, it's working fine. I had set the ulimit value to unlimited for this particular userid but no luck. Does any expertise can help? Error message i attached below hope it help.

Thanks.
JChau

# lsof -n -u snswww
Memory fault(coredump)

$ ulimit -a
time(seconds)        unlimited
file(blocks)         unlimited
data(kbytes)         unlimited
stack(kbytes)        unlimited
memory(kbytes)       unlimited
coredump(blocks)     8192
nofiles(descriptors) 2000

============================================================
# errpt -aN SYSPROC |pg
---------------------------------------------------------------------------
LABEL:          CORE_DUMP
IDENTIFIER:     A63BEB70
 
Date/Time:       Wed May 30 07:50:51 2007
Sequence Number: 44731
Machine Id:      00CB73AD4C00
Node Id:         amsdc2-u-s00030
Class:           S
Type:            PERM
Resource Name:   SYSPROC
 
Description
SOFTWARE PROGRAM ABNORMALLY TERMINATED
 
Probable Causes
SOFTWARE PROGRAM
 
User Causes
USER GENERATED SIGNAL
 
        Recommended Actions
        CORRECT THEN RETRY
 
Failure Causes
SOFTWARE PROGRAM
 
        Recommended Actions
        RERUN THE APPLICATION PROGRAM
        IF PROBLEM PERSISTS THEN DO THE FOLLOWING
        CONTACT APPROPRIATE SERVICE REPRESENTATIVE
 
Detail Data
SIGNAL NUMBER
          11
USER'S PROCESS ID:
               1118382
FILE SYSTEM SERIAL NUMBER
           1
INODE NUMBER
           2
PROCESSOR ID
           0
CORE FILE NAME
/core
PROGRAM NAME
lsof64
STACK EXECUTION DISABLED
           0
ADDITIONAL INFORMATION
process_s 728
process_s 6B0
process_f 1F4
gather_pr 448
main 15BC
__start 94
 
Symptom Data
REPORTABLE
1
INTERNAL ERROR
0
SYMPTOM CODE
PCSS/SPI2 FLDS/lsof64 SIG/11 FLDS/process_s VALU/728 FLDS/process_f
=============================================================
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM
Page created in 0.9 seconds with 18 queries.