Gentoo Archives: gentoo-user

From: Nicolai Beuermann <Nicolai.Beuermann@×××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] python - *** glibc detected ***
Date: Sat, 12 Apr 2008 15:09:15
Message-Id: 200804121709.12016.Nicolai.Beuermann@gmx.de
In Reply to: Re: [gentoo-user] python - *** glibc detected *** by Volker Armin Hemmann
1 OK I've reemerged python and ran python-updater.
2 Problems remain the same although the script works until it stops and gives
3 the error messages from above.
4
5 The script is a slighty modified (In/Outputs) version of the one that comes
6 with ecasound documentation:
7 #!/usr/bin/env python
8
9 """
10 1 Setup ECI to read audio from file, apply a 100Hz lowpass filter, and send it
11 to the soundcard (/dev/dsp).
12 2 Every second, check the current position. If the stream has been running for
13 over 15 seconds, exit immediately. Also, every second, increase the lowpass
14 filter's cutoff frequency by 500Hz.
15 3 Stop the stream (if not already finished) and disconnect the chainsetup.
16 Print chain operator status info.
17 """
18 import time
19 from pyeca import *
20
21 cutoff_inc = 500.0
22
23 e = ECA_CONTROL_INTERFACE()
24 e.command("cs-add pass_jack")
25 e.command("c-add chain01")
26 e.command("ai-add jack_auto,xine")
27 e.command("ao-add jack_auto,MONITOR")
28 e.command("cop-add -efl:100")
29 e.command("cop-select 1")
30 e.command("copp-select 1")
31 e.command("cs-connect")
32 e.command("start")
33 while True:
34 time.sleep(True)
35 e.command("engine-status")
36 if e.last_string() != "running": break
37 e.command("get-position")
38 curpos = e.last_float()
39 if curpos > 15: break
40 e.command("copp-get")
41 next_cutoff = cutoff_inc + e.last_float()
42 e.command_float_arg("copp-set", next_cutoff)
43 e.command("stop")
44 e.command("cs-disconnect")
45 e.command("cop-status")
46 print "Chain operator status: ", e.last_string()
47
48 On 12.04.2008 02:24:09, Volker Armin Hemmann wrote:
49 > On Donnerstag, 10. April 2008, Nicolai Beuermann wrote:
50 > > Hello list,
51 > > a few days ago my creative urge forced me to learn python. As a first
52 > > step I wanted to control ecasound by script.
53 > > What a pity that it doesn't work.
54 > >
55 > > kernel:
56 > > It's a 64bit applepro with Linux 2.6.22-sabayon #16 SMP PREEMPT Thu Dec
57 > > 27 19:33:05 CET 2007 x86_64 Intel(R) Xeon(R) CPU 5130 @ 2.00GHz
58 > > GenuineIntel GNU/Linux
59 > >
60 > > python:
61 > > Python 2.5.1 (r251:54863, Feb 5 2008, 15:14:12)
62 > > [GCC 4.1.2 (Gentoo 4.1.2 p1.0.1)] on linux2
63 > >
64 > > ls -l `which python`
65 > > lrwxrwxrwx 1 root root 18 10. Apr 00:04 /usr/bin/python ->
66 > > /usr/bin/python2.5
67 > >
68 > > I get:
69 > > Chain operator status: ### Chain operator status (chainsetup
70 > > 'pass_jack') ### Chain "chain01":
71 > > 1. Lowpass filter: [1] cutoff-freq 100.00000000000000000
72 > > *** glibc detected *** python: munmap_chunk(): invalid pointer:
73 > > 0x00002b8ca3a700d8 ***
74 > > ======= Backtrace: =========
75 > > /lib/libc.so.6(cfree+0x1ac)[0x2b8ca48be7dc]
76 > > /usr/lib64/python2.5/site-packages/pyecasound.so[0x2b8ca50ec6ee]
77 > > /usr/lib/libpython2.5.so.1.0[0x2b8ca3c5fc80]
78 > > /usr/lib/libpython2.5.so.1.0(PyDict_SetItem+0x118)[0x2b8ca3c603ff]
79 > > /usr/lib/libpython2.5.so.1.0(_PyModule_Clear+0x1e8)[0x2b8ca3c65a58]
80 > > /usr/lib/libpython2.5.so.1.0(PyImport_Cleanup+0x2ea)[0x2b8ca3cefbc3]
81 > > /usr/lib/libpython2.5.so.1.0(Py_Finalize+0x95)[0x2b8ca3cfee1c]
82 > > /usr/lib/libpython2.5.so.1.0(Py_Main+0xdb3)[0x2b8ca3d0f1f4]
83 > > python(main+0x1b)[0x40081b]
84 > > /lib/libc.so.6(__libc_start_main+0xf4)[0x2b8ca48651f4]
85 > > python[0x400789]
86 > > ======= Memory map: ========
87 > > 00400000-00401000 r-xp 00000000 08:12
88 > > 6417361 /usr/bin/python2.5
89 > > 00600000-00601000 r--p 00000000 08:12
90 > > 6417361 /usr/bin/python2.5
91 > > 00601000-00602000 rw-p 00001000 08:12
92 > > 6417361 /usr/bin/python2.5
93 > > 00602000-006d9000 rw-p 00602000 00:00 0
94 > > [heap]
95 > > <snip>
96 > >
97 > > I did "revdev-rebuild". In that sense my system seems to be consistence.
98 > >
99 > > Should glibc be downgraded? Wrong USE variables?
100 >
101 > you can't downgrade glibc.
102 >
103 > re-emerge python and use python-updater.
104 >
105 > And since you are using sabayon, file a bug in their bugzilla.
106 Neither python or glibc nor ecasound are in the sabayon overlay.
107
108
109 --
110 mailto: nicolai.beuermann@×××.de
111 gnupg fingerprint: 56DA 4E32 3A4A 52AC B769 DFC2 BF3E 9805 09BB 4259
112 --
113 gentoo-user@l.g.o mailing list

Replies

Subject Author
Re: [gentoo-user][SOLVED] python - *** glibc detected *** Nicolai Beuermann <Nicolai.Beuermann@×××.de>