Re: Interpreting program core dump in mdb



Mr. Uh Clem wrote:

At $DAY_JOB, we've got a customer who has installed our product on a
Solaris 10 Sparc system and is getting a mysterious segment violation in
one of our background processes. Of course, this problem does not occur
on any of our inhouse systems.

We did get the customer to send us a core file, but aren't very handy
with the debug tools on Solaris.


# mdb prog core
Loading modules: [ libc.so.1 ld.so.1 ]
> ::stack
strncpy+0x5d0(20, 7182f4, 1b, 726f6f74, 0, 20)
secure+0x1b8(2e4088, b1978, c6068, 1f, 717298, 0)
process_request+0x41c(2e7d8, 1, c60e4, 1, 5750bc, 0)
open_socket+0x310(0, c8bf0, 5, 7efefeff, 81010100, ffbff9bc)
main+0x664(1, ffbffc1c, ffbffc24, c6000, c80fc, 3)
_start+0x108(0, 0, 0, 0, 0, 0)


I've googled up countless articles telling me that ::stack gets a
stack dump, but have yet to find one which tells me what the
values in the display **ARE**.


Some specifics on this one: It's a daemon process which accepts
a connection and forks off a worker process to handle the connection.
Early on, it calls secure() which is linked from a different .o file:


char user_name[USER_LENGTH + 1]; /* global in .c containing secure */


secure(host)
char *host;
{
...
struct passwd *pw;
...

pw = getpwuid(getuid());
if (pw != NULL)
strncpy(user_name, pw->pw_name, sizeof(user_name)-1);

Is it possible for pw->pw_name to be NULL?
.



Relevant Pages

  • Two Solaris 10 / Solaris Express problems: network + audio
    ... I've got two rather annoying problems (bugs?) that seem to like the ... As my machine is on the very low end of what is compatible with Solaris ... The first one is a classical problem of network connection. ... On to the audio problem now: this one hasn't changed between Solaris 10 ...
    (comp.unix.solaris)
  • Re: SCSA certification test lab suggestions
    ... I have both an Intel box running Solaris 8 and a Sun Ultra 10 also running ... Ultra 10 from EBay, with a 4.2g drive and 256mb RAM. ... video connection, typically only a serial connection for a terminal. ...
    (comp.unix.solaris)
  • Re: If you were inventing CoBOL...
    ... They can run Solaris alongside or instead of BS2000. ... >Fujitsu has had a range of Sun based servers that started as the ICL ... midrange system with 35 to 250 RPF (a FSC internal performance ... can be connected via HIPLEX load connection. ...
    (comp.lang.cobol)
  • Re: ssh .vs. rsh
    ... >>We have users remotely accessing applications that has GUI in Solaris ... > is significantly more connection setup involved in an SSH connection than ... > rsh, so it will always be slightly slower. ... Good judgement comes with experience. ...
    (SSH)
  • Re: core files from foreign machines...
    ... dbx does not have it, ... If you are running Solaris 8 or later on the production server, ... use pstackon the core file to get a stack trace. ...
    (comp.unix.solaris)