What does "dumping core" mean?

What does "dumping core" mean?

Post by Peter Kappess » Wed, 16 Feb 1994 18:49:10



Hello, I'm learning about Unix but I'm not a programmer. Tonight while
trying to create some rn macros to save articles to my mailbox, something
choked and I got the message:

Badly compiled pattern
96
Caught a SIGSEGV--.newsrc restored
Abort - core dumped

So what happened?

[N.B. This site is having problems with its newsfeed... long lags. For
example, the latest articles available as I write this are dated
February 9th. Thus, please reply by email. I will post a summary
of replies. Thanks!]

        -- Pete

--
"This is a stunning picture of the Andromeda Galaxy!" said the art director
of a famous picture magazine. "But the composition would be better if it
were photographed from the other side."

 
 
 

What does "dumping core" mean?

Post by Peter Kappess » Sat, 19 Feb 1994 16:16:51


Thanks to all who replied to my "dumping core" question!

Recently I asked:

Quote:> Hello, I'm learning about Unix but I'm not a programmer. Tonight while
> trying to create some rn macros to save articles to my mailbox, something
> choked and I got the message:

> Badly compiled pattern
> 96
> Caught a SIGSEGV--.newsrc restored
> Abort - core dumped

> So what happened?

As a little background, I'm using a public-access site with an
Xwindows/menu interface (although if I join the unix users group, I can
get shell access). Ordinary users don't have much access to the
nuts-n-bolts of how things run; we can't do a regular directory listing,
for example, although there is are menu choices to download or delete
saved news articles. Unfortunately this function offers only Kermit
protocol, whereas mailbox messages can be downloaded by Zmodem.


|
| The first part of the message looks like a problem with the way that
| the regular-expression matching functions regex/regcmp or re_exec/re_comp
| are being called [....]
|
| This problem appears to have caused rn to try to access some area of
| memory which it does not have permission to access.  This means that the
| kernel sends a segmentation violation signal to the program.
|
| The program traps the signal, restores your .newsrc to some hopefully sane
| state, and then quits, leaving a complete ``core'' image of the running
| program in the file ./core so that, if required, you can use it do
| find out why the program went wrong.
|
| ``Dumping core'' is just the process of writing the whole program's core
| memory image into a file.

I was working on an rn macro to save an entire thread of messages to my
mailbox for fast & convenient Zmodem downloading. I thought a good way
to do this would be to use /%s/ to search for the same subject line...
until I ran across a subject line with illegal characters. *dump* (Now
I'm using /%i/ to look for the message-id in the replies. Much better.)


|
| Your program attempted to access memory it did not own.  When this
| happens, Unix does the right thing and signals something called a
| segmentation violation, and (usually) 'dumps core', that is to say,
| writes a file which corresponds with the state of the program, and
| has the memory image, registers, et. al. of the program.
|
| Programmers can in some cases use this core file to track down where
| a problem occured.
|
| If you haven't already, look for a file called 'core' or 'core.rn' in
| your home directory.  I'd advise removing it if it is just going to
| take up space.

I found the ./core file and was able to trick the news-article-deletion
tool to look in my home directory (really it's just a shell for rm, so
instead of a file name I told it "-i ../"), and after deleting the core
file, freed up some 3500 blocks. (Evidently core has dumped before. For
quite some time, I've noted some 5000+ blocks in use whenever I checked
my disk usage. Now I've got about 1500 blocks in use.)


replied along much the same lines.

        -- Pete

--
NOTICE: My site is having newsfeed problems thanks to PSI. News is arriving
here intermittently and up to five days after posting. Please email if you
want a timely response. I'll post summaries. Thanks!


 
 
 

1. difference between "core dump" and "panic"

Hi,
I have following queries regarding core dumps if anyone can help with ?
1.
I need to know the difference (in troubleshooting) between "application
core dump" (application creates core.<pid> file) and panic(entire
memory image is copied to /dev/swap) ?

2.
Need to know a way of seeing the contents of application core dump. ie
core.<pid> file. Can it be traced thro' "crash" ?

3. What I did :
Assuming core.<pid> can be analysed using crash, (applying the same
procedure to analyse system panic), here follows what I did to analyse
core.<pid> file using crash.

# mkdir /thushara/core /thushara/kernal /thushara/mod
# cp ..core.<pid> /thushrara/core/core.<pid>
# cp /stand/unix /thushara/kernal
# cp /etc/conf/mod.d/* /thushara/mod
# /usr/sbin/crash -d /thushara/core/core.2475 -n
/thushara/kernal/unix.8.3.00 -m /thushara/mod -w /thushara/aaa

but it gives the error "crash: wrong magic number in dumpfile"

4.
I refered following technical articles :
http://www.sco.com/cgi-bin/ssl_reference?109391
http://www.sco.com/cgi-bin/ssl_reference?106181
which explains faily well. But I'm stuck here.

Thanks.
Thushara

Sent via Deja.com http://www.deja.com/
Before you buy.

2. RH6.0 + 8bit soundcard + x11amp

3. GETSERVBYNAME()????????????????????"""""""""""""

4. Xterm -S & PTY problem

5. Get "Segmentation fault (core dumped)" but no core file found

6. No Free INodes

7. why are core dumps always named "core"?

8. How to erase the file K??????

9. """"""""My SoundBlast 16 pnp isn't up yet""""""""""""

10. The meaning of "__asm__" & "__volatile_()"???

11. What does "${1+"$@"}" mean in ksh?

12. what do "Getstatus times out" and "Reset-floppy called" mean?

13. What does "online*" mean in "svcs" output?