[Gambas-user] Crash with JIT + IDE Profiling

Emil Lenngren emil.lenngren at ...626...
Sun Jun 3 15:02:01 CEST 2012


Which function is marked as Fast? I would like to know which gambas
function that results in that error.
I should add debug printing that says which function is being compiled....

And profiling jit functions is not really implemented.

/Emil

2012/6/3 Adrien Prokopowicz <adrien.prokopowicz at ...626...>

> Hi,
>
> I tried to profile the IDE by enabling the profiling option, but when I
> close
> the child IDE, the parent IDE crashes :
>
> gdb gbr3
> GNU gdb (GDB) 7.4.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 "i686-pc-linux-gnu".
> For bug reporting instructions, please see:
> <http://www.gnu.org/software/gdb/bugs/>...
> Reading symbols from /usr/local/bin/gbr3...done.
> (gdb) run /usr/local/bin/gambas3
> Starting program: /usr/local/bin/gbr3 /usr/local/bin/gambas3
> [Thread debugging using libthread_db enabled]
> Using host libthread_db library "/lib/libthread_db.so.1".
> Traceback (most recent call last):
>  File "/usr/share/gdb/auto-load/usr/lib/libgobject-2.0.so.0.3200.3-gdb.py
> ",
> line 9, in <module>
>    from gobject import register
>  File "/usr/share/glib-2.0/gdb/gobject.py", line 3, in <module>
>    import gdb.backtrace
> ImportError: No module named backtrace
> gb.qt4: warning: unable to load Qt translation: fr_FR.utf8
> [New Thread 0xb1361b40 (LWP 25608)]
> [New Thread 0xb0a60b40 (LWP 25609)]
> Stored value type does not match pointer operand type!
>  store i64 %1825, i32* %1823
>  i32Stored value type does not match pointer operand type!
>  store i64 %1923, i32* %1921
>  i32Broken module found, compilation aborted!
>
> Program received signal SIGABRT, Aborted.
> 0xb7fdd424 in __kernel_vsyscall ()
> (gdb) bt
> #0  0xb7fdd424 in __kernel_vsyscall ()
> #1  0xb7dee24f in raise () from /lib/libc.so.6
> #2  0xb7defb53 in abort () from /lib/libc.so.6
> #3  0xaea66fea in ?? () from /usr/lib/llvm/libLLVM-3.1.so
> #4  0xaea52f23 in llvm::FPPassManager::runOnFunction(llvm::Function&) ()
> from
> /usr/lib/llvm/libLLVM-3.1.so
> #5  0xaea52f7c in llvm::FPPassManager::runOnModule(llvm::Module&) () from
> /usr/lib/llvm/libLLVM-3.1.so
> #6  0xaea52b74 in llvm::MPPassManager::runOnModule(llvm::Module&) () from
> /usr/lib/llvm/libLLVM-3.1.so
> #7  0xaea52c59 in llvm::PassManagerImpl::run(llvm::Module&) () from
> /usr/lib/llvm/libLLVM-3.1.so
> #8  0xaea52ca6 in llvm::PassManager::run(llvm::Module&) () from
> /usr/lib/llvm/libLLVM-3.1.so
> #9  0xaea6b4f8 in llvm::verifyModule(llvm::Module const&,
> llvm::VerifierFailureAction, std::string*) () from /usr/lib/llvm/
> libLLVM-3.1.so
> #10 0xaf9e9f90 in JIT_codegen () at jit_codegen.cpp:6170
> #11 0xaf9f0505 in JIT_compile_and_execute () at jit_compile.cpp:99
> #12 0x08079124 in EXEC_loop () at gbx_exec_loop.c:1370
> #13 0x08050d1e in EXEC_function_loop () at gbx_exec.c:899
> #14 0x08051351 in EXEC_function_real () at gbx_exec.c:863
> #15 0x08051fff in EXEC_public_desc (class=0x81e0894, object=0x81e0894,
> desc=0x83d7274, nparam=0) at gbx_exec.c:1554
> #16 0x08064829 in raise_event (observer=observer at ...2861...=0x81e0894,
> object=object at ...2861...=0x8c653f4, func_id=19, func_id at ...2861...=20, nparam=0)
>    at gbx_api.c:709
> #17 0x080652f4 in GB_Raise (object=0x8c653f4, event_id=2, nparam=0) at
> gbx_api.c:840
> #18 0x08072552 in stop_process_after (_object=0x8c653f4) at
> gbx_c_process.c:290
> #19 stop_process (process=0x8c653f4) at gbx_c_process.c:325
> #20 stop_process (process=0x8c653f4) at gbx_c_process.c:301
> #21 0x08072652 in callback_child (signum=17, data=0) at gbx_c_process.c:722
> #22 0x08075864 in SIGNAL_raise_callbacks (fd=29, type=1, data=0x0) at
> gbx_signal.c:180
> #23 0xb70078d3 in CWatch::read (this=0x87446e0, fd=29) at CWatch.cpp:135
> #24 0xb700774c in qt_static_metacall (_a=0xbfffecd8, _o=0x87446e0,
> _c=<optimized out>, _id=<optimized out>) at CWatch_moc.cpp:50
> #25 CWatch::qt_static_metacall (_o=0x87446e0,
> _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0xbfffecd8) at
> CWatch_moc.cpp:44
> #26 0xb5eefc76 in QMetaObject::activate(QObject*, QMetaObject const*, int,
> void**) () from /usr/lib/libQtCore.so.4
> #27 0xb5f406d5 in QSocketNotifier::activated(int) () from
> /usr/lib/libQtCore.so.4
> #28 0xb5ef68df in QSocketNotifier::event(QEvent*) () from
> /usr/lib/libQtCore.so.4
> #29 0xb6177f6c in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()
> from /usr/lib/libQtGui.so.4
> #30 0xb617c97f in QApplication::notify(QObject*, QEvent*) () from
> /usr/lib/libQtGui.so.4
> #31 0xb5ed79fe in QCoreApplication::notifyInternal(QObject*, QEvent*) ()
> from
> /usr/lib/libQtCore.so.4
> #32 0xb5f0ab04 in QEventDispatcherUNIX::activateSocketNotifiers() () from
> /usr/lib/libQtCore.so.4
> ---Type <return> to continue, or q <return> to quit---
> #33 0xb5f0b768 in
>
> QEventDispatcherUNIXPrivate::doSelect(QFlags<QEventLoop::ProcessEventsFlag>,
> timeval*) () from /usr/lib/libQtCore.so.4
> #34 0xb5f0c1b3 in
> QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)
> ()
> from /usr/lib/libQtCore.so.4
> #35 0xb622a123 in ?? () from /usr/lib/libQtGui.so.4
> #36 0xb5ed64dc in
> QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from
> /usr/lib/libQtCore.so.4
> #37 0xb5ed67d1 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>)
> ()
> from /usr/lib/libQtCore.so.4
> #38 0xb5edba6a in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
> #39 0xb6175dd4 in QApplication::exec() () from /usr/lib/libQtGui.so.4
> #40 0xb6fe29bc in hook_loop () at main.cpp:769
> #41 0x0804b17b in main (argc=<error reading variable: Cannot access memory
> at
> address 0x6>,
>    argv=<error reading variable: Cannot access memory at address 0xa>) at
> gbx.c:404
>
> Regards,
> Adrien.
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



More information about the User mailing list