[issue19878] PyFile_DecUseCount() SIGSEGV

2013-12-03 Thread Matthew Bergin

New submission from Matthew Bergin:

[level@removed fuzz]# cat pyfile.py
import bz2
obj = bz2.BZ2File('/tmp/fileName')
obj.__init__(fileName)
obj.__reduce__
[level@removed fuzz]# gdb --args python pyfile.py
GNU gdb (GDB) Red Hat Enterprise Linux (7.2-60.el6_4.1)
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type show copying
and show warranty for details.
This GDB was configured as x86_64-redhat-linux-gnu.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/...
Reading symbols from /usr/bin/python...(no debugging symbols found)...done.
Missing separate debuginfos, use: debuginfo-install python-2.6.6-37.el6_4.i686 
python-2.6.6-37.el6_4.x86_64
(gdb) r
Starting program: /usr/bin/python pyfile.py
[Thread debugging using libthread_db enabled]
Traceback (most recent call last):
  File pyfile.py, line 3, in module
obj.__init__(fileName)
IOError: [Errno 2] No such file or directory: 'fileName'

Program received signal SIGSEGV, Segmentation fault.
0x77a98170 in PyFile_DecUseCount () from /usr/lib64/libpython2.6.so.1.0
(gdb)

--
components: Interpreter Core
messages: 205137
nosy: Level
priority: normal
severity: normal
status: open
title: PyFile_DecUseCount() SIGSEGV
versions: Python 2.6

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19878
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19879] PyCFunction_NewEx() SIGABRT

2013-12-03 Thread Matthew Bergin

New submission from Matthew Bergin:

[level@removed fuzz]# cat PyCFunction.py
#
# PyCFunction_NewEx crach poc (sigabrt)
#
import imageop
imageop.rgb82rgb(u%J8CBej uFBi-,True,8.36)
imageop.grey2grey(None,5,uCRi)
[level@removed fuzz]# gdb --args python PyCFunction.py
GNU gdb (GDB) Red Hat Enterprise Linux (7.2-60.el6_4.1)
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type show copying
and show warranty for details.
This GDB was configured as x86_64-redhat-linux-gnu.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/...
Reading symbols from /usr/bin/python...(no debugging symbols found)...done.
Missing separate debuginfos, use: debuginfo-install python-2.6.6-37.el6_4.i686 
python-2.6.6-37.el6_4.x86_64
(gdb) r
Starting program: /usr/bin/python PyCFunction.py
[Thread debugging using libthread_db enabled]
PyCFunction.py:5: DeprecationWarning: integer argument expected, got float
  imageop.rgb82rgb(u%J8CBej uFBi-,True,8.36)
Fatal Python error: GC object already tracked

Program received signal SIGABRT, Aborted.
0x76e2e8e5 in raise () from /lib64/libc.so.6
(gdb) bt
#0  0x76e2e8e5 in raise () from /lib64/libc.so.6
#1  0x76e300c5 in abort () from /lib64/libc.so.6
#2  0x77b2823e in Py_FatalError () from /usr/lib64/libpython2.6.so.1.0
#3  0x77ab3175 in PyCFunction_NewEx () from 
/usr/lib64/libpython2.6.so.1.0
#4  0x77b24b18 in Py_InitModule4_64 () from 
/usr/lib64/libpython2.6.so.1.0
#5  0x70b66abe in initsyslog () from 
/usr/lib64/python2.6/lib-dynload/syslog.so
#6  0x77b21865 in _PyImport_LoadDynamicModule () from 
/usr/lib64/libpython2.6.so.1.0
#7  0x77b1f8a5 in ?? () from /usr/lib64/libpython2.6.so.1.0
#8  0x77b1fb24 in ?? () from /usr/lib64/libpython2.6.so.1.0
#9  0x77b2017d in ?? () from /usr/lib64/libpython2.6.so.1.0
#10 0x77b20ee4 in PyImport_ImportModuleLevel () from 
/usr/lib64/libpython2.6.so.1.0
#11 0x77b0671f in ?? () from /usr/lib64/libpython2.6.so.1.0
#12 0x77a7ac63 in PyObject_Call () from /usr/lib64/libpython2.6.so.1.0
#13 0x77b06c93 in PyEval_CallObjectWithKeywords () from 
/usr/lib64/libpython2.6.so.1.0
#14 0x77b0a33f in PyEval_EvalFrameEx () from 
/usr/lib64/libpython2.6.so.1.0
#15 0x77b0db8f in PyEval_EvalFrameEx () from 
/usr/lib64/libpython2.6.so.1.0
#16 0x77b0e657 in PyEval_EvalCodeEx () from 
/usr/lib64/libpython2.6.so.1.0
#17 0x77aa1cb0 in ?? () from /usr/lib64/libpython2.6.so.1.0
#18 0x77a7ac63 in PyObject_Call () from /usr/lib64/libpython2.6.so.1.0
#19 0x77b06c93 in PyEval_CallObjectWithKeywords () from 
/usr/lib64/libpython2.6.so.1.0
#20 0x77b29cc2 in PyErr_PrintEx () from /usr/lib64/libpython2.6.so.1.0
#21 0x77b2a287 in PyRun_SimpleFileExFlags () from 
/usr/lib64/libpython2.6.so.1.0
#22 0x77b368a2 in Py_Main () from /usr/lib64/libpython2.6.so.1.0
#23 0x76e1acdd in __libc_start_main () from /lib64/libc.so.6
#24 0x00400649 in _start ()
(gdb) q

--
components: Interpreter Core
messages: 205138
nosy: Level
priority: normal
severity: normal
status: open
title: PyCFunction_NewEx() SIGABRT
type: crash
versions: Python 2.6

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19879
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19878] PyFile_DecUseCount() SIGSEGV

2013-12-03 Thread Matthew Bergin

Changes by Matthew Bergin mber...@coresecurity.com:


--
type:  - crash

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19878
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19878] bz2.BZ2File.__init__() cannot be called twice

2013-12-03 Thread Matthew Bergin

Matthew Bergin added the comment:

I was fuzzing the interpreter otherwise it would init itself

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19878
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19879] imageop: bug in error handler

2013-12-03 Thread Matthew Bergin

Matthew Bergin added the comment:

I am going to test it against 2.7 a little later on this afternoon.

I typically host all of the code I write at https://github.com/levle but atm 
the github repo I use to host the project is private. Once I work out some of 
the kinks I will set it to Public.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19879
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19879] imageop: bug in error handler

2013-12-03 Thread Matthew Bergin

Matthew Bergin added the comment:

Sweet, I will check it out

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19879
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com