Hi,
I've just had my first segfault with ion :-(
This happens (it's reproducible) when I execute this script:
function to_layer2(cwin)
local region = nil
for _,r in cwin:screen_of():llist(2) do
if (r:name() == "WScratchpad") then
r:attach(cwin)
r:l2_show()
end
end
-- cwin:screen_of():lnth(2,0):attach(cwin)
end
(The script is most probably buggy itself, but shouldn't cause ion to
segfault)
GNU gdb 6.3
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 "i686-pc-linux-gnu"...Using host libthread_db
library "/lib/libthread_db.so.1".
(gdb) r
Starting program: /amd/ecrins/root/local/moy/usr/bin/ion3
Program received signal SIGSEGV, Segmentation fault.
mplex_l2_show (mplex=0x815a478, reg=0x0) at mplex.c:646
646 if(REGION_MANAGER(reg)!=(WRegion*)mplex)
(gdb) where
#0 mplex_l2_show (mplex=0x815a478, reg=0x0) at mplex.c:646
#1 0x0806a5ef in l2chnd_b_oo__WMPlex_WRegion (fn=0x80652b0 <mplex_l2_show>,
in=0xbfffee90, out=0x1) at exports.c:161
#2 0x0807611f in extl_l1_call_handler2 (st=0x80a07c8) at luaextl.c:1621
#3 0x0807d532 in luaD_precall ()
#4 0x0807d9bc in luaD_call ()
#5 0x0807b9d1 in f_call ()
#6 0x0807d158 in luaD_rawrunprotected ()
#7 0x0807dd9e in luaD_pcall ()
#8 0x0807ba43 in lua_pcall ()
#9 0x08076908 in extl_l1_call_handler (st=0x80a07c8) at luaextl.c:1736
#10 0x0807d532 in luaD_precall ()
#11 0x0808591f in luaV_execute ()
#12 0x0807da33 in luaD_call ()
#13 0x0807b9d1 in f_call ()
#14 0x0807d158 in luaD_rawrunprotected ()
#15 0x0807dd9e in luaD_pcall ()
#16 0x0807ba43 in lua_pcall ()
#17 0x080766e2 in extl_do_call_vararg (st=0x80a07c8, param=0x0)
at luaextl.c:1353
#18 0x08074143 in extl_docpcall (st=0x80a07c8) at luaextl.c:117
#19 0x0807d532 in luaD_precall ()
#20 0x0807d9bc in luaD_call ()
#21 0x0807bad7 in f_Ccall ()
#22 0x0807d158 in luaD_rawrunprotected ()
#23 0x0807dd9e in luaD_pcall ()
#24 0x0807bb9f in lua_cpcall ()
#25 0x080741a5 in extl_cpcall (st=0x80a07c8,
fn=0x80765e0 <extl_do_call_vararg>, ptr=0x1) at luaextl.c:133
#26 0x08075c84 in extl_call_vararg (fnref=210,
spec=0x1 <Address 0x1 out of bounds>,
rspec=0x1 <Address 0x1 out of bounds>, args=0x1) at luaextl.c:1373
#27 0x08075cfc in extl_call (fnref=1, spec=0x1 <Address 0x1 out of bounds>,
rspec=0x1 <Address 0x1 out of bounds>) at luaextl.c:1424
#28 0x402b1252 in menu_do_finish (menu=0x8160208) at menu.c:838
#29 0x080730d0 in mainloop_execute_deferred_on_list (list=0x80997a0)
at defer.c:146
#30 0x080730f2 in mainloop_execute_deferred () at defer.c:152
#31 0x0805748a in ioncore_mainloop () at event.c:228
#32 0x08056df3 in main (argc=0, argv=0x80912c1) at ion.c:286
--
Matthieu