Core Dump

Core Dump

Post by Girish Kurwalk » Thu, 02 Jan 2003 20:00:55



Hi,
I have compiled some application using aCC 03.31.

When I run the application, it terminates without doing anything and
the Error Message Bus Error.

There is a core file with size 0.

How can I detect this error ?

Any suggestions ?

 
 
 

Core Dump

Post by Paul Sur » Fri, 03 Jan 2003 05:38:06


Compile with the -g option and start it from a de*.
Wildebeast is a nice one. It can be found at
http://www.veryComputer.com/
662,00.html

It is free and easy to use.

If you can't find it there try a search on www.software.hp.com for WDB

Paul

 
 
 

1. newgrp sets core dump size limit to 0 on HP-UX 11

Hello,

I noticed today that using newgrp(1) on HP-UX 11.0 and 11.i results in the
hard limit for core dump size getting set to 0:

        hp% uname -a
        HP-UX hp B.11.11 U 9000/780 unknown
        hp% limit coredumpsize 12345
        hp% limit coredumpsize
        coredumpsize    12345 kbytes
        hp% limit -h coredumpsize
        coredumpsize    unlimited

        hp% newgrp users
        hp% limit coredumpsize
        coredumpsize    0 kbytes
        hp% limit -h coredumpsize
        coredumpsize    0 kbytes

Since it sets the hard limit to 0, it is not possible for to create a core
dump under any circumstances after running newgrp.

This seems to be hard coded in the newgrp binary, I did a system call
trace using tusc:

        # tusc /usr/bin/newgrp

        ... snip ...
        setrlimit(RLIMIT_CORE, 0x680f0804) ....................... = 0
        setgid(3) ................................................ = 0
        setresuid(0, 0, 0) ....................................... = 0
        setresuid(0, 0, 0) ....................................... = 0
        getpid() ................................................. = 21227 (21226)
        audwrite(0x680f0874) ..................................... = 0
        audswitch(0) ............................................. = 0
        setuid(0) ................................................ = 0
        execve("/sbin/sh", 0x680f0878, 0x680f0674) ............... = 0 [32-bit]
        ...

Note the call to setrlimit() right before it exec()s the shell.

/usr/bin/newgrp on HP-UX 10.20 does not seem to have this behavior. It
preserves the existing limits as you'd expect, and doesn't call
setrlimit(). However, 11.0 and 11.i both do.

Does anyone know if this is a feature or a bug?

Thanks,

Chris Wing

2. How Can I measure a pusle on a IBm computer in Pascal

3. core dump size means what?

4. PWS CRASHED MY COMPUTER

5. core dump in pthread_mutex_destroy on startup?

6. upload / import

7. core dump while declaration of Object

8. smart appliance introduced

9. core dump analysis

10. How to initiate manual core dump in HPUX

11. forcing core dumps on HPUX

12. Reg. core dump in hpux

13. SAM core dump when getting list of users