From: D.B. M. <db...@ho...> - 2008-05-14 00:20:34
|
---------------------------------------- > Date: Tue, 13 May 2008 05:41:08 +0000 > Subject: Re: [jazzplusplus-devel] configure.ac update -please test- > >>> >> When you are debugging add --enable-debug to your configure line. >> >> After you finish the build, run the code using gdb... >> >> gdb jazz >> >> Then type "run" when you get a prompt. When the code crashes, generate >> a back trace using the "bt" command. Full gdb documentation can be >> found at http://sourceware.org/gdb/current/onlinedocs/gdb_toc.html >> >> Reply back with the result of the back trace. >> I actually know about gdb, backtraces and so forth. I doubt one could build a Free software based systems for as long as I have without needing this 'software scalpel' at some stage or another. However, I tend to 'follow the book' very closely, as to expose 'userland', because sometimes that's a useful strategy. So we see here...the configuration switch '--enable-debug' (which is part of the current svn build instructions anyhow), and the quick gdb primer of how to obtain useful debugging information to help developers out here. I think somehow that for as long as a debug build is the default build, these brief gdb instructions would be quite pertinent for users to read somewhere on the website. Test builders are a valuable resource, and so I believe it might useful to include such documentation on the site so users who do build jazz++ can quickly and easily supply (and know how to create) useful information if they find their jazz++ build crashes. If nothing else, it'll save having to spell that backtrace passage out, over and over again. Remember, everyone building from svn is effectively a test builder at present. Let me know what we think here - if it sounds like a good idea and we agree, I'll edit the htdocs in some appropriate spot to include such instructions. >> It will be a while before I get to it. Maybe not until this weekend. >> >> Pete >> > > Yep, no problem.... the back trace without vkeybd running but with > jack/fluidsynth/qsynth running and ready to go (complete session); > > (gdb) run > Starting program: /root/Jazz++/TestInstall/bin/jazz > Failed to read a valid object file image from memory. > [Thread debugging using libthread_db enabled] > [New Thread 140090596853472 (LWP 3341)] > JZProject::ReadConfiguration() ConfFileNameAndPath: > "/root/Jazz++/TestInstall/share/Jazz++/jazz.cfg" > JZConfiguration::LoadConfig: > "/root/Jazz++/TestInstall/share/Jazz++/jazz.cfg" > Include synthesizer configuration file "gs.jzi" > FindFile: Immediate hit on file "gs.jzi" > Include file "gsdrmset.jzi" > FindFile: Immediate hit on file "gsdrmset.jzi" > Include file "gmdrmnam.jzi" > FindFile: Immediate hit on file "gmdrmnam.jzi" > Include file "gsvoices.jzi" > FindFile: Immediate hit on file "gsvoices.jzi" > Include file "ctrlnam.jzi" > FindFile: Immediate hit on file "ctrlnam.jzi" > created client:port = 131:0 > invalid output device, so selecting one > Program received signal SIGSEGV, Segmentation fault. > [Switching to Thread 140090596853472 (LWP 3341)] > snd_seq_port_subscribe_set_sender (info=0x7fff6a45d310, addr=0x0) at seq.c:2432 > 2432 memcpy(&info->sender, addr, sizeof(*addr)); > Current language: auto; currently c > > (gdb) bt > #0 snd_seq_port_subscribe_set_sender (info=0x7fff6a45d310, addr=0x0) > at seq.c:2432 > #1 0x0000000000426a59 in tAlsaPlayer::subscribe_inp (this=0xb68020, inp=0) > at ../../jazz/src/AlsaPlayer.cpp:219 > #2 0x0000000000427793 in tAlsaPlayer (this=0xb68020, song=0x7f69623ea010) > at ../../jazz/src/AlsaPlayer.cpp:122 > #3 0x0000000000423638 in tAlsaAudioPlayer (this=0xb68020, > pSong=0x7f69623ea010) at ../../jazz/src/AlsaDriver.cpp:127 > #4 0x00000000004b9ed2 in JZProject (this=0x7f69623ea010) > at ../../jazz/src/Project.cpp:194 > #5 0x0000000000498948 in JZJazzPlusPlusApplication::OnInit (this=0xafe690) > at ../../jazz/src/JazzPlusPlusApplication.cpp:127 > #6 0x0000000000498d96 in wxAppConsole::CallOnInit (this=0xafe690) > at /usr/local/wx287/include/wx-2.8/wx/app.h:76 > #7 0x000000000079a70a in wxEntry () > #8 0x0000000000498d10 in main (argc=1, argv=0x7fff6a45dc68) > at ../../jazz/src/JazzPlusPlusApplication.cpp:63 > Just a further note on this -- as I mentioned in a previous posting, I'm keen to test out and document jazz++'s interoperability and setup with other midi based applications on linux. Last night, I got around to trying the AlsaModularSynth (AMS) application with jazz++. To use AMS without a hardware midi/synth soundcard, relies on a very similar setup to jack/fluidsynth/qsynth. One starts AMS with the --jack cmdline option, and when jazz++ is started and prompts for an output device, the user selects the AMS output device entry. Yes...it works, and curiously enough it never once spawned the above crash in a two hour session of me mucking around with things, stopping and restarting things...I could not seemingly reproduce this error above using jack/AMS and jazz++ at all. Nor did it ever steal my mouse and keyboard I hasten to add -- everything behaved itself. I'm no coder, but I thought I'd mention this here, just in case there's more to the above error than immediately meets the eye. Regards, Donald B > > > Hope this helps put some light on the issue. > > > Regards, > > Donald B > _________________________________________________________________ > Search for local singles online @ Lavalife - Click here > http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Flavalife9%2Eninemsn%2Ecom%2Eau%2Fclickthru%2Fclickthru%2Eact%3Fid%3Dninemsn%26context%3Dan99%26locale%3Den%5FAU%26a%3D30290&_t=764581033&_r=email_taglines_Search_OCT07&_m=EXT > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > jazzplusplus-devel mailing list > jaz...@li... > https://lists.sourceforge.net/lists/listinfo/jazzplusplus-devel _________________________________________________________________ Are you paid what you're worth? Find out: SEEK Salary Centre http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fninemsn%2Eseek%2Ecom%2Eau%2Fcareer%2Dresources%2Fsalary%2Dcentre%2F%3Ftracking%3Dsk%3Ahet%3Asc%3Anine%3A0%3Ahot%3Atext&_t=764565661&_r=OCT07_endtext_salary&_m=EXT |