Histfile >>2G on linux

Alex Kiernan alexk at demon.net
Mon Oct 14 15:03:46 UTC 2002


Dirk Achenbach <d.achenbach at broadnet-mediascape.de> writes:

> On Thu, 10 Oct 2002, Russ Allbery wrote:
> 
> >
> > Dirk Achenbach <d.achenbach at broadnet-mediascape.de> writes:
> >
> > > [root at news1 articles]# ls -l ~news/spool/articles
> > > total 265548
> > > -rw-------    1 news     news     274382848 Oct  7 11:59 core
> >
> > Could you run gdb on innd and that core file and then run "backtrace" so
> > that we can see where it died at?
> 
> (inn-CURRENT-20021007)
> 
> 
> [root at news1 articles]# gdb /usr/local/news/bin/innd core
> GNU gdb 5.0rh-5 Red Hat Linux 7.1
> Copyright 2001 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and
> you are
> welcome to change it and/or 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.
> This GDB was configured as "i386-redhat-linux"...
> Core was generated by `/usr/local/news/bin/innd -p 3 -r'.
> Program terminated with signal 25, File size limit exceeded.
> Reading symbols from /lib/i686/libc.so.6...done.
> Loaded symbols for /lib/i686/libc.so.6
> Reading symbols from /lib/ld-linux.so.2...done.
> Loaded symbols for /lib/ld-linux.so.2
> Reading symbols from /lib/libnss_files.so.2...done.
> Loaded symbols for /lib/libnss_files.so.2
> Reading symbols from /lib/libnss_nisplus.so.2...done.
> Loaded symbols for /lib/libnss_nisplus.so.2
> Reading symbols from /lib/libnsl.so.1...done.
> Loaded symbols for /lib/libnsl.so.1
> Reading symbols from /lib/libnss_dns.so.2...done.
> Loaded symbols for /lib/libnss_dns.so.2
> Reading symbols from /lib/libresolv.so.2...done.
> Loaded symbols for /lib/libresolv.so.2
> #0  0x400f7f84 in __libc_write () from /lib/i686/libc.so.6
> (gdb) backtrace
> #0  0x400f7f84 in __libc_write () from /lib/i686/libc.so.6
> #1  0x401489e4 in __DTOR_END__ () from /lib/i686/libc.so.6
> #2  0x40099999 in new_do_write (fp=0x80a8500,
>     data=0x4001a000
> "[737B5836A9F393C16D7FE0084E19053A]\t1034507394~-~1034505248\t at 030254574F",
> '0' <repeats 12 times>, "C445A700000010@\n", to_do=98) at fileops.c:409
> #3  0x4009953f in _IO_new_do_write (fp=0x80a8500,
>     data=0x4001a000
> "[737B5836A9F393C16D7FE0084E19053A]\t1034507394~-~1034505248\t at 030254574F",
> '0' <repeats 12 times>, "C445A700000010@\n", to_do=98) at fileops.c:383
> #4  0x40098c18 in _IO_new_file_sync (fp=0x80a8500) at fileops.c:558
> #5  0x4008ef6e in _IO_fflush (fp=0x80a8500) at iofflush.c:41
> #6  0x080771a9 in hisv6_writeline (h=0x80a8b50, hash=0xbffff5e0,
> arrived=1034507394, posted=1034505248, expires=0,
>     token=0xbffff720) at hisv6.c:823
> #7  0x08077260 in hisv6_write (history=0x80a8b50, key=0x84064a1
> "<aobi70$1qna$1 at nl-news.euro.net>", arrived=1034507394,
>     posted=1034505248, expires=0, token=0xbffff720) at hisv6.c:853
> #8  0x08075c6c in HISwrite (h=0x80a8a68, key=0x84064a1
> "<aobi70$1qna$1 at nl-news.euro.net>", arrived=1034507394,
>     posted=1034505248, expires=0, token=0xbffff720) at his.c:263
> #9  0x08061a21 in InndHisWrite (key=0x84064a1
> "<aobi70$1qna$1 at nl-news.euro.net>", arrived=1034507394,
> posted=1034505248,
>     expires=0, token=0xbffff720) at util.c:356
> #10 0x0804e561 in ARTpost (cp=0x40602cc4) at art.c:2308
> #11 0x08055699 in NCpostit (cp=0x40602cc4) at nc.c:193
> #12 0x08056b95 in NCproc (cp=0x40602cc4) at nc.c:977
> #13 0x08053185 in CHANreadloop () at chan.c:1127
> #14 0x08055110 in main (ac=3, av=0xbffffe74) at innd.c:664
> #15 0x4003a177 in __libc_start_main (main=0x805451c <main>, argc=3,
> ubp_av=0xbffffe74, init=0x8049a70 <_init>,
>     fini=0x8080e80 <_fini>, rtld_fini=0x4000e184 <_dl_fini>,
> stack_end=0xbffffe6c) at ../sysdeps/generic/libc-start.c:129
> 

Looks like libc can't cope with stdio to files >2G.

-- 
Alex Kiernan, Principal Engineer, Development, THUS plc


More information about the inn-workers mailing list