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