Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#498 SciTE crash on startup

Bug
open-accepted
Neil Hodgson
SciTE (619)
3
2006-12-05
2006-11-12
No

Sys: Arch Linux 64
Gtk: 2.10.6
Scite: 1.71

Scite crash on startup but this is random issue, some
times is starting well. When SciTe crash it provide
next messages:
------------------- cut here -------------------
[hatred@gaz ~]$ scite
*** glibc detected *** scite: double free or corruption
(!prev): 0x0000000000964350 ***
======= Backtrace: =========
/lib/libc.so.6[0x2ac9734f306d]
/lib/libc.so.6(__libc_free+0x6c)[0x2ac9734f466c]
/lib/libc.so.6(fclose+0x15d)[0x2ac9734e527d]
scite[0x4a6be7]
scite[0x4a6c72]
scite[0x49b9fa]
scite[0x4a3242]
scite[0x49bb0c]
scite[0x49b47c]
scite[0x49b565]
scite[0x498b96]
scite[0x495261]
scite[0x49792a]
scite[0x497bd6]
scite[0x4344dc]
scite[0x41a5f6]
scite[0x412cc0]
scite[0x4133ea]
/lib/libc.so.6(__libc_start_main+0xf4)[0x2ac9734a70a4]
scite(__gxx_personality_v0+0x209)[0x40be39]
======= Memory map: ========
00400000-004e7000 r-xp 00000000 03:43 48851
/usr/bin/SciTE
005e6000-005f3000 rw-p 000e6000 03:43 48851
/usr/bin/SciTE
005f3000-00980000 rw-p 005f3000 00:00 0
[heap]
2ac971be5000-2ac971bff000 r-xp 00000000 03:43 81284
/lib/ld-2.4.so
2ac971bff000-2ac971c00000 rw-p 2ac971bff000 00:00 0
2ac971cfe000-2ac971cff000 r--p 00019000 03:43 81284
/lib/ld-2.4.so
2ac971cff000-2ac971d00000 rw-p 0001a000 03:43 81284
/lib/ld-2.4.so
2ac971d00000-2ac97206f000 r-xp 00000000 03:43 57023
/usr/lib/libgtk-x11-2.0.so.0.1000.6
2ac97206f000-2ac97216e000 ---p 0036f000 03:43 57023
/usr/lib/libgtk-x11-2.0.so.0.1000.6
2ac97216e000-2ac972178000 rw-p 0036e000 03:43 57023
/usr/lib/libgtk-x11-2.0.so.0.1000.6
2ac972178000-2ac97217b000 rw-p 2ac972178000 00:00 0
2ac97217b000-2ac97220a000 r-xp 00000000 03:43 57019
/usr/lib/libgdk-x11-2.0.so.0.1000.6
2ac97220a000-2ac97230a000 ---p 0008f000 03:43 57019
/usr/lib/libgdk-x11-2.0.so.0.1000.6
2ac97230a000-2ac97230f000 rw-p 0008f000 03:43 57019
/usr/lib/libgdk-x11-2.0.so.0.1000.6
2ac97230f000-2ac97232c000 r-xp 00000000 03:43 56219
/usr/lib/libatk-1.0.so.0.1213.0
2ac97232c000-2ac97242b000 ---p 0001d000 03:43 56219
/usr/lib/libatk-1.0.so.0.1213.0
2ac97242b000-2ac97242e000 rw-p 0001c000 03:43 56219
/usr/lib/libatk-1.0.so.0.1213.0
2ac97242e000-2ac972445000 r-xp 00000000 03:43 57017
/usr/lib/libgdk_pixbuf-2.0.so.0.1000.6
2ac972445000-2ac972544000 ---p 00017000 03:43 57017
/usr/lib/libgdk_pixbuf-2.0.so.0.1000.6
2ac972544000-2ac972545000 rw-p 00016000 03:43 57017
/usr/lib/libgdk_pixbuf-2.0.so.0.1000.6
2ac972545000-2ac972546000 rw-p 2ac972545000 00:00 0
2ac972546000-2ac97254e000 r-xp 00000000 03:43 56268
/usr/lib/libpangocairo-1.0.so.0.1400.7
2ac97254e000-2ac97264e000 ---p 00008000 03:43 56268
/usr/lib/libpangocairo-1.0.so.0.1400.7
2ac97264e000-2ac97264f000 rw-p 00008000 03:43 56268
/usr/lib/libpangocairo-1.0.so.0.1400.7
2ac97264f000-2ac97268d000 r-xp 00000000 03:43 56281
/usr/lib/libpango-1.0.so.0.1400.7
2ac97268d000-2ac97278c000 ---p 0003e000 03:43 56281
/usr/lib/libpango-1.0.so.0.1400.7
2ac97278c000-2ac97278f000 rw-p 0003d000 03:43 56281
/usr/lib/libpango-1.0.so.0.1400.7
2ac97278f000-2ac9727f5000 r-xp 00000000 03:43 56265
/usr/lib/libcairo.so.2.9.2
2ac9727f5000-2ac9728f5000 ---p 00066000 03:43 56265
/usr/lib/libcairo.so.2.9.2
2ac9728f5000-2ac9728f8000 rw-p 00066000 03:43 56265
/usr/lib/libcairo.so.2.9.2
2ac9728f8000-2ac9728f9000 rw-p 2ac9728f8000 00:00 0
2ac9728f9000-2ac972938000 r-xp 00000000 03:43 56717
/usr/lib/libgobject-2.0.so.0.1200.4
2ac972938000-2ac972a38000 ---p 0003f000 03:43 56717
/usr/lib/libgobject-2.0.so.0.1200.4
2ac972a38000-2ac972a3a000 rw-p 0003f000 03:43 56717
/usr/lib/libgobject-2.0.so.0.1200.4
2ac972a3a000-2ac972a3d000 r-xp 00000000 03:43 56720
/usr/lib/libgmodule-2.0.so.0.1200.4
2ac972a3d000-2ac972b3c000 ---p 00003000 03:43 56720
/usr/lib/libgmodule-2.0.so.0.1200.4
2ac972b3c000-2ac972b3d000 rw-p 00002000 03:43 56720
/usr/lib/libgmodule-2.0.so.0.1200.4
2ac972b3d000-2ac972b3f000 r-xp 00000000 03:43 81322
/lib/libdl-2.4.so
2ac972b3f000-2ac972c3f000 ---p 00002000 03:43 81322
/lib/libdl-2.4.so
2ac972c3f000-2ac972c41000 rw-p 00002000 03:43 81322
/lib/libdl-2.4.so
2ac972c41000-2ac972c42000 rw-p 2ac972c41000 00:00 0
2ac972c42000-2ac972c46000 r-xp 00000000 03:43 56723
/usr/lib/libgthread-2.0.so.0.1200.4
2ac972c46000-2ac972d45000 ---p 00004000 03:43 56723
/usr/lib/libgthread-2.0.so.0.1200.4
2ac972d45000-2ac972d46000 rw-p 00003000 03:43 56723
/usr/lib/libgthread-2.0.so.0.1200.4
2ac972d46000-2ac972de3000 r-xp 00000000 03:43 56714
/usr/lib/libglib-2.0.so.0.1200.4
2ac972de3000-2ac972ee2000 ---p 0009d000 03:43 56714
/usr/lib/libglib-2.0.so.0.1200.4
2ac972ee2000-2ac972ee3000 rw-p 0009c000 03:43 56714
/usr/lib/libglib-2.0.so.0.1200.4
2ac972ee3000-2ac972ee4000 rw-p 2ac972ee3000 00:00 0
2ac972ee4000-2ac972fca000 r-xp 00000000 03:43 49797
/usr/lib/libstdc++.so.6.0.8
2ac972fca000-2ac9730ca000 ---p 000e6000 03:43 49797
/usr/lib/libstdc++.so.6.0.8
2ac9730ca000-2ac9730d0000 r--p 000e6000 03:43 49797
/usr/lib/libstdc++.so.6.0.8
2ac9730d0000-2ac9730d3000 rw-p 000ec000 03:43 49797
/usr/lib/libstdc++.so.6.0.8
2ac9730d3000-2ac9730e6000 rw-p 2ac9730d3000 00:00 0
2ac9730e6000-2ac973165000 r-xp 00000000 03:43 81325
/lib/libm-2.4.so
2ac973165000-2ac973264000 ---p 0007f000 03:43 81325
/lib/libm-2.4.so
2ac973264000-2ac973266000 rw-p 0007e000 03:43 81325
/lib/libm-2.4.so
2ac973266000-2ac973273000 r-xp 00000000 03:43 49789
/usr/lib/libgcc_s.so.1
2ac973273000-2ac973372000 ---p 0000d000 03:43 49789
/usr/lib/libgcc_s.so.1
2ac973372000-2ac973373000 rw-p 0000c000 03:43 49789
/usr/lib/libgcc_s.so.1
2ac973373000-2ac973383000 r-xp 00000000 03:43 85699
/lib/libpthread-2.4.so
2ac973383000-2ac973483000 ---p 00010000 03:43 85699
/lib/libpthread-2.4.so
2ac973483000-2ac973485000 rw-p 00010000 03:43 85699
/lib/libpthread-2.4.so
2ac973485000-2ac97348a000 rw-p 2ac973485000 00:00 0
2ac97348a000-2ac9735a9000 r-xp 00000000 03:43 81295
/lib/libc-2.4.so
2ac9735a9000-2ac9736a9000 ---p 0011f000 03:43 81295
/lib/libc-2.4.so
2ac9736a9000-2ac9736ac000 r--p 0011f000 03:43 81295
/lib/libc-2.4.so
2ac9736ac000-2ac9736ae000 rw-p 00122000 03:43 81295
/lib/libc-2.4.so
2ac9736ae000-2ac9736b3000 rw-p 2ac9736ae000 00:00 0
2ac9736b3000-2ac9737b5000 r-xp 00000000 03:43 54244
/usr/lib/libX11.so.6.2.0
2ac9737b5000-2ac9738b5000 ---p 00102000 03:43 54244
/usr/lib/libX11.so.6.2.0
2ac9738b5000-2ac9738bc000 rw-p 00102000 03:43 54244
/usr/lib/libX11.so.6.2.0
2ac9738bc000-2ac9738e5000 r-xp 00000000 03:43 55688
/usr/lib/libfontconfig.so.1.1.0
2ac9738e5000-2ac9739e4000 ---p 00029000 03:43 55688
/usr/lib/libfontconfig.so.1.1.0
2ac9739e4000-2ac9739ef000 rw-p 00028000 03:43 55688
/usr/lib/libfontconfig.so.1.1.0
2ac9739ef000-2ac9739f0000 rw-p 2ac9739ef000 00:00 0
2ac9739f0000-2ac973a00000 r-xp 00000000 03:43 55417
/usr/lib/libXext.so.6.4.0
2ac973a00000-2ac973b00000 ---p 00010000 03:43 55417
/usr/lib/libXext.so.6.4.0
2ac973b00000-2ac973b01000 rw-p 00010000 03:43 55417
/usr/lib/libXext.so.6.4.0
2ac973b01000-2ac973b0a000 r-xp 00000000 03:43 55538
/usr/lib/libXrender.so.1.3.0
2ac973b0a000-2ac973c09000 ---p 00009000 03:43 55538
/usr/lib/libXrender.so.1.3.0
2ac973c09000-2ac973c0a000 rw-p 00008000 03:43 55538
/usr/lib/libXrender.so.1.3.0
2ac973c0a000-2ac973c0c000 r-xp 00000000 03:43 55949
/usr/lib/libXinerama.so.1.0.0
2ac973c0c000-2ac973d0b000 ---p 00002000 03:43 55949
/usr/lib/libXinerama.so.1.0.0
2ac973d0b000-2ac973d0c000 rw-p 00001000 03:43 55949
/usr/lib/libXinerama.so.1.0.0
2ac973d0c000-2ac973d0d000 rw-p 2ac973d0c000 00:00 0
2ac973d0d000-2ac973d15000 r-xp 00000000 03:43 55471
/usr/lib/libXi.so.6.0.0
2ac973d15000-2ac973e14000 ---p 00008000 03:43 55471
/usr/lib/libXi.so.6.0.0
2ac973e14000-2ac973e15000 rw-p 00007000 03:43 55471
/usr/lib/libXi.so.6.0.0
2ac973e15000-2ac973e18000 r-xp 00000000 03:43 55847
/usr/lib/libXrandr.so.2.0.0
2ac973e18000-2ac973f17000 ---p 00003000 03:43 55847
/usr/lib/libXrandr.so.2.0.0
2ac973f17000-2ac973f18000 rw-p 00002000 03:43 55847
/usr/lib/libXrandr.so.2.0.0
2ac973f18000-2ac973f22000 r-xp 00000000 03:43 56290
/usr/lib/libXcursor.so.1.0.2
2ac973f22000-2ac974021000 ---p 0000a000 03:43 56290
/usr/lib/libXcursor.so.1.0.2
2ac974021000-2ac974022000 rw-p 00009000 03:43 56290
/usr/lib/libXcursor.so.1.0.2
2ac974022000-2ac974023000 rw-p 2ac974022000 00:00 0
2ac974023000-2ac974028000 r-xp 00000000 03:43 56286
/usr/lib/libXfixes.so.3.1.0
2ac974028000-2ac974127000 ---p 00005000 03:43 56286
/usr/lib/libXfixes.so.3.1.0
2ac974127000-2ac974128000 rw-p 00004000 03:43 56286
/usr/lib/libXfixes.so.3.1.0
2ac974128000-2ac974155000 r-xp 00000000 03:43 56278
/usr/lib/libpangoft2-1.0.so.0.1400.7
2ac974155000-2ac974255000 ---p 0002d000 03:43 56278
/usr/lib/libpangoft2-1.0.so.0.1400.7
2ac974255000-2ac974256000 rw-p 0002d000 03:43 56278
/usr/lib/libpangoft2-1.0.so.0.1400.7
2ac974256000-2ac974257000 rw-p 2ac974256000 00:00 0
2ac974257000-2ac9742d8000 r-xp 00000000 03:43 55530
/usr/lib/libfreetype.so.6.3.10
2ac9742d8000-2ac9743d8000 ---p 00081000 03:43 55530
/usr/lib/libfreetype.so.6.3.10
2ac9743d8000-2ac9743dd000 rw-p 00081000 03:43 55530
/usr/lib/libfreetype.so.6.3.10
2ac9743dd000-2ac9743f1000 r-xp 00000000 03:43 54464
/usr/lib/libz.so.1.2.3
2ac9743f1000-2ac9744f1000 ---p 00014000 03:43 54464
/usr/lib/libz.so.1.2.3
2ac9744f1000-2ac9744f2000 rw-p 00014000 03:43 54464
/usr/lib/libz.so.1.2.3
2ac9744f2000-2ac974515000 r-xp 00000000 03:43 56250
/usr/lib/libpng12.so.0.12.0
2ac974515000-2ac974614000 ---p 00023000 03:43 56250
/usr/lib/libpng12.so.0.12.0
2ac974614000-2ac974615000 rw-p 00022000 03:43 56250
/usr/lib/libpng12.so.0.12.0
2ac974615000-2ac974616000 rw-p 2ac974615000 00:00 0
2ac974616000-2ac97461d000 r-xp 00000000 03:43 85703
/lib/librt-2.4.so
2ac97461d000-2ac97471d000 ---p 00007000 03:43 85703
/lib/librt-2.4.so
2ac97471d000-2ac97471f000 rw-p 00007000 03:43 85703
/lib/librt-2.4.so
2ac97471f000-2ac974721000 r-xp 00000000 03:43 54227
/usr/lib/libXau.so.6.0.0
2ac974721000-2ac974820000 ---p 00002000 03:43 54227
/usr/lib/libXau.so.6.0.0
2ac974820000-2ac974821000 rw-p 00001000 03:43 54227
/usr/lib/libXau.so.6.0.0
2ac974821000-2ac974822000 rw-p 2ac974821000 00:00 0
2ac974822000-2ac974827000 r-xp 00000000 03:43 54240
/usr/lib/libXdmcp.so.6.0.0
2ac974827000-2ac974926000 ---p 00005000 03:43 54240
/usr/lib/libXdmcp.so.6.0.0
2ac974926000-2ac974927000 rw-p 00004000 03:43 54240
/usr/lib/libXdmcp.so.6.0.0
2ac974927000-2ac974948000 r-xp 00000000 03:43 55677
/usr/lib/libexpat.so.1.5.0
2ac974948000-2ac974a47000 ---p 00021000 03:43 55677
/usr/lib/libexpat.so.1.5.0
2ac974a47000-2ac974a4a000 rw-p 00020000 03:43 55677
/usr/lib/libexpat.so.1.5.0
2ac974a4a000-2ac974a4d000 rw-p 2ac974a4a000 00:00 0
2ac974a4d000-2ac974bd0000 r--p 00000000 03:43 49087
/usr/lib/locale/locale-archive
2ac974bd0000-2ac974be4000 r--p 00000000 03:43 71220
/usr/share/locale/ru/LC_MESSAGES/gtk20.mo
2ac974bfd000-2ac974c07000 r-xp 00000000 03:43 81351
/lib/libnss_files-2.4.so
2ac974c07000-2ac974d06000 ---p 0000a000 03:43 81351
/lib/libnss_files-2.4.so
2ac974d06000-2ac974d08000 rw-p 00009000 03:43 81351
/lib/libnss_files-2.4.so
2ac974d08000-2ac974d34000 r--p 00000000 03:43 71219

