Re: Cron <root@haddock> /usr/bin/newsyslog

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: Cron <root@haddock> /usr/bin/newsyslog

Han Boetes
Is this usefull?

Cron Daemon wrote:
> Segmentation fault (core dumped)

/usr/src/usr.bin/newsyslog% gdb ./newsyslog /var/log/newsyslog.core

[snip: copyright notice]

warning: exec file is newer than core file.
Core was generated by `newsyslog'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libc.so.38.4...done.
Loaded symbols for /usr/lib/libc.so.38.4
Reading symbols from /usr/libexec/ld.so...done.
Loaded symbols for /usr/libexec/ld.so
#0  0x0be74bff in memset () from /usr/lib/libc.so.38.4
(gdb) bt
#0  0x0be74bff in memset () from /usr/lib/libc.so.38.4
#1  0x7c217160 in ?? ()
#2  0x0be520c5 in newbuf () from /usr/lib/libc.so.38.4
#3  0x0be51d8f in __get_buf () from /usr/lib/libc.so.38.4
#4  0x0be6a86b in hash_access () from /usr/lib/libc.so.38.4
#5  0x0be48e2b in __hashpw () from /usr/lib/libc.so.38.4
#6  0x0be486c4 in getpwnam () from /usr/lib/libc.so.38.4
#7  0x1c00281d in parse_file (nentries=0xcfbc1154) at newsyslog.c:534
#8  0x1c001434 in main (argc=0, argv=0xcfbc11d8) at newsyslog.c:206
(gdb) l
206             p = parse_file(&listlen);
207             if (argc > 0) {
208                     /* Only rotate specified files. */
209                     x = y = NULL;
210                     listlen = 0;
211                     for (av = argv; *av; av++) {
212                             for (q = p; q; q = q->next)
213                                     if (strcmp(*av, q->log) == 0) {
214                                             if (x == NULL)
215                                                     x = y = q;
(gdb)



# Han

Reply | Threaded
Open this post in threaded view
|

Re: Cron <root@haddock> /usr/bin/newsyslog

Otto Moerbeek
On Fri, 9 Dec 2005, Han Boetes wrote:

> Is this usefull?
>
> Cron Daemon wrote:
> > Segmentation fault (core dumped)
>
> /usr/src/usr.bin/newsyslog% gdb ./newsyslog /var/log/newsyslog.core
>
> [snip: copyright notice]
>
> warning: exec file is newer than core file.
> Core was generated by `newsyslog'.
> Program terminated with signal 11, Segmentation fault.
> Reading symbols from /usr/lib/libc.so.38.4...done.
> Loaded symbols for /usr/lib/libc.so.38.4
> Reading symbols from /usr/libexec/ld.so...done.
> Loaded symbols for /usr/libexec/ld.so
> #0  0x0be74bff in memset () from /usr/lib/libc.so.38.4
> (gdb) bt
> #0  0x0be74bff in memset () from /usr/lib/libc.so.38.4
> #1  0x7c217160 in ?? ()
> #2  0x0be520c5 in newbuf () from /usr/lib/libc.so.38.4
> #3  0x0be51d8f in __get_buf () from /usr/lib/libc.so.38.4
> #4  0x0be6a86b in hash_access () from /usr/lib/libc.so.38.4
> #5  0x0be48e2b in __hashpw () from /usr/lib/libc.so.38.4
> #6  0x0be486c4 in getpwnam () from /usr/lib/libc.so.38.4
> #7  0x1c00281d in parse_file (nentries=0xcfbc1154) at newsyslog.c:534
> #8  0x1c001434 in main (argc=0, argv=0xcfbc11d8) at newsyslog.c:206
> (gdb) l
> 206             p = parse_file(&listlen);
> 207             if (argc > 0) {
> 208                     /* Only rotate specified files. */
> 209                     x = y = NULL;
> 210                     listlen = 0;
> 211                     for (av = argv; *av; av++) {
> 212                             for (q = p; q; q = q->next)
> 213                                     if (strcmp(*av, q->log) == 0) {
> 214                                             if (x == NULL)
> 215                                                     x = y = q;
> (gdb)
>
>
>
> # Han

Can you send me the core file and your newsyslog.conf?

        -Otto