[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Router dumps core, still.



At 08:54 AM 1/27/95 +0200, Matti Aarnio wrote:
>>   I removed the MMAP define in the libmalloc/* makefile, and rebuilt from
>> scratch, but the router still dumps core after a few minutes.
>> 
>>   I have gdb.  Can it be used on daemon processes trap the line that it
>> faults on?  Could someone give me some pointers, because I'm a little fuzzy
>> on unix debugging procedures?
>
>	Good morning,

  Good evening,

>
>	Yes, something like this:
>
>----------------------------------------------------------------
># gdb zmailer-2.99.10/router/router /usr/spool/postoffice/core.router-7
>			(or whatever name your binary and cores are..)
>...
>(gdb) bt
>	(prints backtrace)
>(gdb) up
>	(do it several times, it prints the frames with some more details)
>----------------------------------------------------------------
>
>	Have the thing transcripted, and send to me for a look.
>
>> Tom
>
>	/Matti Aarnio	<mea@utu.fi> <mea@nic.funet.fi>
>
>

  Here it is, hope it will help.

  I don't understand the reference to "/usr/spool/postoffice/router: No such
file or directory".  I don't use that path (I use /var/spool/... instead)
for anything.  Is this a hard-coded path?


haven# gdb router /var/spool/postoffice/router/router.core
GDB is free software and you are welcome to distribute copies of it
 under certain conditions; type "show copying" to see the conditions.
There is absolutely no warranty for GDB; type "show warranty" for details.
GDB 4.11 (i386-unknown-freebsd),
Copyright 1993 Free Software Foundation, Inc...
Core was generated by `router'.
Program terminated with signal 11, Segmentation fault.
Cannot access memory at address 0x8057040.
#0  0x80686ce in end ()
/usr/spool/postoffice/router: No such file or directory.
(gdb) bt
#0  0x80686ce in end ()
#1  0x80a7060 in end ()
#2  0x80685a1 in end ()
#3  0x8066d42 in end ()
#4  0x8066be2 in end ()
#5  0x8073e0e in end ()
#6  0x8073634 in end ()
#7  0x35765 in zgetpwnam (name=0x0) at pwdgrp.c:28
#8  0x66b4 in run_homedir (argc=2, argv=0x940fc) at functions.c:1747
#9  0x1b0c8 in execute (c=0xefbf5020, caller=0x5555, oretcode=1)
    at execute.c:381
#10 0x1d9a1 in runcommand (c=0xefbf5020, pc=0xefbf5fc0, retcodep=0xefbf593c)
    at interpret.c:687
#11 0x1f9ea in interpret (code=0x829b8 "\r", eocode=0x84035 "\016\r",
    entry=0x77390 "", caller=0xefbf5fc0, retcodep=0xefbf593c, cdp=0x7db48)
    at interpret.c:1640
#12 0x1b32f in execute (c=0xefbf5fc0, caller=0x5555, oretcode=0)
    at execute.c:411
#13 0x1d9a1 in runcommand (c=0xefbf5fc0, pc=0xefbf6f60, retcodep=0xefbf68dc)
    at interpret.c:687
#14 0x1f9ea in interpret (code=0x809e4 "\r", eocode=0x8176f "\016\r",
    entry=0xefbf5fc0 "\224a\a", caller=0xefbf6f60, retcodep=0xefbf68dc,
    cdp=0x85100) at interpret.c:1640
#15 0x1b32f in execute (c=0xefbf6f60, caller=0x5555, oretcode=0)
    at execute.c:411
#16 0x1d9a1 in runcommand (c=0xefbf6f60, pc=0xefbf7eb8, retcodep=0xefbf787c)
    at interpret.c:687
#17 0x1f9ea in interpret (code=0x809e4 "\r", eocode=0x8176f "\016\r",
    entry=0x755fc "", caller=0xefbf7eb8, retcodep=0xefbf787c, cdp=0x85100)
    at interpret.c:1640
#18 0x1b32f in execute (c=0xefbf7eb8, caller=0x5555, oretcode=0)
    at execute.c:411
#19 0x1d9a1 in runcommand (c=0xefbf7eb8, pc=0xefbf87e8, retcodep=0xefbf87e4)
    at interpret.c:687
#20 0x1f9ea in interpret (code=0x7e010 "\r", eocode=0x7e921 "\016\r",
    entry=0x745d8 "", caller=0xefbf87e8, retcodep=0xefbf87e4, cdp=0x73310)
    at interpret.c:1640
#21 0x219db in lapply (fname=0xa57b "router", l=0x4f538) at interpret.c:2599
#22 0x21a76 in apply (argc=611788, argv=0xefbf9870) at interpret.c:2623
#23 0x9927 in s_apply (argc=3, argv=0xefbf9870) at shliaise.c:53
#24 0x9a50 in s_rewrite (func=0xa57b "router", t=0x4f478, argx=0xefbf98a8 "g2")
    at shliaise.c:109
#25 0xa8b6 in router (a=0x5555, uid=32767, type=0xcd1b "recipient")
    at shliaise.c:425
#26 0xe5ed in sequencer (e=0x4d620, file=0x742f8 "181") at rfc822.c:1438
#27 0xac7f in run_rfc822 (argc=2, argv=0x5555) at rfc822.c:122
#28 0x1b0c8 in execute (c=0xefbfcbb8, caller=0x5555, oretcode=0)
    at execute.c:381
#29 0x1d9a1 in runcommand (c=0xefbfcbb8, pc=0xefbfd530, retcodep=0xefbfd52c)
    at interpret.c:687
#30 0x1f9ea in interpret (code=0x86474 "\r", eocode=0x86716 "\016*,",
    entry=0x742e8 "", caller=0xefbfd530, retcodep=0xefbfd52c, cdp=0x826d0)
    at interpret.c:1640
#31 0x219db in lapply (fname=0x3896 "process", l=0x4d5f0) at interpret.c:2599
#32 0x21a76 in apply (argc=611788, argv=0xefbfd7bc) at interpret.c:2623
#33 0x9927 in s_apply (argc=2, argv=0xefbfd7bc) at shliaise.c:53
#34 0x43de in rd_doit (filename=0x85ec4 "181", dirs=0x6d630 "")
    at functions.c:626
#35 0x4690 in rd_stability (dirp=0x719ac, dirs=0x6d630 "") at functions.c:723
#36 0x4a64 in run_daemon (argc=1, argv=0xefbfdcd4) at functions.c:886
#37 0x1e8b in main (argc=3, argv=0xefbfdd58) at router.c:292
(gdb) up
#1  0x80a7060 in end ()
(gdb) up
#2  0x80685a1 in end ()
(gdb) up
#3  0x8066d42 in end ()
(gdb) up
#4  0x8066be2 in end ()
(gdb) up
#5  0x8073e0e in end ()
(gdb) up
#6  0x8073634 in end ()
(gdb) up
#7  0x35765 in zgetpwnam (name=0x0) at pwdgrp.c:28
28              while ((pw = getpwent()) != NULL)
(gdb) up
#8  0x66b4 in run_homedir (argc=2, argv=0x940fc) at functions.c:1747
1747            if ((pw = getpwnam(argv[1])) == NULL) {
(gdb) up
#9  0x1b0c8 in execute (c=0xefbf5020, caller=0x5555, oretcode=1)
    at execute.c:381
381                             retcode = (c->shcmdp->sptr)(ac, av);
(gdb) up
#10 0x1d9a1 in runcommand (c=0xefbf5020, pc=0xefbf5fc0, retcodep=0xefbf593c)
    at interpret.c:687
687                     *retcodep = execute(c, pc, *retcodep);
(gdb) up
#11 0x1f9ea in interpret (code=0x829b8 "\r", eocode=0x84035 "\016\r",
    entry=0x77390 "", caller=0xefbf5fc0, retcodep=0xefbf593c, cdp=0x7db48)
    at interpret.c:1640
1640                                    runcommand(command, caller,
(gdb) up
#12 0x1b32f in execute (c=0xefbf5fc0, caller=0x5555, oretcode=0)
    at execute.c:411
411                     interpret(sfdp->tabledesc->table,
(gdb) up
#13 0x1d9a1 in runcommand (c=0xefbf5fc0, pc=0xefbf6f60, retcodep=0xefbf68dc)
    at interpret.c:687
687                     *retcodep = execute(c, pc, *retcodep);
(gdb) up
#14 0x1f9ea in interpret (code=0x809e4 "\r", eocode=0x8176f "\016\r",
    entry=0xefbf5fc0 "\224a\a", caller=0xefbf6f60, retcodep=0xefbf68dc,
    cdp=0x85100) at interpret.c:1640
1640                                    runcommand(command, caller,
(gdb) up
#15 0x1b32f in execute (c=0xefbf6f60, caller=0x5555, oretcode=0)
    at execute.c:411
411                     interpret(sfdp->tabledesc->table,
(gdb)

Tom Samplonius

---
UNIServe Online
postmaster/dns
tom@haven.uniserve.com
http://www.uniserve.com