/usr/share/locale/ru/LC_MESSAGES/gtk20-properties.mo
2ac974d34000-2ac974d36000 r-xp 00000000 03:43 86097
/usr/lib/gconv/ISO8859-1.so
2ac974d36000-2ac974e35000 ---p 00002000 03:43 86097
/usr/lib/gconv/ISO8859-1.so
2ac974e35000-2ac974e37000 rw-p 00001000 03:43 86097
/usr/lib/gconv/ISO8859-1.so
2ac974e37000-2ac974e40000 r-xp 00000000 03:43 116171

/usr/lib/gtk-2.0/2.10.0/engines/libxfce.so
2ac974e40000-2ac974f3f000 ---p 00009000 03:43 116171

/usr/lib/gtk-2.0/2.10.0/engines/libxfce.so
2ac974f3f000-2ac974f40000 rw-p 00008000 03:43 116171

/usr/lib/gtk-2.0/2.10.0/engines/libxfce.so
2ac974f40000-2ac974f5b000 r--p 00000000 03:43 66633
/usr/share/locale/ru/LC_MESSAGES/libc.mo
2ac974f5b000-2ac974fbb000 rw-s 00000000 00:07 69664798
/SYSV00000000 (deleted)
2ac97505e000-2ac975078000 r--s 00000000 03:43 196704

