SAD部屋 - Ticket-12 Diff

  • Added parts are displayed like this.
  • Deleted parts are displayed like this.

! SlotSequence[] without Function[] crashs SAD

:Priority:Normal
:Reporter:Akio Morita
:Status:Closed
:Assigned to:Akio Morita
:Version:1704
:Milestone:2787
:Created:2008-04-04

!! Description

症例とバックトレースは下記のとおり
% /SAD/bin/gs FFS
  *** Welcome to SAD Revision 1704 built at 2008-04-03 17:05:52 +0200 ***
   cpu time= 0.1030    (sec) dt=    103.041(msec) free area::    1802
  FFS ;           6

  *** SADScript Initialization: /SAD/share/Packages/init.n ***
feature[Random/SAD] version is redefined from 1000 to 1001.
random_register(): upgrade plugin[SAD] from version=1000 to 1001
  RFSW RADCOD RAD   FLUC INTRA  POL   COD  DAPER EMIOU CMPLO FOURI SMEAR
    F     F     F     T     F     F     T     F     F     F     F     T
  Design orbit length =  1.00000000000000000
  In[1]:= {SlotSequence[1]}
Segmentation fault (core dumped)
% gdb /SAD/arch/i386-FreeBSD7/bin/sad1.exe sad1.exe.core
GNU gdb 6.1.1 [FreeBSD]
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 "i386-marcel-freebsd"...
Core was generated by `sad1.exe'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/local/lib/libtai.so.1...done.
Loaded symbols for /usr/local/lib/libtai.so.1
Reading symbols from /lib/libcrypt.so.4...done.
Loaded symbols for /lib/libcrypt.so.4
Reading symbols from /lib/libutil.so.7...done.
Loaded symbols for /lib/libutil.so.7
Reading symbols from /usr/local/lib/gcc-4.3.1/libgfortran.so.3...done.
Loaded symbols for /usr/local/lib/gcc-4.3.1/libgfortran.so.3
Reading symbols from /lib/libm.so.5...done.
Loaded symbols for /lib/libm.so.5
Reading symbols from /lib/libgcc_s.so.1...done.
Loaded symbols for /lib/libgcc_s.so.1
Reading symbols from /lib/libc.so.7...done.
Loaded symbols for /lib/libc.so.7
Reading symbols from /usr/local/SAD/share/Extension/Random/i386-FreeBSD7/SAD.so...done.
Loaded symbols for /usr/local/SAD/share/Extension/Random/i386-FreeBSD7/SAD.so
Reading symbols from /usr/local/SAD/share/Extension/Random/i386-FreeBSD7/MT19937.so...done.
Loaded symbols for /usr/local/SAD/share/Extension/Random/i386-FreeBSD7/MT19937.so
Reading symbols from /usr/local/SAD/share/Extension/Random/i386-FreeBSD7/SFMT19937.so...done.
Loaded symbols for /usr/local/SAD/share/Extension/Random/i386-FreeBSD7/SFMT19937.so
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x0808ea53 in tfslot (iopc=@0xbfbe3bf4, iad=@0x9d63a88, iav=@0x9d63a8c, ns=@0x9d63a7c, itx=@0xbfbe3cc8, iax=@0xbfbe3cd4, vx=@0xbfbe3cc0,
     ref=@0x8214858, irtc=@0xbfbe4120) at /export/home/amorita/src/compile/sad/current-gcc43/src/tfeeval.f:2048
2048         ipurefp=itastk(1,ipf0+naf0+1)
(gdb) bt
#0  0x0808ea53 in tfslot (iopc=@0xbfbe3bf4, iad=@0x9d63a88, iav=@0x9d63a8c, ns=@0x9d63a7c, itx=@0xbfbe3cc8, iax=@0xbfbe3cd4, vx=@0xbfbe3cc0,
     ref=@0x8214858, irtc=@0xbfbe4120) at /export/home/amorita/src/compile/sad/current-gcc43/src/tfeeval.f:2048
#1  0x080927c0 in tfseval (is=@0x9d63a88, ivs=@0x9d63a8c, ns=@0x9d63a7c, ith=@0x9d63a80, iah=@0x9d63a84, iaa=@0xbfbe3c68, itx=@0xbfbe3cc8,
     iax=@0xbfbe3cd4, vx=@0xbfbe3cc0, ref=@0x8214858, irtc=@0xbfbe4120) at /export/home/amorita/src/compile/sad/current-gcc43/src/tfeeval.f:326
#2  0x08092dd7 in tfleval (ia=@0xbfbe3cd0, itx=@0xbfbe3cc8, iax=@0xbfbe3cd4, vx=@0xbfbe3cc0, ref=@0x8214858, irtc=@0xbfbe4120)
     at /export/home/amorita/src/compile/sad/current-gcc43/src/tfeeval.f:77
#3  0x08090328 in tfevallev (ia=@0xbfbe3e9c, itx=@0xbfbe411c, iax=@0xbfbe44a4, vx=@0xbfbe4490, irtc=@0xbfbe4120)
     at /export/home/amorita/src/compile/sad/current-gcc43/src/tfeeval.f:1251
#4  0x080926aa in tfseval (is=@0x9d63ad0, ivs=@0x9d63ad4, ns=@0x9d63ac4, ith=@0x9d63ac8, iah=@0x9d63acc, iaa=@0xbfbe3f08, itx=@0xbfbe411c,
     iax=@0xbfbe44a4, vx=@0xbfbe4490, ref=@0x82156d0, irtc=@0xbfbe4120) at /export/home/amorita/src/compile/sad/current-gcc43/src/tfeeval.f:276
#5  0x08092dd7 in tfleval (ia=@0xa10000c, itx=@0xbfbe411c, iax=@0xbfbe44a4, vx=@0xbfbe4490, ref=@0x82156d0, irtc=@0xbfbe4120)
     at /export/home/amorita/src/compile/sad/current-gcc43/src/tfeeval.f:77
#6  0x080a2be3 in tfeval (string=@0x9eceee4, l=@0x9eceee0, ist1=@0x9ecee60, istop=@0xbfbe4118, itx=@0xbfbe411c, iax=@0xbfbe44a4,
     vx=@0xbfbe4490, re=@0x8220ca8, irtc=@0xbfbe4120, _string=19) at /export/home/amorita/src/compile/sad/current-gcc43/src/tfeval.f:380
#7  0x0813d986 in itfgeto (ira=@0xbfbe44a4, v=@0xbfbe4490) at /export/home/amorita/src/compile/sad/current-gcc43/src/itfgeto.f:14
#8  0x0813d90d in itfpeeko (ira=@0xbfbe44a4, v=@0xbfbe4490, next=@0xbfbfd6a0)
     at /export/home/amorita/src/compile/sad/current-gcc43/src/itfgeto.f:40
#9  0x080d8419 in tfprint (word=@0xbfbfd09b, lfno=@0x9ecee74, force=@0x8215ff4, itx=@0xbfbfd6d4, next=@0xbfbfd6a0, exist=@0x8279e04,
     _word=255) at /export/home/amorita/src/compile/sad/current-gcc43/src/tfprint.f:17
#10 0x080aafa7 in tffsa (lfnb=@0x8215f94, itffs=@0xbfbfd770, iaffs=@0xbfbfd778, vffs=@0xbfbfd768, irtcffs=@0xbfbfd774)
     at /export/home/amorita/src/compile/sad/current-gcc43/src/tffsa.f:232
#11 0x080a9901 in tffs () at /export/home/amorita/src/compile/sad/current-gcc43/src/tffs.f:8
#12 0x081044f9 in track (latt=@0xbfbfdc88, iparam=@0xbfbfdc8c) at /export/home/amorita/src/compile/sad/current-gcc43/src/track.f:133
---Type <return> to continue, or q <return> to quit---
#13 0x0811e31d in acttra (argp=@0xbfbfdf94) at /export/home/amorita/src/compile/sad/current-gcc43/src/ActTra.f:272
#14 0x0812ac85 in doact (cmdidx=@0xbfbfe1fc) at /export/home/amorita/src/compile/sad/current-gcc43/src/doACT.f:205
#15 0x08101894 in master.0.toplvl (__entry=Variable "__entry" is not available.
) at /export/home/amorita/src/compile/sad/current-gcc43/src/toplvl.f:39
#16 0x08101a0d in toplvl () at /export/home/amorita/src/compile/sad/current-gcc43/src/toplvl.f:1
#17 0x0805c52e in MAIN__ () at MAIN_VERSION.f:29
#18 0x0820cc33 in main (argc=Cannot access memory at address 0x0
) at ../.././..//gcc-4.3-20080320/libgfortran/fmain.c:21
Current language:  auto; currently fortran

!! Attachement files
{{attach_map('Ticket-12')}}
{{attach_form('','')}}//{{attach_form('','')}}

!! Changelog
!!!Akio Morita (2008-11-20 (木) 17:01:10)
tfslot@src/tfeeval.fにて、SlotSequenceオペレータの参照している
''sequence''を生成する際にパラメータの範囲検査に抜けがある。

Revision 2787にて、修正完了

{{its_edit_ticket_form}}//{{its_edit_ticket_form}}