- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: application dumping core during system reboot
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
Forums
Discussions
Discussions
Discussions
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
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
12-05-2007 09:50 AM
12-05-2007 09:50 AM
Re: application dumping core during system reboot
The root cause of problem is:
We were using basename with argv[0] of original program and passing the same argv[0] to execvp.
The fact that man page of basename warns about this situation was ignored.
basename was changing ./vxsvc to "vxsvc" and /opt/VRTSob/bin/vxsvc "vxsvc"
passing the dup of string to basename and preserving original argv[0]. solves the problem
I am yet to find out that whether argv[0] is changed or kept unchanged by basename on the system on which this problem is not reproducible.
the problem with basename is across all the platforms, Is it smthing which is difficult to fix(I do not think so..and may be wrong)?
The man page of basename say smthing like
basename may change the argument passed.
Why is this behaviour inconsistent in case of single threaded programes ?
Dennis, I have raised the suggestion given by you in previous post to HP.
I will request them to preserve the setup on the machine on which this is reproducible, In case if u or somebdy from HP want to have a look at it.
Thanks
Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2007 04:16 PM
12-05-2007 04:16 PM
Re: application dumping core during system reboot
We were using basename with argv[0] of original program and passing the same argv[0] to execvp.
Ah, you weren't doing it on purpose.
>I am yet to find out that whether argv[0] is changed or kept unchanged by basename on the system on which this problem is not reproducible.
It should be simple to test. Use tusc -pa ...
>the problem with basename is across all the platforms, Is it something which is difficult to fix?
It won't be changed because the Standard says it can do that. Though I would only expect dirname(3) to modify the string.
>Why is this behaviour inconsistent in case of single threaded programs?
It shouldn't. Single threaded apps use a separate buffer but threaded uses the input buffer.
>I have raised the suggestion given by you in previous post to HP.
Thanks.
>I will request them to preserve the setup on the machine on which this is reproducible, In case
No need, we know the problem now.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2007 06:35 PM
12-06-2007 06:35 PM
Re: application dumping core during system reboot
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2007 12:51 AM
12-10-2007 12:51 AM
Re: application dumping core during system reboot
I am trying a sample program which can repro this issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2007 12:55 AM
12-10-2007 12:55 AM
Re: application dumping core during system reboot
Perhaps it had "." in PATH?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2007 01:07 AM
12-10-2007 01:07 AM
Re: application dumping core during system reboot
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2007 01:59 AM
12-10-2007 01:59 AM
Re: application dumping core during system reboot
Then you'll need to use tusc -a to see why it works.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2007 02:41 AM
12-10-2007 02:41 AM
Re: application dumping core during system reboot
It does not work on the machine on which vxsvc dumps core.
steps to repro:
1. extract the file in /
2. goto /exec_test
3. rm test_file ( this decides the calling of execv function)
4. ./exec_test ( will dump on some machines)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2007 07:10 PM
12-10-2007 07:10 PM
SolutionIt will "work" and not abort if you don't have the fix for JAGag39684 in PHSS_35383, PHSS_36342 or PHSS_36349.
>1. extract the file in /
>2. goto /exec_test
I copied it elsewhere and edited the source and it worked because I don't have the patch.
You can't do 2, you must execute from some other location, otherwise you won't be exercising the "fix". Otherwise the old code tried PWD and that would work if you hadn't moved from the initial build location.
Anyway, when you contact the Response Center you can mention my name as having the details.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2007 11:50 PM
12-10-2007 11:50 PM
Re: application dumping core during system reboot
I have told my POCs to tell their POC in HP that "Dennis Handly has got a good hold on this problem".
Somebdy may contact you very soon.
Thanks
Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2007 01:24 AM
12-11-2007 01:24 AM
Re: application dumping core during system reboot
Ok, I'll explain it to them.
And as I said initially, you'll need to make sure that argv[0] is the absolute path.
I found at the place where the signal occurs is an assert which doesn't go to customers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2008 09:01 PM
02-22-2008 09:01 PM
Re: application dumping core during system reboot
Did you get the request? Or sombdy else fixed it?
Thanks
Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2008 09:44 PM
02-22-2008 09:44 PM
Re: application dumping core during system reboot
It isn't fixed yet. I assume they are waiting for a but report from the Response Center. Did you contact them?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2008 10:36 PM
02-22-2008 10:36 PM
Re: application dumping core during system reboot
I did ask my POC to contact HP regarding this. I also provided the sample program.
But I do not think the request will come through response center...It will take some other channel(We didn't file it as customers but HP partners).
Presently she is on leave I will ask her about it when she is back.
Thanks
Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2008 10:54 PM
02-22-2008 10:54 PM
Re: application dumping core during system reboot
OR
there should be a customer request corresponding to each fix.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2008 12:13 AM
02-23-2008 12:13 AM
Re: application dumping core during system reboot
I sent them a pointer to this thread.
>there should be a customer request corresponding to each fix.
Yes, this is always helpful.
But in any case, you need to fix your application, the "fix" is just to have a better error message, instead of the abort.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2008 04:27 AM
02-23-2008 04:27 AM
Re: application dumping core during system reboot
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2008 02:11 AM
03-13-2008 02:11 AM
Re: application dumping core during system reboot
- « Previous
-
- 1
- 2
- Next »