[Gambas-devel] SEGFAULT with database manager

Benoit Minisini gambas at ...1...
Tue Dec 18 02:03:03 CET 2007


On lundi 17 décembre 2007, Fabien Bodard wrote:
> when i try to change a value in one of my table, a boolean value in this
> case
>
> on mysql
>
> fabien at ...422...:~/gambas/app/src/gambas-database-manager$ gdb gbx2
> GNU gdb 6.6-debian
> Copyright (C) 2006 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 "i486-linux-gnu"...
> Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
> (gdb) set args -p
> (gdb) run
> Starting program: /usr/local/bin/gbx2 -p
> [Thread debugging using libthread_db enabled]
> [New Thread -1210472784 (LWP 19046)]
> Error while reading shared library symbols:
> Cannot find new threads: generic error
> Qt: gdb: -nograb added to command-line options.
>          Use the -dograb option to enforce grabbing.
> ERROR: #2: Cannot load class 'FMain': Unable to load class file
>
> Program exited with code 01.
> (gdb) run
> Starting program: /usr/local/bin/gbx2 -p
> [Thread debugging using libthread_db enabled]
> [New Thread -1210562896 (LWP 19068)]
> Error while reading shared library symbols:
> Cannot find new threads: generic error
> Qt: gdb: -nograb added to command-line options.
>          Use the -dograb option to enforce grabbing.
>
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread -1210562896 (LWP 19068)]
> 0xb7c9d0c3 in valid_field (_object=0x82053c0) at CField.c:32
> 32        return !THIS->table->conn || !THIS->table->conn->db.handle;
> (gdb) bt
> #0  0xb7c9d0c3 in valid_field (_object=0x82053c0) at CField.c:32
> #1  0x0804f991 in EXEC_object (val=0x807d5a8, pclass=0xbf99ca24,
>     pobject=0xbf99ca20, pdefined=0xbf99ca2b "\001����") at gbx_exec.c:1139
> #2  0x0804fc8b in EXEC_push_unknown (code=1024) at gbx_exec_push.c:63
> #3  0x08050b22 in EXEC_loop () at gbx_exec_loop.c:539
> #4  0x0804efcc in EXEC_function_real (keep_ret_value=1 '\001')
>     at gbx_exec.c:695
> #5  0x0805da8f in call_method (object=0x8139f70, desc=0x1, nparam=0)
>     at gbx_api.c:411
> #6  0x0805db72 in raise_event (observer=0x0, object=0x8207338,
>     func_id=<value optimized out>, nparam=0) at gbx_api.c:490
> #7  0x0805e071 in GB_Raise (object=0x8207338, event_id=2, nparam=0)
>     at gbx_api.c:588
> #8  0x08050f58 in EXEC_loop () at gbx_exec_loop.c:1047
> #9  0x0804efcc in EXEC_function_real (keep_ret_value=1 '\001')
>     at gbx_exec.c:695
> #10 0x0805da8f in call_method (object=0x8207338, desc=0x1, nparam=0)
>     at gbx_api.c:411
> #11 0x0805db72 in raise_event (observer=0x0, object=0x82121c0,
>     func_id=<value optimized out>, nparam=0) at gbx_api.c:490
> #12 0x0805e071 in GB_Raise (object=0x82121c0, event_id=16, nparam=0)
>     at gbx_api.c:588
> #13 0xb7cfbf3d in CGridView::changed (this=0xb7d4d9a0) at
> CGridView.cpp:2010 ---Type <return> to continue, or q <return> to quit---
> #14 0xb7cfb438 in CGridView::qt_invoke (this=0xb7d4d9a0, _id=2,
> _o=0xbf99ce54) at moc_CGridView.cpp:207
> #15 0xb76af893 in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
> #16 0xb7a784f9 in QTable::currentChanged () from /usr/lib/libqt-mt.so.3
> #17 0xb78fef68 in QTable::setCurrentCell () from /usr/lib/libqt-mt.so.3
> #18 0xb79021bb in QTable::contentsMousePressEventEx ()
>    from /usr/lib/libqt-mt.so.3
> #19 0xb790255e in QTable::contentsMousePressEvent ()
>    from /usr/lib/libqt-mt.so.3
> #20 0xb77e50b9 in QScrollView::viewportMousePressEvent ()
>    from /usr/lib/libqt-mt.so.3
> #21 0xb77e652c in QScrollView::eventFilter () from /usr/lib/libqt-mt.so.3
> #22 0xb78fb230 in QTable::eventFilter () from /usr/lib/libqt-mt.so.3
> #23 0xb76aee40 in QObject::activate_filters () from /usr/lib/libqt-mt.so.3
> #24 0xb76aeebe in QObject::event () from /usr/lib/libqt-mt.so.3
> #25 0xb76e65b3 in QWidget::event () from /usr/lib/libqt-mt.so.3
> #26 0xb7646af0 in QApplication::internalNotify () from
> /usr/lib/libqt-mt.so.3 #27 0xb7648cae in QApplication::notify () from
> /usr/lib/libqt-mt.so.3 #28 0xb7cdf9f8 in MyApplication::notify
> (this=0x80d2c18, o=0x8241c60, e=0xbf99d4f0) at main.cpp:338
> #29 0xb75d927d in QApplication::sendSpontaneousEvent ()
>    from /usr/lib/libqt-mt.so.3
> #30 0xb75d7ee2 in QETWidget::translateMouseEvent ()
> from /usr/lib/libqt-mt.so.3
> ---Type <return> to continue, or q <return> to quit---
> #31 0xb75d5fcc in QApplication::x11ProcessEvent () from
> /usr/lib/libqt-mt.so.3 #32 0xb75ed1a4 in QEventLoop::processEvents () from
> /usr/lib/libqt-mt.so.3 #33 0xb7cde9bb in MyEventLoop::processEvents
> (this=0x808c7a0, flags=4) at main.cpp:246
> #34 0xb76611ce in QEventLoop::enterLoop () from /usr/lib/libqt-mt.so.3
> #35 0xb7660fde in QEventLoop::exec () from /usr/lib/libqt-mt.so.3
> #36 0xb7648699 in QApplication::exec () from /usr/lib/libqt-mt.so.3
> #37 0xb7cde0a6 in hook_loop () at main.cpp:528
> #38 0x08061f19 in main (argc=0, argv=0xbf99dbc4) at gbx.c:356
> (gdb)
>

The revision #875 should fix the problem.

Regards,

-- 
Benoit Minisini




More information about the Devel mailing list