/var/cache/fontconfig/f6b893a7224233d96cb72fd88691c0b4-x86-64.cache-2
2ac975078000-2ac975079000 r--s 00000000 03:01 199713

/home/hatred/.fontconfig/b08b67815eff52ef5bae52eab855ef0f-x86-64.cache-2
2ac975079000-2ac975081000 r--s 00000000 03:43 197348

/var/cache/fontconfig/d62e99ef547d1d24cdb1bd22ec1a2976-x86-64.cache-2
2ac975081000-2ac975086000 r--s 00000000 03:43 206360

/var/cache/fontconfig/5a02e0a9ca9b27d0aa4bd0c42ba2438d-x86-64.cache-2
2ac975086000-2ac97509c000 r--s 00000000 03:43 202764

/var/cache/fontconfig/8d4af663993b81a124ee82e610bb31f9-x86-64.cache-2
2ac97509c000-2ac9750a4000 r--s 00000000 03:43 206587

/var/cache/fontconfig/4460665c0f3e88acdd4c85aa2f409b99-x86-64.cache-2
2ac9750a4000-2ac9750a7000 r-xp 00000000 03:43 115756

/usr/lib/pango/1.5.0/modules/pango-basic-fc.so
2ac9750a7000-2ac9751a6000 ---p 00003000 03:43 115756

