Hi all,

I was in the mood to work some more on my FAUSTPy project (there was one
outstanding issue that I wanted to debug), and after finding out that the faust2
branch compiles on Linux again a few days ago, I thought I'd get to that.

Now the issue I'm facing is beyond me: the compilation of a trivial DSP causes
a SEGFAULT once the code reaches the call to createCDSPInstance(factory). GDB
says the crash originates from "new_mydsp" (see the attached backtrace), which,
if I understand correctly, is the constructor of the DSP object as compiled by
LLVM and stored in fNew()?

The standalone faust compiler seems to work fine, including compiling LLVM IR
bitcode ("-lang llvm").

Does anybody have any ideas what might be causing this? Would it help if I
install split debug symbols for LLVM? I'm using LLVM 3.3 and GCC 4.7.3, if that
matters.

Greetings
-- 
Marc Joliet
--
"People who think they know everything really annoy those of us who know we
don't" - Bjarne Stroustrup
>> (0) % gdb python3
GNU gdb (Gentoo 7.5.1 p2) 7.5.1
Copyright (C) 2012 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-pc-linux-gnu".
For bug reporting instructions, please see: <http://bugs.gentoo.org/>...
Reading symbols from /usr/bin/python3...Reading symbols from 
/usr/lib64/debug/usr/bin/python3.2.debug...(no debugging symbols found)...done. 
(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/python3
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Python 3.2.5 (default, Oct 18 2013, 00:04:33) 
[GCC 4.7.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import FAUSTPy
>>> f = FAUSTPy.libfaust.LibFaust("float")
>>> f.compile_faust(b"process = _;", b"test")
creating CDSP factory
checking the CDSP factory: <cdata 'llvm_dsp_factory *' 0xd9c660>
creating a CDSP instance

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7ff0040 in new_mydsp ()
(gdb) bt
#0  0x00007ffff7ff0040 in new_mydsp ()
#1  0x00007fffeef2ab05 in createDSPInstance (this=0xd9c660) at 
generator/llvm_dsp_aux.cpp:184
#2  createCDSPInstance (factory=0xd9c660) at generator/llvm_dsp_aux.cpp:871
#3  0x00007ffff018c23c in _cffi_f_createCDSPInstance (self=<module at remote 
0x153e290>,
    arg0=<_cffi_backend.CData at remote 0x12a1990>) at
    FAUSTPy/__pycache__/_cffi__xc2b32fe7x55011c58.c:491
#4  0x00007ffff7ab7c33 in PyEval_EvalFrameEx () from 
/usr/lib64/libpython3.2.so.1.0
#5  0x00007ffff7ab853f in PyEval_EvalCodeEx () from 
/usr/lib64/libpython3.2.so.1.0
#6  0x00007ffff7ab75f0 in PyEval_EvalFrameEx () from 
/usr/lib64/libpython3.2.so.1.0
#7  0x00007ffff7ab853f in PyEval_EvalCodeEx () from 
/usr/lib64/libpython3.2.so.1.0
#8  0x00007ffff7ab878b in PyEval_EvalCode () from /usr/lib64/libpython3.2.so.1.0
#9  0x00007ffff7ad240f in run_mod () from /usr/lib64/libpython3.2.so.1.0
#10 0x00007ffff7ad513f in PyRun_InteractiveOneFlags () from 
/usr/lib64/libpython3.2.so.1.0
#11 0x00007ffff7ad53be in PyRun_InteractiveLoopFlags () from 
/usr/lib64/libpython3.2.so.1.0
#12 0x00007ffff7ad57cc in PyRun_AnyFileExFlags () from 
/usr/lib64/libpython3.2.so.1.0
#13 0x00007ffff7ae6223 in Py_Main () from /usr/lib64/libpython3.2.so.1.0
#14 0x0000000000400dc6 in main ()
(gdb)

Attachment: signature.asc
Description: PGP signature

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
_______________________________________________
Faudiostream-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/faudiostream-users

Reply via email to