[Python-Dev] python-2.6.6 coredump running newspipe (original) (raw)

Brett Cannon brett at python.org
Thu Oct 7 20:15:27 CEST 2010


It's best to report issues at bugs.python.org.

On Thu, Oct 7, 2010 at 05:17, Thomas Klausner <tk at giga.or.at> wrote:

Hi!

I'm running newspipe-1.1.9, an RSS reader (http://newspipe.sourceforge.net/), on NetBSD-5.99.11/amd64 using Python-2.6.6. Sometimes, it core dumps with particular feeds in the configuration (I guess depending on the feed, because when I comment out the offending feed in the opml file, it runs through to completion). The backtrace looks like this: Core was generated by `python'. Program terminated with signal 10, Bus error. #0  0x00007f7ffdc35a21 in PyOSsnprintf (str=0x7f7ff5dfe3d8 "@", size=120, format=0x1 <Address 0x1 out of bounds>) at Python/mysnprintf.c:43 43      { (gdb) bt #0  0x00007f7ffdc35a21 in PyOSsnprintf (str=0x7f7ff5dfe3d8 "@", size=120, format=0x1 <Address 0x1 out of bounds>) at Python/mysnprintf.c:43 #1  0x00007f7ffdc471a6 in PyOSasciiformatd (buffer=0x7f7ff5dfe3d8 "@", bufsize=120, format=0x7f7ff5dfe388 "%.2f", d=0.15256118774414062) at Python/pystrtod.c:455 #2  0x00007f7ffdbaa7fa in formatfloat (buf=0x7f7ff5dfe3d8 "@", buflen=120, flags=16, prec=2, type=102, v=0x7f7ffcc6d510) at Objects/stringobject.c:4378 #3  0x00007f7ffdbabd32 in PyStringFormat (format=0x7f7ffc8144e0, args=0x7f7ffcc6d510) at Objects/stringobject.c:4943 #4  0x00007f7ffdbaa3b0 in stringmod (v=0x7f7ffc8144e0, w=0x7f7ffcc6d510) at Objects/stringobject.c:4116 #5  0x00007f7ffdb459db in binaryop1 (v=0x7f7ffc8144e0, w=0x7f7ffcc6d510, opslot=32) at Objects/abstract.c:917 #6  0x00007f7ffdb45c81 in binaryop (v=0x7f7ffc8144e0, w=0x7f7ffcc6d510, opslot=32, opname=0x7f7ffdc6c089 "%") at Objects/abstract.c:969 #7  0x00007f7ffdb467ad in PyNumberRemainder (v=0x7f7ffc8144e0, w=0x7f7ffcc6d510) at Objects/abstract.c:1221 #8  0x00007f7ffdc08a03 in PyEvalEvalFrameEx (f=0x7f7fefa1dab0, throwflag=0) at Python/ceval.c:1180 #9  0x00007f7ffdc1175f in fastfunction (func=0x7f7ff8a9bed8, ppstack=0x7f7ff5dfeae8, n=1, na=1, nk=0) at Python/ceval.c:3836 #10 0x00007f7ffdc11565 in callfunction (ppstack=0x7f7ff5dfeae8, oparg=1) at Python/ceval.c:3771 #11 0x00007f7ffdc0d81f in PyEvalEvalFrameEx (f=0x7f7fee920420, throwflag=0) at Python/ceval.c:2412 #12 0x00007f7ffdc0f715 in PyEvalEvalCodeEx (co=0x7f7ffcc247b0, globals=0x7f7ffd1c5880, locals=0x0, args=0x7f7ff5b0aac8, argcount=8, kws=0x7f7ff5b0ab08, kwcount=0, defs=0x7f7ff8d3c4e8,  defcount=5, closure=0x0) at Python/ceval.c:3000 #13 0x00007f7ffdc1184a in fastfunction (func=0x7f7ff8a9cc80, ppstack=0x7f7ff5dfeff8, n=8, na=8, nk=0) at Python/ceval.c:3846 #14 0x00007f7ffdc11565 in callfunction (ppstack=0x7f7ff5dfeff8, oparg=7) at Python/ceval.c:3771 #15 0x00007f7ffdc0d81f in PyEvalEvalFrameEx (f=0x7f7ff5b0a820, throwflag=0) at Python/ceval.c:2412 #16 0x00007f7ffdc1175f in fastfunction (func=0x7f7ff8a9e140, ppstack=0x7f7ff5dff358, n=1, na=1, nk=0) at Python/ceval.c:3836 #17 0x00007f7ffdc11565 in callfunction (ppstack=0x7f7ff5dff358, oparg=0) at Python/ceval.c:3771 #18 0x00007f7ffdc0d81f in PyEvalEvalFrameEx (f=0x7f7ff5b0a420, throwflag=0) at Python/ceval.c:2412 #19 0x00007f7ffdc1175f in fastfunction (func=0x7f7ffca1db90, ppstack=0x7f7ff5dff6b8, n=1, na=1, nk=0) at Python/ceval.c:3836 #20 0x00007f7ffdc11565 in callfunction (ppstack=0x7f7ff5dff6b8, oparg=0) at Python/ceval.c:3771 #21 0x00007f7ffdc0d81f in PyEvalEvalFrameEx (f=0x7f7ff5b03190, throwflag=0) at Python/ceval.c:2412 #22 0x00007f7ffdc0f715 in PyEvalEvalCodeEx (co=0x7f7ffca0d4e0, globals=0x7f7ffca473a0, locals=0x0, args=0x7f7ff04d3e68, argcount=1, kws=0x0, kwcount=0, defs=0x0, defcount=0, closure=0x0)  at Python/ceval.c:3000 #23 0x00007f7ffdb7a612 in functioncall (func=0x7f7ffca1daa0, arg=0x7f7ff04d3e50, kw=0x0) at Objects/funcobject.c:524 #24 0x00007f7ffdb495e8 in PyObjectCall (func=0x7f7ffca1daa0, arg=0x7f7ff04d3e50, kw=0x0) at Objects/abstract.c:2492 #25 0x00007f7ffdb5eca0 in instancemethodcall (func=0x7f7ffca1daa0, arg=0x7f7ff04d3e50, kw=0x0) at Objects/classobject.c:2579 #26 0x00007f7ffdb495e8 in PyObjectCall (func=0x7f7ff8ac2a00, arg=0x7f7ffd112050, kw=0x0) at Objects/abstract.c:2492 #27 0x00007f7ffdc10cd3 in PyEvalCallObjectWithKeywords (func=0x7f7ff8ac2a00, arg=0x7f7ffd112050, kw=0x0) at Python/ceval.c:3619 #28 0x00007f7ffdc4e69f in tbootstrap (bootraw=0x7f7ffd1b4590) at ./Modules/threadmodule.c:428 #29 0x00007f7ffd90ba32 in pthreadsetcancelstate () from /usr/lib/libpthread.so.1 _#30 0x00007f7ffd26e9b0 in lwppark50 () from /usr/lib/libc.so.12 #31 0x0000000000000000 in ?? () (gdb) fr 1 #1  0x00007f7ffdc471a6 in PyOSasciiformatd (buffer=0x7f7ff5dfe3d8 "@", bufsize=120, format=0x7f7ff5dfe388 "%.2f", d=0.15256118774414062) at Python/pystrtod.c:455 455         PyOSsnprintf(buffer, bufsize, format, d); (gdb) l 450             format = tmpformat; 451         } 452 453 454         /* Have PyOSsnprintf do the hard work */ 455         PyOSsnprintf(buffer, bufsize, format, d); 456 457         /* Do various fixups on the return string */ 458 459         /* Get the current locale, and find the decimal point string. (gdb) p format $1 = 0x7f7ff5dfe388 "%.2f" (gdb) fr 0 #0  0x00007f7ffdc35a21 in PyOSsnprintf (str=0x7f7ff5dfe3d8 "@", size=120, format=0x1 <Address 0x1 out of bounds>) at Python/mysnprintf.c:43 43      { (gdb) l 38         CAUTION:  Unlike C99, str != NULL and size > 0 are required. 39      */ 40 41      int 42      PyOSsnprintf(char *str, sizet size, const  char  *format, ...) 43      { 44          int rc; 45          valist va; 46 47          vastart(va, format); (gdb) It seems that the format argument is corrupted while calling PyOSsnprintf. Any ideas what could cause this or how to fix this? Thanks,  Thomas


Python-Dev mailing list Python-Dev at python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/brett%40python.org



More information about the Python-Dev mailing list