On 31/10/2010 05:08, Thomas Ettinger wrote:
> OK, I tried both your suggestion and `gdb sdl_falcon sdlTest.fal` .
> When I run this with plain falcon, I get:
>
> $ gdb falcon sdlTest.fal
> GNU gdb 6.3.50-20050815 (Apple version gdb-1472) (Wed Jul 21 10:53:12 UTC 2010)
> Copyright 2004 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you are
> welcome to change it and/or distribute copies of it under certain conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB. Type "show warranty" for details.
> This GDB was configured as "x86_64-apple-darwin"...Reading symbols for shared libraries ..... done
>
> "/Users/me/Falcon/sdlTest.fal" is not a core dump: File format not recognized
> (gdb) run
> Starting program: /usr/local/bin/falcon
> Reading symbols for shared libraries ++++.. done
> ^Z
> Program received signal SIGTSTP, Stopped (user).
> 0x00007fff81b188e4 in read ()
> (gdb) bt
> #0 0x00007fff81b188e4 in read ()
> #1 0x00000001001ab589 in Falcon::BaseFileStream::read ()
> #2 0x00000001000c061b in Falcon::StreamBuffer::refill ()
> #3 0x00000001000c105b in Falcon::StreamBuffer::read ()
> #4 0x00000001000de9ce in Falcon::TranscoderISO_CP::get ()
> #5 0x00000001000bcb7a in Falcon::SrcLexer::lex_normal ()
> #6 0x00000001000bf2d2 in Falcon::SrcLexer::lex ()
> #7 0x00000001001107a0 in Falcon::SrcLexer::doLex ()
> #8 0x00000001001107c7 in flc_src_lex ()
> #9 0x0000000100104528 in flc_src_parse ()
> #10 0x0000000100025a05 in Falcon::Compiler::compile ()
> #11 0x0000000100026126 in Falcon::Compiler::compile ()
> #12 0x00000001000a1a5c in Falcon::ModuleLoader::loadSource ()
> #13 0x00000001000052ba in Falcon::AppFalcon::loadInput ()
> #14 0x00000001000054eb in Falcon::AppFalcon::runModule ()
> #15 0x0000000100006841 in Falcon::AppFalcon::run ()
> #16 0x00000001000070b6 in main ()
> (gdb)
>
> I pressed Ctrl-Z after about 10 seconds when nothing was happening.
>
> When I try `gdb sdl_falcon sdlTest.fal` the SDL window never appears,
> but the application icon appears in the dock, focus switches to the new
> (empty) application, and I get the beach-ball cursor (blocking input to
> the application, but not to gdb). Unlike when I just run `sdl_falcon
> sdlTest.fal` , this time I don't see any output (such as "Success!"),
> and the only input I can make (that it responds to) is an escape
> sequence (I used Ctrl-Z).
>
> $ gdb sdl_falcon sdlTest.fal
> GNU gdb 6.3.50-20050815 (Apple version gdb-1472) (Wed Jul 21 10:53:12 UTC 2010)
> Copyright 2004 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you are
> welcome to change it and/or distribute copies of it under certain conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB. Type "show warranty" for details.
> This GDB was configured as "x86_64-apple-darwin"...
> warning: Unable to read symbols for "@executable_path/../Frameworks/SDL.framework/Versions/A/SDL" (file not found).
>
> warning: Unable to read symbols from "SDL" (not yet mapped into memory).
> Reading symbols for shared libraries .......... done
>
> "/Users/me/Falcon/sdlTest.fal" is not a core dump: File format not recognized
> (gdb) run
> Starting program: /usr/local/bin/sdl_falcon
> Reading symbols for shared libraries .+.++++++++....................................................................................... done
> Reading symbols for shared libraries . done
> Reading symbols for shared libraries . done
> Reading symbols for shared libraries . done
> Reading symbols for shared libraries . done
> Reading symbols for shared libraries . done
> ^Z
> Program received signal SIGTSTP, Stopped (user).
> 0x00007fff81b188e4 in read ()
> (gdb) bt
> #0 0x00007fff81b188e4 in read ()
> #1 0x00000001001af589 in Falcon::BaseFileStream::read ()
> #2 0x00000001000c461b in Falcon::StreamBuffer::refill ()
> #3 0x00000001000c505b in Falcon::StreamBuffer::read ()
> #4 0x00000001000e29ce in Falcon::TranscoderISO_CP::get ()
> #5 0x00000001000c0b7a in Falcon::SrcLexer::lex_normal ()
> #6 0x00000001000c32d2 in Falcon::SrcLexer::lex ()
> #7 0x00000001001147a0 in Falcon::SrcLexer::doLex ()
> #8 0x00000001001147c7 in flc_src_lex ()
> #9 0x0000000100108528 in flc_src_parse ()
> #10 0x0000000100029a05 in Falcon::Compiler::compile ()
> #11 0x000000010002a126 in Falcon::Compiler::compile ()
> #12 0x00000001000a5a5c in Falcon::ModuleLoader::loadSource ()
> #13 0x0000000100007b7c in AppFalcon::loadInput ()
> #14 0x0000000100007dad in AppFalcon::runModule ()
> #15 0x000000010000908d in AppFalcon::run ()
> #16 0x00000001000097e7 in SDL_main ()
> #17 0x000000010000e0dc in -[SDLMain applicationDidFinishLaunching:] ()
> #18 0x00007fff83bc884e in _nsnote_callback ()
> #19 0x00007fff85a05a90 in __CFXNotificationPost ()
> #20 0x00007fff859f2008 in _CFXNotificationPostNotification ()
> #21 0x00007fff83bbf7b8 in -[NSNotificationCenter postNotificationName:object:userInfo:] ()
> #22 0x00007fff8685e832 in -[NSApplication _postDidFinishNotification] ()
> #23 0x00007fff8685e767 in -[NSApplication _sendFinishLaunchingNotification] ()
> #24 0x00007fff86929719 in -[NSApplication(NSAppleEventHandling) _handleAEOpen:] ()
> #25 0x00007fff86929395 in -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] ()
> #26 0x00007fff83bf714a in -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] ()
> #27 0x00007fff83bf6f7a in _NSAppleEventManagerGenericHandler ()
> #28 0x00007fff88265323 in aeDispatchAppleEvent ()
> #29 0x00007fff8826521c in dispatchEventAndSendReply ()
> #30 0x00007fff88265123 in aeProcessAppleEvent ()
> #31 0x00007fff875fa741 in AEProcessAppleEvent ()
> #32 0x00007fff8682e481 in _DPSNextEvent ()
> #33 0x00007fff8682dbed in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] ()
> #34 0x00007fff867f38d3 in -[NSApplication run] ()
> #35 0x000000010000df35 in CustomApplicationMain ()
> #36 0x000000010000e33d in main ()
> (gdb)
>
> Thanks for suggesting GDB, I would not have guessed it would be useful
> here. I hope this helps in some way...
>
>
It seems like you have something pointing to the wrong libraries: The
BufferStream::read() method loads th source or the pre-compiled code;
nothing would work if it was broken, and cleary that's not the case.
I suggest you to try sdl_falcon -v and check the version. It should read
0.9.6.7 (current development version).
Please, notice that we fixed sdl_falcon build yesterday, so it couldn' t
possibly be correctly compiled before.
On 31/10/2010 05:08, Thomas Ettinger wrote: apple-darwin" ...Reading symbols for shared libraries ..... done me/Falcon/ sdlTest. fal" is not a core dump: File format not recognized bin/falcon :BaseFileStream ::read () :StreamBuffer: :refill () :StreamBuffer: :read () :TranscoderISO_ CP::get () :SrcLexer: :lex_normal () :SrcLexer: :lex () :SrcLexer: :doLex () :Compiler: :compile () :Compiler: :compile () :ModuleLoader: :loadSource () :AppFalcon: :loadInput () :AppFalcon: :runModule () :AppFalcon: :run () apple-darwin" ... path/.. /Frameworks/ SDL.framework/ Versions/ A/SDL" (file not found). me/Falcon/ sdlTest. fal" is not a core dump: File format not recognized bin/sdl_ falcon ++++... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... done :BaseFileStream ::read () :StreamBuffer: :refill () :StreamBuffer: :read () :TranscoderISO_ CP::get () :SrcLexer: :lex_normal () :SrcLexer: :lex () :SrcLexer: :doLex () :Compiler: :compile () :Compiler: :compile () :ModuleLoader: :loadSource () :loadInput () :runModule () inishLaunching: ] () onPost () nPostNotificati on () nCenter postNotificatio nName:object: userInfo: ] () otification] () chingNotificati on] () (NSAppleEventHa ndling) _handleAEOpen:] () (NSAppleEventHa ndling) _handleCoreEven t:withReplyEven t:] () anager dispatchRawAppl eEvent: withRawReply: handlerRefCon: ] () nagerGenericHan dler () Event () dSendReply () ngMask: untilDate: inMode: dequeue: ] () onMain () :read() method loads th source or the pre-compiled code;
> OK, I tried both your suggestion and `gdb sdl_falcon sdlTest.fal` .
> When I run this with plain falcon, I get:
>
> $ gdb falcon sdlTest.fal
> GNU gdb 6.3.50-20050815 (Apple version gdb-1472) (Wed Jul 21 10:53:12 UTC 2010)
> Copyright 2004 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you are
> welcome to change it and/or distribute copies of it under certain conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB. Type "show warranty" for details.
> This GDB was configured as "x86_64-
>
> "/Users/
> (gdb) run
> Starting program: /usr/local/
> Reading symbols for shared libraries ++++.. done
> ^Z
> Program received signal SIGTSTP, Stopped (user).
> 0x00007fff81b188e4 in read ()
> (gdb) bt
> #0 0x00007fff81b188e4 in read ()
> #1 0x00000001001ab589 in Falcon:
> #2 0x00000001000c061b in Falcon:
> #3 0x00000001000c105b in Falcon:
> #4 0x00000001000de9ce in Falcon:
> #5 0x00000001000bcb7a in Falcon:
> #6 0x00000001000bf2d2 in Falcon:
> #7 0x00000001001107a0 in Falcon:
> #8 0x00000001001107c7 in flc_src_lex ()
> #9 0x0000000100104528 in flc_src_parse ()
> #10 0x0000000100025a05 in Falcon:
> #11 0x0000000100026126 in Falcon:
> #12 0x00000001000a1a5c in Falcon:
> #13 0x00000001000052ba in Falcon:
> #14 0x00000001000054eb in Falcon:
> #15 0x0000000100006841 in Falcon:
> #16 0x00000001000070b6 in main ()
> (gdb)
>
> I pressed Ctrl-Z after about 10 seconds when nothing was happening.
>
> When I try `gdb sdl_falcon sdlTest.fal` the SDL window never appears,
> but the application icon appears in the dock, focus switches to the new
> (empty) application, and I get the beach-ball cursor (blocking input to
> the application, but not to gdb). Unlike when I just run `sdl_falcon
> sdlTest.fal` , this time I don't see any output (such as "Success!"),
> and the only input I can make (that it responds to) is an escape
> sequence (I used Ctrl-Z).
>
> $ gdb sdl_falcon sdlTest.fal
> GNU gdb 6.3.50-20050815 (Apple version gdb-1472) (Wed Jul 21 10:53:12 UTC 2010)
> Copyright 2004 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you are
> welcome to change it and/or distribute copies of it under certain conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB. Type "show warranty" for details.
> This GDB was configured as "x86_64-
> warning: Unable to read symbols for "@executable_
>
> warning: Unable to read symbols from "SDL" (not yet mapped into memory).
> Reading symbols for shared libraries .......... done
>
> "/Users/
> (gdb) run
> Starting program: /usr/local/
> Reading symbols for shared libraries .+.++++
> Reading symbols for shared libraries . done
> Reading symbols for shared libraries . done
> Reading symbols for shared libraries . done
> Reading symbols for shared libraries . done
> Reading symbols for shared libraries . done
> ^Z
> Program received signal SIGTSTP, Stopped (user).
> 0x00007fff81b188e4 in read ()
> (gdb) bt
> #0 0x00007fff81b188e4 in read ()
> #1 0x00000001001af589 in Falcon:
> #2 0x00000001000c461b in Falcon:
> #3 0x00000001000c505b in Falcon:
> #4 0x00000001000e29ce in Falcon:
> #5 0x00000001000c0b7a in Falcon:
> #6 0x00000001000c32d2 in Falcon:
> #7 0x00000001001147a0 in Falcon:
> #8 0x00000001001147c7 in flc_src_lex ()
> #9 0x0000000100108528 in flc_src_parse ()
> #10 0x0000000100029a05 in Falcon:
> #11 0x000000010002a126 in Falcon:
> #12 0x00000001000a5a5c in Falcon:
> #13 0x0000000100007b7c in AppFalcon:
> #14 0x0000000100007dad in AppFalcon:
> #15 0x000000010000908d in AppFalcon::run ()
> #16 0x00000001000097e7 in SDL_main ()
> #17 0x000000010000e0dc in -[SDLMain applicationDidF
> #18 0x00007fff83bc884e in _nsnote_callback ()
> #19 0x00007fff85a05a90 in __CFXNotificati
> #20 0x00007fff859f2008 in _CFXNotificatio
> #21 0x00007fff83bbf7b8 in -[NSNotificatio
> #22 0x00007fff8685e832 in -[NSApplication _postDidFinishN
> #23 0x00007fff8685e767 in -[NSApplication _sendFinishLaun
> #24 0x00007fff86929719 in -[NSApplication
> #25 0x00007fff86929395 in -[NSApplication
> #26 0x00007fff83bf714a in -[NSAppleEventM
> #27 0x00007fff83bf6f7a in _NSAppleEventMa
> #28 0x00007fff88265323 in aeDispatchApple
> #29 0x00007fff8826521c in dispatchEventAn
> #30 0x00007fff88265123 in aeProcessAppleEvent ()
> #31 0x00007fff875fa741 in AEProcessAppleEvent ()
> #32 0x00007fff8682e481 in _DPSNextEvent ()
> #33 0x00007fff8682dbed in -[NSApplication nextEventMatchi
> #34 0x00007fff867f38d3 in -[NSApplication run] ()
> #35 0x000000010000df35 in CustomApplicati
> #36 0x000000010000e33d in main ()
> (gdb)
>
> Thanks for suggesting GDB, I would not have guessed it would be useful
> here. I hope this helps in some way...
>
>
It seems like you have something pointing to the wrong libraries: The
BufferStream:
nothing would work if it was broken, and cleary that's not the case.
I suggest you to try sdl_falcon -v and check the version. It should read
0.9.6.7 (current development version).
Please, notice that we fixed sdl_falcon build yesterday, so it couldn' t
possibly be correctly compiled before.
Gian.