execute bash builtins in python

alex goretoy agoretoy at gmail.com
Mon Mar 22 08:32:36 CET 2010


I do have a problem however that I don't know how to solve. My application
dies abruptly at random times because of this and I get this output error in
the terminal:

bash: line 0: declare: write error: Broken pipe

and sometimes it crashes and I get this output error; this one maybe gtk
related, yes?

*** glibc detected *** /usr/bin/python: double free or corruption (fasttop):
0xb650fa78 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6[0x17aff1]
/lib/tls/i686/cmov/libc.so.6[0x17c6f2]
/lib/tls/i686/cmov/libc.so.6(cfree+0x6d)[0x17f7cd]
/lib/libglib-2.0.so.0(g_free+0x36)[0x7a3196]
/usr/lib/libgdk-x11-2.0.so.0[0x27faba]
/usr/lib/libgdk-x11-2.0.so.0(gdk_region_union+0x8e)[0x28129e]
/usr/lib/libgdk-x11-2.0.so.0[0x28e26c]
/usr/lib/libgdk-x11-2.0.so.0(gdk_window_invalidate_maybe_recurse+0x243)[0x28eb33]
/usr/lib/libgdk-x11-2.0.so.0(gdk_window_invalidate_maybe_recurse+0x206)[0x28eaf6]
/usr/lib/libgtk-x11-2.0.so.0[0x28b5893]
/usr/lib/libgtk-x11-2.0.so.0[0x28b6cff]
/usr/lib/libgtk-x11-2.0.so.0(gtk_widget_queue_resize+0x75)[0x28bcaa5]
/usr/lib/libgtk-x11-2.0.so.0[0x288b557]
/usr/lib/libgobject-2.0.so.0(g_cclosure_marshal_VOID__BOXED+0x88)[0x320068]
/usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x1b2)[0x313072]
/usr/lib/libgobject-2.0.so.0[0x3287a8]
/usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x7bd)[0x329b2d]
/usr/lib/libgobject-2.0.so.0(g_signal_emit+0x26)[0x329fb6]
/usr/lib/libgtk-x11-2.0.so.0(gtk_tree_model_row_deleted+0x9a)[0x28751da]
/usr/lib/libgtk-x11-2.0.so.0(gtk_list_store_remove+0x114)[0x278e9e4]
/usr/lib/libgtk-x11-2.0.so.0(gtk_list_store_clear+0x90)[0x278eab0]
/usr/lib/pymodules/python2.6/gtk-2.0/gtk/_gtk.so[0x10b64a1]
/usr/bin/python(PyEval_EvalFrameEx+0x4175)[0x80dbfd5]
/usr/bin/python(PyEval_EvalFrameEx+0x5524)[0x80dd384]
/usr/bin/python(PyEval_EvalCodeEx+0x7d2)[0x80dddf2]
/usr/bin/python[0x816014c]
/usr/bin/python(PyObject_Call+0x4a)[0x806120a]
/usr/bin/python[0x80684ac]
/usr/bin/python(PyObject_Call+0x4a)[0x806120a]
/usr/bin/python(PyEval_CallObjectWithKeywords+0x42)[0x80d6ef2]
/usr/bin/python(PyObject_CallObject+0x20)[0x80612a0]
/usr/lib/pymodules/python2.6/gtk-2.0/gobject/_gobject.so[0xd4503e]
/usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x1b2)[0x313072]
/usr/lib/libgobject-2.0.so.0[0x3287a8]
/usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x7bd)[0x329b2d]
/usr/lib/libgobject-2.0.so.0(g_signal_emit+0x26)[0x329fb6]
/usr/lib/libgtk-x11-2.0.so.0[0x26fb8dc]
/usr/lib/libgobject-2.0.so.0(g_cclosure_marshal_VOID__BOXED+0x88)[0x320068]
/usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x1b2)[0x313072]
/usr/lib/libgobject-2.0.so.0[0x3287a8]
/usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x7bd)[0x329b2d]
/usr/lib/libgobject-2.0.so.0(g_signal_emit+0x26)[0x329fb6]
/usr/lib/libgtk-x11-2.0.so.0(gtk_tree_model_row_deleted+0x9a)[0x28751da]
/usr/lib/libgtk-x11-2.0.so.0(gtk_list_store_remove+0x114)[0x278e9e4]
/usr/lib/libgtk-x11-2.0.so.0(gtk_list_store_clear+0x90)[0x278eab0]
/usr/lib/pymodules/python2.6/gtk-2.0/gtk/_gtk.so[0x10b64a1]
/usr/bin/python(PyEval_EvalFrameEx+0x4175)[0x80dbfd5]
/usr/bin/python(PyEval_EvalFrameEx+0x5524)[0x80dd384]
/usr/bin/python[0x815de2f]
/usr/bin/python(PyEval_EvalFrameEx+0x95f)[0x80d87bf]
/usr/bin/python(PyEval_EvalCodeEx+0x7d2)[0x80dddf2]
/usr/bin/python[0x816022f]
/usr/bin/python(PyObject_Call+0x4a)[0x806120a]
/usr/bin/python(PyEval_EvalFrameEx+0x30b9)[0x80daf19]
/usr/bin/python(PyEval_EvalFrameEx+0x5524)[0x80dd384]
/usr/bin/python(PyEval_EvalFrameEx+0x5524)[0x80dd384]
/usr/bin/python(PyEval_EvalCodeEx+0x7d2)[0x80dddf2]
/usr/bin/python[0x816014c]
/usr/bin/python(PyObject_Call+0x4a)[0x806120a]
/usr/bin/python[0x80684ac]
/usr/bin/python(PyObject_Call+0x4a)[0x806120a]
/usr/bin/python(PyEval_CallObjectWithKeywords+0x42)[0x80d6ef2]
/usr/bin/python[0x8107d88]
======= Memory map: ========
00110000-0024e000 r-xp 00000000 08:06 688127     /lib/tls/i686/cmov/
libc-2.10.1.so
0024e000-0024f000 ---p 0013e000 08:06 688127     /lib/tls/i686/cmov/
libc-2.10.1.so
0024f000-00251000 r--p 0013e000 08:06 688127     /lib/tls/i686/cmov/
libc-2.10.1.so
00251000-00252000 rw-p 00140000 08:06 688127     /lib/tls/i686/cmov/
libc-2.10.1.so
00252000-00255000 rw-p 00000000 00:00 0
00255000-002e7000 r-xp 00000000 08:06 198090
/usr/lib/libgdk-x11-2.0.so.0.1800.3
002e7000-002e9000 r--p 00092000 08:06 198090
/usr/lib/libgdk-x11-2.0.so.0.1800.3
002e9000-002ea000 rw-p 00094000 08:06 198090
/usr/lib/libgdk-x11-2.0.so.0.1800.3
002ea000-00305000 r-xp 00000000 08:06 198967
/usr/lib/libatk-1.0.so.0.2809.1
00305000-00306000 r--p 0001b000 08:06 198967
/usr/lib/libatk-1.0.so.0.2809.1
00306000-00307000 rw-p 0001c000 08:06 198967
/usr/lib/libatk-1.0.so.0.2809.1
00307000-00308000 rwxp 00000000 00:00 0
00308000-00344000 r-xp 00000000 08:06 196888
/usr/lib/libgobject-2.0.so.0.2200.3
00344000-00345000 r--p 0003b000 08:06 196888
/usr/lib/libgobject-2.0.so.0.2200.3
00345000-00346000 rw-p 0003c000 08:06 196888
/usr/lib/libgobject-2.0.so.0.2200.3
00346000-00351000 r-xp 00000000 08:06 199652
/usr/lib/libpangocairo-1.0.so.0.2600.0
00351000-00352000 r--p 0000a000 08:06 199652
/usr/lib/libpangocairo-1.0.so.0.2600.0
00352000-00353000 rw-p 0000b000 08:06 199652
/usr/lib/libpangocairo-1.0.so.0.2600.0
00353000-003e6000 r-xp 00000000 08:06 197035
/usr/lib/libgio-2.0.so.0.2200.3
003e6000-003e7000 r--p 00092000 08:06 197035
/usr/lib/libgio-2.0.so.0.2200.3
003e7000-003e8000 rw-p 00093000 08:06 197035
/usr/lib/libgio-2.0.so.0.2200.3
003e8000-003e9000 rw-p 00000000 00:00 0
003e9000-003eb000 r-xp 00000000 08:06 198888
/usr/lib/libXcomposite.so.1.0.0
003eb000-003ec000 r--p 00001000 08:06 198888
/usr/lib/libXcomposite.so.1.0.0
003ec000-003ed000 rw-p 00002000 08:06 198888
/usr/lib/libXcomposite.so.1.0.0
003ed000-003ef000 r-xp 00000000 08:06 198892
/usr/lib/libXdamage.so.1.1.0
003ef000-003f0000 rw-p 00001000 08:06 198892
/usr/lib/libXdamage.so.1.1.0
003f0000-003f4000 r-xp 00000000 08:06 198898     /usr/lib/libXfixes.so.3.1.0
003f4000-003f5000 r--p 00003000 08:06 198898     /usr/lib/libXfixes.so.3.1.0
003f5000-003f6000 rw-p 00004000 08:06 198898     /usr/lib/libXfixes.so.3.1.0
003f6000-00404000 r-xp 00000000 08:06 198896     /usr/lib/libXext.so.6.4.0
00404000-00405000 r--p 0000d000 08:06 198896     /usr/lib/libXext.so.6.4.0
00405000-00406000 rw-p 0000e000 08:06 198896     /usr/lib/libXext.so.6.4.0
00406000-0040e000 r-xp 00000000 08:06 198918
/usr/lib/libXrender.so.1.3.0
0040e000-0040f000 r--p 00007000 08:06 198918
/usr/lib/libXrender.so.1.3.0
0040f000-00410000 rw-p 00008000 08:06 198918
/usr/lib/libXrender.so.1.3.0
00410000-00425000 r-xp 00000000 08:06 688141     /lib/tls/i686/cmov/
libpthread-2.10.1.so
00425000-00426000 r--p 00014000 08:06 688141     /lib/tls/i686/cmov/
libpthread-2.10.1.so
00426000-00427000 rw-p 00015000 08:06 688141     /lib/tls/i686/cmov/
libpthread-2.10.1.so
00427000-00429000 rw-p 00000000 00:00 0
00429000-0042b000 r-xp 00000000 08:06 198906
/usr/lib/libXinerama.so.1.0.0
0042b000-0042c000 rw-p 00001000 08:06 198906
/usr/lib/libXinerama.so.1.0.0
0042c000-00435000 r-xp 00000000 08:06 198904     /usr/lib/libXi.so.6.0.0
00435000-00436000 r--p 00008000 08:06 198904     /usr/lib/libXi.so.6.0.0
00436000-00437000 rw-p 00009000 08:06 198904     /usr/lib/libXi.so.6.0.0
00437000-00440000 r-xp 00000000 08:06 198890
/usr/lib/libXcursor.so.1.0.2
00440000-00441000 r--p 00008000 08:06 198890
/usr/lib/libXcursor.so.1.0.2
00441000-00442000 rw-p 00009000 08:06 198890
/usr/lib/libXcursor.so.1.0.2
00442000-00452000 r-xp 00000000 08:06 688142     /lib/tls/i686/cmov/
libresolv-2.10.1.so
00452000-00453000 r--p 00010000 08:06 688142     /lib/tls/i686/cmov/
libresolv-2.10.1.so
00453000-00454000 rw-p 00011000 08:06 688142     /lib/tls/i686/cmov/
libresolv-2.10.1.so
00454000-00456000 rw-p 00000000 00:00 0
00456000-0045e000 r-xp 00000000 08:06 199193
/usr/lib/libfusion-1.2.so.0.7.0
0045e000-0045f000 r--p 00007000 08:06 199193
/usr/lib/libfusion-1.2.so.0.7.0
0045f000-00460000 rw-p 00008000 08:06 199193
/usr/lib/libfusion-1.2.so.0.7.0
00460000-00463000 r-xp 00000000 08:06 199911
/usr/lib/libxcb-render-util.so.0.0.0
00463000-00464000 r--p 00002000 08:06 199911
/usr/lib/libxcb-render-util.so.0.0.0
00464000-00465000 rw-p 00003000 08:06 199911
/usr/lib/libxcb-render-util.so.0.0.0
00465000-0046c000 r-xp 00000000 08:06 199913
/usr/lib/libxcb-render.so.0.0.0
0046c000-0046d000 r--p 00007000 08:06 199913
/usr/lib/libxcb-render.so.0.0.0
0046d000-0046e000 rw-p 00008000 08:06 199913
/usr/lib/libxcb-render.so.0.0.0
0046e000-00486000 r-xp 00000000 08:06 198092
/usr/lib/libgdk_pixbuf-2.0.so.0.1800.3
00486000-00487000 r--p 00017000 08:06 198092
/usr/lib/libgdk_pixbuf-2.0.so.0.1800.3
00487000-00488000 rw-p 00018000 08:06 198092
/usr/lib/libgdk_pixbuf-2.0.so.0.1800.3
00488000-004ff000 r-xp 00000000 08:06 196251
/usr/lib/libcairo.so.2.10800.8
004ff000-00501000 r--p 00076000 08:06 196251
/usr/lib/libcairo.so.2.10800.8
00501000-00502000 rw-p 00078000 08:06 196251
/usr/lib/libcairo.so.2.10800.8
00502000-00548000 r-xp 00000000 08:06 199650
/usr/lib/libpango-1.0.so.0.2600.0
00548000-00549000 r--p 00045000 08:06 199650
/usr/lib/libpango-1.0.so.0.2600.0
00549000-0054a000 rw-p 00046000 08:06 199650
/usr/lib/libpango-1.0.so.0.2600.0
0054a000-0054e000 r-xp 00000000 08:06 198894     /usr/lib/libXdmcp.so.6.0.0
0054e000-0054f000 rw-p 00003000 08:06 198894     /usr/lib/libXdmcp.so.6.0.0
0054f000-00550000 r-xp 00000000 08:06 230770
/usr/lib/gtk-2.0/2.10.0/loaders/svg_loader.so
00550000-00551000 r--p 00001000 08:06 230770
/usr/lib/gtk-2.0/2.10.0/loaders/svg_loader.so
00551000-00552000 rw-p 00002000 08:06 230770
/usr/lib/gtk-2.0/2.10.0/loaders/svg_loader.so
00552000-00566000 r-xp 00000000 08:06 670607     /lib/libz.so.1.2.3.3
00566000-00567000 r--p 00013000 08:06 670607     /lib/libz.so.1.2.3.3
00567000-00568000 rw-p 00014000 08:06 670607     /lib/libz.so.1.2.3.3
00568000-00581000 r-xp 00000000 08:06 670575     /lib/libselinux.so.1
00581000-00582000 r--p 00018000 08:06 670575     /lib/libselinux.so.1
00582000-00583000 rw-p 00019000 08:06 670575     /lib/libselinux.so.1
00583000-005c7000 r-xp 00000000 08:06 199680
/usr/lib/libpixman-1.so.0.14.0
005c7000-005c9000 r--p 00043000 08:06 199680
/usr/lib/libpixman-1.so.0.14.0
005c9000-005ca000 rw-p 00045000 08:06 199680
/usr/lib/libpixman-1.so.0.14.0
005ca000-005e0000 r-xp 00000000 08:06 199106
/usr/lib/libdirect-1.2.so.0.7.0

Thank you,
-Alex Goretoy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100322/b78a8c05/attachment.html>


More information about the Python-list mailing list