- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to debug core file using wdb with my program
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-31-2010 09:46 PM
тАО01-31-2010 09:46 PM
how to debug core file using wdb with my program
my program was stop
this is my core dump file
(gdb) bt
#0 0x60000000c03ff2f0:0 in _read_sys+0x30 () from /usr/lib/hpux32/libc.so.1
#1 0x60000000c0414880:0 in read+0x80 () from /usr/lib/hpux32/libc.so.1
#2 0x60000000c03db5e0:0 in _filbuf+0x1a0 () from /usr/lib/hpux32/libc.so.1
#3 0x60000000c01fe800:0 in __fgets_unlocked+0x200 ()
from /usr/lib/hpux32/libc.so.1
#4 0x60000000c01fe420:0 in fgets+0x140 () from /usr/lib/hpux32/libc.so.1
#5 0x4329ac0:0 in CHpuxPartition::Collect () at hpux/CHpuxPartition.cpp:107
#6 0x4328ad0:0 in CHpuxCmmPartitionUsage::Collect ()
at hpux/CHpuxCmmPartitionUsage.cpp:25
#7 0x4263c70:0 in cmm::Collect () at cmm.cpp:26
#8 0x408bb20:0 in das::DoingCMM () at das.cpp:1161
#9 0x4088520:0 in das::Routine () at das.cpp:1077
#10 0x4084570:0 in main () at das_main.cpp:284
in number 5 CHpuxPartition program call while
while (fgets(buf,sizeof(buf),fp)!=NULL)this line,
FILE *fp=NULL;
char buf[MAXLEN];
const char *cmdline="bdf|grep vg";
fp=popen(cmdline,"r");
while (fgets(buf,sizeof(buf),fp)!=NULL)
{
..........
}
How should i do to debug this or what wrong whith program
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-31-2010 10:29 PM
тАО01-31-2010 10:29 PM
Re: how to debug core file using wdb with my program
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-31-2010 10:40 PM
тАО01-31-2010 10:40 PM
Re: how to debug core file using wdb with my program
After the NFS server would become on-line again, your program could go on as nothing happened.
Best regards,
Horia.
Horia.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-31-2010 10:58 PM
тАО01-31-2010 10:58 PM
Re: how to debug core file using wdb with my program
yes ,your are right ,bdf is hanged
I would like to know how to debug this,or solve the problem
change the bdf command ,replace another
but i don't know the command name
to do the same functin
#bdf|grep vg
or another command or api can do the same right thing to do the same function
I found bdf is hanged because bdf is try to mount a network disk, but the network disk is not in the same domain network, so it 's hanged
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-31-2010 11:17 PM
тАО01-31-2010 11:17 PM
Re: how to debug core file using wdb with my program
What function?
If you want to see local disks, you can use:
bdf -t vxfs
And "-t hfs" if you have any of those.
>the network disk is not in the same domain network
Does it ever get mounted? If not, remove it from /etc/fstab.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-01-2010 01:02 AM
тАО02-01-2010 01:02 AM
Re: how to debug core file using wdb with my program
bdf never try to mount anything!
From man page:
"If no file system is specified, the free space on all of the normally mounted file systems is printed"
bdf hangs becouse the remote filesystem is not accesible.
Horia
Horia.