/usr/lib/pango/1.5.0/modules/pango-basic-fc.so
2ac9751a6000-2ac9751a7000 rw-p 00002000 03:43 115756

/usr/lib/pango/1.5.0/modules/pango-basic-fc.so
2ac9751a7000-2ac9751b8000 r--p 00000000 03:43 251864
/usr/share/fonts/TTF/Vera.ttf
2ac9751b8000-2ac975235000 r--p 00000000 03:43 90622
/usr/share/fonts/TTF/DejaVuSans.ttf
2ac975235000-2ac975239000 r-xp 00000000 03:43 115896

/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-png.so
2ac975239000-2ac975339000 ---p 00004000 03:43 115896

/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-png.so
2ac975339000-2ac97533a000 rw-p 00004000 03:43 115896

/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-png.so
2ac975400000-2ac975421000 rw-p 2ac975400000 00:00 0
2ac975421000-2ac975500000 ---p 2ac975421000 00:00 0
7fff38e73000-7fff38ec5000 rw-p 7fff38e73000 00:00 0
[stack]
ffffffffff600000-ffffffffffe00000 ---p 00000000 00:00 0
[vdso]
Аварийный останов
------------------- cut here -------------------

I tried build SciTe with debug information and run in
gdb, after crash I do backtrace cmd:
------------------- cut here -------------------
#0 0x00002ab0968464a5 in raise () from /lib/libc.so.6
#1 0x00002ab0968476ae in abort () from /lib/libc.so.6
#2 0x00002ab09687b2d6 in __libc_message () from
/lib/libc.so.6
#3 0x00002ab09688006d in malloc_printerr () from
/lib/libc.so.6
#4 0x00002ab09688166c in free () from /lib/libc.so.6
#5 0x00002ab09687227d in fclose@@GLIBC_2.2.5 () from
/lib/libc.so.6
#6 0x00000000004a6bc7 in aux_close (L=0x953170) at
../lua/src/lib/liolib.c:152
#7 0x00000000004a6c52 in io_close (L=0x953170) at
../lua/src/lib/liolib.c:165
#8 0x000000000049b9da in luaD_precall (L=0x953170,
func=0x969810) at ../lua/src/ldo.c:260
#9 0x00000000004a3222 in luaV_execute (L=0x953170) at
../lua/src/lvm.c:627
#10 0x000000000049baec in luaD_call (L=0x953170,
func=0x953360, nResults=0) at ../lua/src/ldo.c:313
#11 0x000000000049b45c in luaD_rawrunprotected
(L=0x953170, f=0x498c8f <f_call>, ud=0x7fff15b31bc0) at
../lua/src/ldo.c:88
#12 0x000000000049b545 in luaD_pcall (L=0x7b5a,
func=0x7b5a, u=0x6, old_top=-1, ef=0) at
../lua/src/ldo.c:416
#13 0x0000000000498b76 in lua_pcall (L=0x953170,
nargs=0, nresults=0, errfunc=<value optimized out>) at
../lua/src/lapi.c:685
#14 0x0000000000495241 in call_function (L=0x953170,
nargs=0, ignoreFunctionReturnValue=true) at
../src/LuaExtension.cxx:785
#15 0x000000000049790a in InitGlobalScope
(checkProperties=false, forceReload=<value optimized out>)
at ../src/LuaExtension.cxx:1462
#16 0x0000000000497bb6 in LuaExtension::Initialise
(this=<value optimized out>, host_=<value optimized out>)
at ../src/LuaExtension.cxx:1487
#17 0x00000000004344bc in
MultiplexExtension::Initialise (this=0x7fff15b36e00,
host_=0x7fff15b31de0)
at ../src/MultiplexExtension.cxx:59
#18 0x000000000041a5d6 in SciTEBase::UIAvailable
(this=0x7fff15b31de0) at ../src/SciTEBase.cxx:4459
#19 0x0000000000412ca0 in SciTEGTK::Run
(this=0x7fff15b31de0, argc=1, argv=0x7fff15b36f18) at
SciTEGTK.cxx:3435
#20 0x00000000004133ca in main (argc=1,
argv=0x7fff15b36f18) at SciTEGTK.cxx:3507
------------------- cut here -------------------

