X-MimeOLE: Produced By Microsoft Exchange V6.5
Received: by onstor-exch02.onstor.net 
	id <01C734E7.51F008D2@onstor-exch02.onstor.net>; Wed, 10 Jan 2007 10:44:12 -0800
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Content-class: urn:content-classes:message
Subject: RE: How to get coredump on SSC
Date: Wed, 10 Jan 2007 10:44:11 -0800
Message-ID: <BB375AF679D4A34E9CA8DFA650E2B04E01FF8C50@onstor-exch02.onstor.net>
In-Reply-To: <20070110103743.412a89cc@ripper.onstor.net>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: How to get coredump on SSC
thread-index: Acc05mq7xOGApdmbQMaasUc7XYG9RQAANFAQ
From: "Ron Bhanukitsiri" <ronb@onstor.com>
To: "Andy Sharp" <andy.sharp@onstor.com>
Cc: "Maxim Kozlovsky" <maxim.kozlovsky@onstor.com>,
	"Brian DeForest" <brian.deforest@onstor.com>,
	"dl-Software" <dl-software@onstor.com>

Thanks Andrew.

No I'm trying to force a coredump from the specific
area of the code.   So I can just kill the process.

Ron B[ee]

-----Original Message-----
From: Andrew Sharp [mailto:andy.sharp@onstor.com]=20
Sent: Wednesday, January 10, 2007 10:38 AM
To: Ron Bhanukitsiri
Cc: Maxim Kozlovsky; Brian DeForest; dl-Software
Subject: Re: How to get coredump on SSC

Did you try=20

kill -quit <pid-of-cifsd>

?

Cheers,

a

On Wed, 10 Jan 2007 09:43:46 -0800 "Ron Bhanukitsiri" <ronb@onstor.com>
wrote:

> thanks Max.
>=20
> It's currently 0.
>=20
> Any other suggestion?
>=20
> Ron B[ee]
>=20
> _____________________________________________
> From: Maxim Kozlovsky=20
> Sent: Wednesday, January 10, 2007 9:38 AM
> To: Brian DeForest; Ron Bhanukitsiri; dl-Software
> Subject: RE: How to get coredump on SSC
>=20
> There was a problem with cifsd coredumps at one time, it required a
> sysctl to turn on coredump for setuid process, but it was fixed some
> time ago, and we've been getting the cifsd cores from the customers
> since then.=20
>=20
> Check what  "sysctl kern.nosuidcoredump" returns, it should be 0.
>=20
> If it is 1, run a command "systctl -w kern.nosuidcoredump=3D0".
>=20
> 	_____________________________________________=20
> 	From: 	Brian DeForest =20
> 	Sent:	Wednesday, January 10, 2007 9:25 AM
> 	To:	Ron Bhanukitsiri; dl-Software
> 	Cc:	Maxim Kozlovsky
> 	Subject:	RE: How to get coredump on SSC
>=20
> 	CC'ing Max.
>=20
> 	_____________________________________________
> 	From: Ron Bhanukitsiri=20
> 	Sent: Wednesday, January 10, 2007 9:24 AM
> 	To: dl-Software
> 	Subject: How to get coredump on SSC
>=20
> 	I've been trying to get cifsd (a daemon forked off by
> authentication agent)
> 	on the SSC to crash and produce a coredump with no success.
>=20
> 	I tried:
>=20
> 	- write to the memory pointed by null pointer (char *p =3D NULL;
> *p =3D 0;)
> 	- assert()
>=20
> 	I have a trace at the point of the code that is doing this;
> so I know the code
> 	is being executed.
>=20
> 	Is there something (like in Linux) that I have to set in
> OpenBSD to get a
> 	corefile?
>=20
> 	Thanks,
> 	Ron B[ee]
>=20
>=20
