Process dumps core, when started by SMF - fine when manually started

Hi.
h2. Explanation
I compiled [Nagios 3.2.0|http://www.nagios.org/] manually, and created a SMF manifest and method file, based on the [OpenCSW supplied files for Nagios|http://www.opencsw.org/packages/nagios]. The method file is based on [what the Nagios guys supply|http://pastebin.ca/1577792] , but [changed a little|http://pastebin.ca/diff.php?id1=1577792&id2=1577793] .
When I enable the "application/nagios" service, it right away goes into maintenance state. In the /var/svc/log/application-nagios:default.log log file, there's consequently then this:
+ exit 0
[ Sep 24 13:17:10 Method "start" exited with status 0 ]
[ Sep 24 13:17:11 Stopping because process dumped core. ]
[ Sep 24 13:17:11 Executing stop method ("/opt/local/nagios-3.2.0/method/nagios stop") ]
+ test -r /lib/svc/share/smf_include.sh
[...]It died, because of "*Stopping because process dumped core.*"
If you have a look at the method file, you'll find that I dump the environment with env to a file. When I login as root and set the environment variables to exactly those values and remove any other additional variables, I can run the method / init script just fine; the nagios process doesn't core dump.
h2. Question
Why does the process dump core, when it's run by SMF?
Additional questoin:Where's the core dump? I did a "find / -name core" and found nothing. I also changed coreadm:
--($ ~)-- LC_ALL=C coreadm
     global core file pattern: /var/core/core.%f.%pAfter a reboot, there's nothing in /var/core (the directory exists).
I'm on Solaris 10 5/09 Sparc.
h2. Files
*[svccfg export nagios|http://pastebin.ca/1577787]*
*[Method file /opt/local/nagios-3.2.0/method/nagios|http://pastebin.ca/1577793]*

There's no such directory as "/var/crash":
--($ ~)-- ls -lad /var/c*
drwxr-xr-x    4 root     sys             4 Sep 21 14:03 /var/cache
drwxr-xr-x    2 root     sys             7 Sep 21 13:32 /var/cc-ccr
drwxr-xr-x    2 root     root            2 Sep 24 13:14 /var/core
drwxr-xr-x    2 root     sys             3 Sep 21 14:03 /var/cronGranted, since when I posted that question and now, I booted the NGZ numerous times. But in a default installation of Solaris 10, that directory isn't removed during shutdown/boot, if it exist. At least it exists on my other servers, even if it is empty (eg. like that, on a different server:
--($ ~)-- ls -laR /var/crash/
/var/crash/:
total 3
drwxr-xr-x    3 root     root          512 Mai 19  2006 .
drwxr-xr-x   56 root     sys          1024 Dez  7  2008 ..
drwxrwx---    2 root     adm           512 Sep 22  2008 winds06
/var/crash/winds06:
total 2
drwxrwx---    2 root     adm           512 Sep 22  2008 .
drwxr-xr-x    3 root     root          512 Mai 19  2006 ..So, I'd say that the coredump has never been stored in /var/crash.
Anyway - isn't /var/crash just used for crashdumps, when the whole machine goes down? According to [man filesystem(5)|http://docs.sun.com/app/docs/doc/816-5175/filesystem-5?a=view] , it is → "+Default depository for kernel crash dumps.+"
If coredumps aren't in /var/crash, aren't named "core*" and aren't stored in the directory specified by coreadm, where are they?
Converse: If no coredump is created, why does Solaris "speak" about a coredump being created?

Similar Messages

  • Slow when iPod plugged in, fine when syncing

    When I plug my iPod (5G Video, 30GB) into my PC, iTunes suffers a major slowdown, using almost 100% of my CPU. As soon as it starts syncing files, everything goes back to normal. Any ideas/suggestions?
    Home-built   Windows XP   2.93GHz 1024MB RAM

    mine does the same thing. i just deal with it haha

  • Application dumps core in 64-bit but runs fine in 32-bit

    Hi,
    I have a strange problem in a application supposed to be run in 64-bit mode. The application is a batch process run as a daemon. When it is compiled with 32-bit mode, it seems to be working fine, but when it is compiled with 64-bit mode, it dumps core after 30 min to 1 hr. This is not always predictable. The data where it dumps core is also not predictable. When I analysed the core, it shows the location, in a place where there seems to be no problem. I ran purify to check the memory leaks, and there is no memory leak in the code, except in the Forte STL (string).
    The core dump happens in a place where the message is read from a message queue and is assigned to a string. (i.e. assignment from char array to string). I have made sure that the pointers are not getting deleted twice.
    I am using the following environment
    SunOS archie 5.8 Generic_108528-14 sun4u sparc SUNW,Ultra-60
    Sun WorkShop 6 update 2 Compilers C++
    Sun WorkShop 6 update 2 Standard 64-bit Class Library for C++
    If anybody has any idea about the problem, please reply to this.
    Thanks a lot,
    H.M.Joisa

    Since the Configurator doesn't include a compiler, so the flash panel generated by it doesn't have a native height and width.
    So the height and width you assigned in the Configurator is saved into the .gpc file.
    You observation is very sharp and accurate, when a panel is opened first time in the Photoshop.
    It will show the panel in the default size first, then it will load the height and width you assigned from the .gpc file, and resize it to the size you want.
    And then when you close the panel, it will save the current panel size to a flash player share object.
    The next time when you open the panel, it will load the last time saved size back.

  • Detecting when a process is dumping core

    Can someone point me to how I might determine if a process is dumping core? The scenario is that I have a watchdog process which needs to send sigabrt to processes which are in wedged state. These processes are running in large memory and hence core dumps can take a little while. I think I remember being able to check a flag of a process which would identify that the process was in the process of dumping core.
    Thanks

    Take a look at "coreadm", specifically "coreadm -e log".
    If you enable logging in the core processing, the OS will generate a syslog message every time a core is dumped. Exactly what you needed.

  • Hi,  iTunes is no longer syncing my iPhoto library to my iPhone 4. Everything was syncing fine when I first got the phone, but, over the past week or so, it's stopped syncing photos.   Now, after attempting to start from scratch by deleting all the photos

    Hi,
    iTunes is no longer syncing my iPhoto library to my iPhone 4. Everything was syncing fine when I first got the phone, but, over the past week or so, it's stopped syncing photos.
    Now, after attempting to start from scratch by deleting all the photos on my iPhone, iTunes won't sync ANY photos from iPhoto back to my iPhone. I've restarted my phone, computer, etc., force quit all photo-related apps on my iPhone, and tried various combinations of turning iTunes' photo syncing on/off, switching photo sync folders, etc., all to no avail -- I can't get my iPhoto library back on to my iPhone no matter what I do.
    Anyone encounter a similar situation? (I've already sent feedback to Apple.) Thanks in advance.

    Try deleting what is called the iPod Photo Cache. 
    http://support.apple.com/kb/TS1314

  • Ipod nano 5th gen - works fine when plugged in either to wall or computer and appears to be fully charged but as soon as it is unplugged screen goes blank and will not start - is the battery shot?

    Ipod nano 5th gen - works fine when plugged in either to wall or computer and appears to be fully charged but as soon as it is unplugged screen goes blank and will not start - is the battery shot?

    Yes, your battery is likely toast and in need of replacement.  Not much else for troubleshooting here.  Sorry.
    B-rock

  • How do I get rid of "Windows No Disk Exception Processing Message c0000013 Parameters 75b6bf7c 4 75b6bf7c 75b6bf7c" when firefox starts up ? Does not show a solution!

    How do I get rid of "Windows No Disk Exception Processing Message c0000013 Parameters 75b6bf7c 4 75b6bf7c 75b6bf7c" when firefox starts up, I have to hit continue twice to get past this error message. Then all is OK. The solution shown for this thread does not make sense.
    == This happened ==
    Every time Firefox opened
    == Firefox was updated

    In Google, search for ""Windows No Disk Exception Processing" (including quotation marks). Lots of different answers out there.
    632 results on this search limited to the last year:
    https://encrypted.google.com/advanced_search?q=%22Windows+No+Disk+Exception+Processing%22&hl=en&lr=&tbs=qdr:y&prmd=df

  • My Macbook Pro (OSX 10.6.7 2.26 GHz Intel Core 2 Duo) has started misbehaving on me. When I'm working, the cursor will start spontaneously moving to the left in a straight line, and randomly right clicking on things.  If I close the computer and open it b

    my Macbook Pro (OSX 10.6.7 2.26 GHz Intel Core 2 Duo) has started misbehaving on me. When I'm working, the cursor will start spontaneously moving to the in a straight line, and randomly right clicking on things.
    If I close the computer and open it back up, it sometimes stops for a little while, then will spontaneously start again. Any help would be truly appreciated. Thanks!

    See this knowledge base article. Also, you might want to update to 10.6.8 (don't know that that will fix your problem, but it's the latest version of Snow Leopard).
    Clinton

  • HT204370 I downloaded an HD movie onto my laptop from i-tunes.  It plays fine on my laptop, but when I plug in my HD projector, the movie quits.  When I unplug the projector, the movie starts again. I have never had a problem with projecting an itunes mov

    I downloaded an HD movie onto my laptop from i-tunes.  It plays fine on my laptop, but when I plug in my HD projector, the movie quits.  When I unplug the projector, the movie starts again. I have never had a problem with projecting an itunes movie before this. Someone told me that i-tunes changed something so that movies can no longer be projected.  We have a home theatre and have watched movies this way quite regularly, so it would be a drag if Apple will prevent us from doing this in the future. 

    I don’t know about projection, but I’m unable to watch HD content in iTunes because my Apple 30-inch Cinema Display is not HDCP-compliant (which is part of an HD copy-protection scheme).
    The other movies you’ve projected, were they HD as well? If not, it could be the same problem: your projector is not HDCP-compliant.

  • I am trying to download through Itunes the news iOS 4.3.3 software to my Ipod touch 4th G. it starts downloading just fine, but when it gets about 200mg into the 600 mg file, it comes back with stopped (err= -3259) has anyone seen this???

    I am trying to download through Itunes the news iOS 4.3.3 software to my Ipod touch 4th G. it starts downloading just fine, but when it gets about 200mg into the 600 mg file, it comes back with stopped (err= -3259) has anyone seen this??? I have tried downloading this at different times of the day, and have also tried it on different internet service providers ... still recieve same error msg...

    Try this article (disable firewall)
    http://support.apple.com/kb/TS2799

  • I started to learn HTML, and I'm using text edit and everything is going fine, when I save the file with a .html extension and open it with safari I only view the code and not the webpage that was supposed to be created.

    I started to learn HTML, and I'm using text edit and everything is going fine, when I save the file with a .html extension and open it with safari I only view the code and not the webpage that was supposed to be created.

    That is because you don't have a web server configured and running to serve the html page. In order to see the page in a browser you need to access it using a url similar to http://localhost/~yourUserName if you are serving the page from your user account.
    Prior to Mountain Lion you could go into web sharing and turn on the web server. With Mountain Lion there is no option, other than using terminal, to turn on the web server. The web sharing menu item has been removed in Mountain Lion. Apache is still on your computer but it will take a little searching these forums or the Internet to find how to turn it on.
    If you want a graphic user interface to turn on/off the Apache server you could download and install a server application like xampp, http://www.apachefriends.org/en/xampp.html. I use this and it works well.

  • Getting slapd to dump core when installed as a non-root users on linux

    Doesn anyone know how to allow slapd do dump core when running on linux(redhat as4) while being installed as a non-root user?
    I have tried the normal route of setting core to unlimited and that user to unlimited also in limits.conf.
    I can do a kill -11 $pid with an instance running as root to get a core but no luck with an instance as a non-root user.

    I forgot to mention that I'm running 6.1.

  • HT3964 macbook pro will not start on battery power works fine when plugged in

    My macbook pro 15 inch early 2008 model will not start on battery power but works fine when plugged in.

    check the battery info.. >about this mac>more info>system report and select "power" on the lefthand column.  How many cycles? What does it say about the condition? etc.

  • I have a MBP 13 EArly 2011 in my laptop problem is when i shutdown my laptop and again start it its very slow and when i put my laptop on sleep and after five minutes everythings fine.Some body know about this problem???????

    I have a MBP 13 EArly 2011 in my laptop problem is when i shutdown my laptop and again start it its very slow and when i put my laptop on sleep and after five minutes everythings fine.Some body know about this problem???????

    You may find this user tip article helpful:
    https://discussions.apple.com/docs/DOC-3521
    Ciao.

  • When I go to Yahoo Mail from the home page all of the items (folders) are listed on the left but the rest of the page is blank. The mail opens just fine if I start with explorer, so it cannot be a Yahoo problem.

    I need to figure out how to get the mail page to load properly in Firefox. Can anyone help?
    I have been having to open Explorer to get my Yahoo mail

    Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
    Note: ''This will temporarily log you out of all sites you're logged in to.''
    To clear cache and cookies do the following:
    #Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
    #Under "Time range to clear", select "Everything".
    #Now, click the arrow next to Details to toggle the Details list active.
    #From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
    #Now click the ''Clear now'' button.
    Further information can be found in the [[Clear your cache, history and other personal information in Firefox]] article.
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * You can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Thank you.

Maybe you are looking for