- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- setsid() dumps core
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
03-19-2003 02:05 AM
03-19-2003 02:05 AM
setsid() dumps core
system("bash run_command.sh command_name");
where run_command.sh is a bash shell script which takes the command_name as argument and executes it.
Now, whenever I execute a big program I am getting a core dump with exit code 139, I don't know what exactly the problem is. If you need I can send the source code also.
regards and thanks in advance
-Manish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2003 03:19 AM
03-19-2003 03:19 AM
Re: setsid() dumps core
If your system() call returns 139, then I would think that your "big program" died... then you would need to start trouble-shooting there.
Check with "file core" what process really wrote it.
Best regards...
Dietmar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2003 03:36 AM
03-19-2003 03:36 AM
Re: setsid() dumps core
This seems to be very critical problem, the "big program" only dumping the core. The behaviour is not the same for every command which executes through this program. Some programs dump core, can not catagorize them.
Is it some issue with the terminal ownership or something internal like group id making any difference??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2003 04:35 AM
03-19-2003 04:35 AM
Re: setsid() dumps core
But if several programs have that problem, then I would especially check if enough swap space is available and if maxdsiz[-64bit] is configured large enough. Sometimes a NULL returned my malloc() is not handled gracefully... of course a programming flaw also.
Best regards...
Dietmar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2003 05:02 AM
03-19-2003 05:02 AM
Re: setsid() dumps core
regards and thanks,
-Manish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2003 06:17 AM
03-19-2003 06:17 AM
Re: setsid() dumps core
If this were me, I would turm off the optimizer, compile with -g, let it die, and examine the corefile with the debugger - do a stacktrace. That should zero in on the problem.
I'm betting it's something like a string pointer that has gone out of scope and was auto declared.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2003 07:50 AM
03-19-2003 07:50 AM
Re: setsid() dumps core
It would be interesting, as I'm going to argue with you a little bit. (with the most famos 'A.' in this forum, yeah!) :)
According to man setsid():
>>
If the calling process is not a process group leader, setsid() creates
a new session. The calling process becomes the session leader of this
new session, it becomes the process group leader of a new process
group, and it has no controlling terminal.
<<<
Look carefully at the last part. I wouldn't be surprised if this lack of terminal couldn't be the problem here. 'big program' can assume to have its terminal and try to use it.
However.
1. I can be wrong (and this means A.Clay wins... booooo...)
2. In either case his suggestion with core debugging is briliant. :)
Good luck
Adam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2003 08:11 AM
03-19-2003 08:11 AM