From: Javi <ja...@gs...> - 2004-03-08 10:06:29
|
=2D----- El Lunes, 8 de Marzo de 2004 05:33, Michael Reinelt escribi=F3: --= =2D--- > How did you test it? Are you shure the segfault is caused by your=20 > plugin? (The current CVS code isn't very stable at the moment) >=20 > I'm always testing plugins with the "interactive" mode (lcd4linux -i). >=20 > Are you familiar with gdb? gdb is good for locating such segfaults. >=20 >=20 > bye, Michael >=20 I've installed gdb and these are the results: # gdb --args lcd4linux -Fq GNU gdb 6.0 Copyright 2003 Free Software Foundation, Inc. (gdb) run Starting program: /home/javi/programacion/lcd4linux/lcd4linux -Fqf Program received signal SIGSEGV, Segmentation fault. 0x40020995 in mysql_init () from /usr/lib/libmysqlclient.so.12 (gdb) bt #0 0x40020995 in mysql_init () from /usr/lib/libmysqlclient.so.12 #1 0xbfffee18 in ?? () #2 0x4100b480 in _dl_runtime_resolve () from /lib/ld-linux.so.2 #3 0x080544a7 in my_consulta (result=3D0x806ac80, arg1=3D0x0) at plugin_sq= l.c:57 #4 0x0804d5d8 in EvalTree (Root=3D0x1) at evaluator.c:964 #5 0x0804d6e9 in Eval (root=3D0x806ac60, result=3D0xbfffef60) at evaluator= =2Ec:1170 #6 0x0804f7aa in widget_text_update (Self=3D0x80694f4) at widget_text.c:238 #7 0x0804ec89 in timer_process (delay=3D0xbffff000) at timer.c:160 #8 0x0804a730 in main (argc=3D-1073745920, argv=3D0x805e580) at lcd4linux.= c:627 The problem seems to be the mysql_init () function, from /usr/lib/libmysqlc= lient.so.12 =BFIs there something I can do? or is better I forgets the plugin and wait = untill the "exec" plugin is ported to the NextGen. Thanks. Bye |