Hi, It gets even more interesting if the user uses the controversial tool systemd tool created by RedHat: https://wiki.archlinux.org/index.php/Core_dump.
My recommendation is to let the OS take care of core-file placement rather than do anything special. Gunnar -----Original Message----- From: Selva Govindarajan [mailto:[email protected]] Sent: Thursday, November 12, 2015 5:38 PM To: [email protected] Subject: RE: Trafodion and core file location ? When an application dumps core by issuing abort() or exit(non_zero_value), the core location is usually determined by /proc/sys/kernel/core_pattern. When Trafodion engine explicitly dump core for certain conditions like dumping ssmp core before bringing down the node, we might be able to control the location. Ideally, we would want these dumps also to conform to core_pattern, but might be bit involved to do that. We might have chosen an easy route to dump the core at some location. Selva -----Original Message----- From: Dave Birdsall [mailto:[email protected]] Sent: Thursday, November 12, 2015 4:21 PM To: [email protected] Subject: RE: Trafodion and core file location ? Hi, So, with the current situation, where do core files land? I sometimes see them in $MY_SQROOT/sql/scripts, and I've also seen them in directories where I was running sqlci. Is this the norm for the current situation? Yes, I think it would be great to have a knob to place them where we want them. Would be easier to find. And ultimately easier to manage both from a user perspective and a support perspective. Dave -----Original Message----- From: Sandhya Sundaresan [mailto:[email protected]] Sent: Thursday, November 12, 2015 4:05 PM To: [email protected] Subject: Trafodion and core file location ? Hi , Has anyone thought of a standard location for trafodion core files to reside ? There is a programmatic interface we currently have to create a core file if needed. Today it doesn’t take a location param . I was going to change it to allow a location to be specified. Specifying a location for the core files we create may good so we taking up space have a way of not inadvertently where we shouldn’t be. Today it just puts it on ‘pwd’ i.e current directory. We could have an envvar to specify a location for all core files with current dir being the default. Any thoughts on this topic ? Thanks Sandhya