I listen code and it is like, that error occures in
function aux_close() in file liolib.c when we call
fclose() function. It look like tofile() function
return incorrect pointer to FILE structure.

Please, if you need additional information inform me
and I will provide it.

Discussion

  • Logged In: YES
    user_id=1635022

    I add text-log for opening and close file:
    ------------------------- cut -------------------------
    [hatred@gaz bin]$ LANG=C ./SciTE
    Xumuk: ../lua/src/lib/lauxlib.c:498 luaL_loadfile - fopen():
    0x85B560
    Xumuk: ../lua/src/lib/lauxlib.c:511 luaL_loadfile -
    fclose(): 0x85B560
    Xumuk: ../lua/src/lib/liolib.c:202 io_open -
    /usr/share/scite/scite_other.lua / r
    Xumuk: ../lua/src/lib/liolib.c:203 io_open - fopen(): 0x0
    (No such file or directory)
    Xumuk: Tried close file, f = 0x862DB0
    Xumuk: ../lua/src/lib/liolib.c:155 aux_close - fclose():
    0x862DB0
    *** glibc detected *** ./SciTE: double free or corruption
    (!prev): 0x0000000000862db0 ***
    ------------------------- cut -------------------------

    We can see that we tried open file but it is not exist on
    FS, fopen() return NULL
    but when we tried close file tofile() return incorrect file
    handle 0x862DB0 instead NULL

     
  • Neil Hodgson
    Neil Hodgson
    2006-11-12

    • labels: --> SciTE
    • milestone: --> Bug
    • assigned_to: nobody --> nyamatongwe
     
  • Neil Hodgson
    Neil Hodgson
    2006-11-12

    Logged In: YES
    user_id=12579

    Could you upload your Lua scripting settings:
    ext.lua.startup.script, ext.lua.auto.reload, ext.lua.reset
    and the contents of the startup script(s).

     
  • Logged In: YES
    user_id=1635022

    ext.lua.startup.scripts =
    ext.lua.startup.script=$(SciteUserHome)/scite/extman.lua

    options ext.lua.auto.reload and ext.lua.reset is not used.

    My config (.SciTEUser.properties) and lua scripts is
    attached (scite.tar.bz2)

     
  • User config and lua scripts

     
    Attachments
  • Logged In: YES
    user_id=1635022

    Hmmm... I fix extman.lua fix, function scite_Files():
    ------------------- cut -------------------
    function scite_Files(mask)
    local f,path

    if scite_GetProp('PLAT_GTK') then
    local tmpfile = props['SciteUserHome']..'/scite/scite_temp1'

    local cmd = 'ls -1 "'..mask..'" > '..tmpfile
    --print(cmd)
    os.execute(cmd)
    f = io.open(tmpfile)
    else
    mask = string.gsub(mask,'/','\\')
    local tmpfile = '\\scite_temp1'
    _,_,path = string.find(mask,'(.*\\)')
    local cmd = 'dir /b "'..mask..'" > '..tmpfile
    print(cmd)
    if Execute then -- scite_other was found!
    Execute(cmd)
    else
    os.execute(cmd)
    end
    f = io.open(tmpfile)
    end

    local files = {}
    if not f then return files end
    for line in f:lines() do
    --print(line)
    append(files,line);
    end

    f:close()
    return files
    end
    ------------------- cut -------------------

    Is lua support io.popen() operation well?

     
  • Neil Hodgson
    Neil Hodgson
    2006-12-05

    • priority: 5 --> 3
    • status: open --> open-accepted
     
  • Neil Hodgson
    Neil Hodgson
    2006-12-05

    Logged In: YES
    user_id=12579
    Originator: NO

    The extman author, Steve Donovan, has confirmed there are problems with io.popen and has updated extman to avoid this problem. Leaving this item open in case someone can fix io.popen.