[GAP Forum] Fwd: need help with debugging

kroeker kroeker at uni-math.gwdg.de
Fri Aug 10 13:38:00 BST 2012


Hello,


probably my first question was overseen,
any suggestions how to proceed with debugging ?


Thanks,


Jakob


-------- Original-Nachricht --------
Betreff: 	need help with debugging
Datum: 	Tue, 31 Jul 2012 14:43:03 +0200
Von: 	kroeker <kroeker at uni-math.gwdg.de>
An: 	support at gap-system.org



Hello,



for a special computation using float package I ran into a segfault.
I have no experience debugging GAP, any suggestions?
Here is the backtrace:

Thanks,

Jakob

Program received signal SIGSEGV, Segmentation fault.
0x0000000000000000 in ?? ()
(gdb) backtrace
#0  0x0000000000000000 in ?? ()
#1  0x0000000000593655 in KTNumPlist (list=0x100000f5fde0,
famfirst=0x7fffffffc1b8) at ../../src/plist.c:317
#2  0x0000000000595266 in TypePlistWithKTnum (list=0x100000f5fde0,
ktnum=0x0) at ../../src/plist.c:548
#3  0x00000000005951f5 in TypePlist (list=0x100000f5fde0) at
../../src/plist.c:534
#4  0x0000000000593655 in KTNumPlist (list=0x100000f635d0,
famfirst=0x7fffffffc328) at ../../src/plist.c:317
#5  0x0000000000595266 in TypePlistWithKTnum (list=0x100000f635d0,
ktnum=0x0) at ../../src/plist.c:548
#6  0x00000000005951f5 in TypePlist (list=0x100000f635d0) at
../../src/plist.c:534
#7  0x0000000000575bd3 in DoFilter (self=0x100000027b30,
obj=0x100000f635d0) at ../../src/opers.c:979
#8  0x00000000005761da in DoAndFilter (self=0x100000028898,
obj=0x100000f635d0) at ../../src/opers.c:1082
#9  0x00000000005761da in DoAndFilter (self=0x1000000289b0,
obj=0x100000f635d0) at ../../src/opers.c:1082
#10 0x00000000005761da in DoAndFilter (self=0x10000002bc18,
obj=0x100000f635d0) at ../../src/opers.c:1082
#11 0x000000000050aac5 in EvalFunccall1args (call=168) at
../../src/funcs.c:486
#12 0x00000000004fb6f7 in EvalUnknownBool (expr=168) at
../../src/exprs.c:198
#13 0x00000000004fbcf2 in EvalNot (expr=216) at ../../src/exprs.c:327
#14 0x00000000005c63a2 in ExecIf (stat=440) at ../../src/stats.c:287
#15 0x00000000005c608a in ExecSeqStat7 (stat=32) at ../../src/stats.c:247
#16 0x000000000050d883 in DoExecFunc1args (func=0x100000889a60,
arg1=0x100000f635d0) at ../../src/funcs.c:861
#17 0x000000000050aac5 in EvalFunccall1args (call=2480) at
../../src/funcs.c:486
#18 0x00000000005ea1cd in ExecAssLVar11 (stat=2528) at ../../src/vars.c:306
#19 0x00000000005c57f7 in ExecSeqStat (stat=5584) at ../../src/stats.c:161
#20 0x00000000005c92a9 in ExecWhile (stat=5720) at ../../src/stats.c:1048
#21 0x00000000005c57f7 in ExecSeqStat (stat=6224) at ../../src/stats.c:161
#22 0x00000000005c6315 in ExecSeqStat7 (stat=32) at ../../src/stats.c:255
#23 0x000000000050dd29 in DoExecFunc5args (func=0x100000889668,
arg1=0x10000062a3a8, arg2=0x1000006297c0, arg3=0x100000ff3e18,
arg4=0x100000fbfff0, arg5=0x100000292f88) at ../../src/funcs.c:1033
#24 0x000000000050c6d7 in EvalFunccall5args (call=2608) at
../../src/funcs.c:637
#25 0x00000000005ea80c in ExecAssLVar15 (stat=2688) at ../../src/vars.c:362
#26 0x00000000005c5879 in ExecSeqStat2 (stat=3264) at ../../src/stats.c:177
#27 0x00000000005c63fd in ExecIf (stat=3312) at ../../src/stats.c:291
#28 0x00000000005c5c76 in ExecSeqStat5 (stat=3664) at ../../src/stats.c:217
#29 0x00000000005c92a9 in ExecWhile (stat=3736) at ../../src/stats.c:1048
#30 0x00000000005c57f7 in ExecSeqStat (stat=6968) at ../../src/stats.c:161
#31 0x00000000005c6315 in ExecSeqStat7 (stat=32) at ../../src/stats.c:255
#32 0x000000000050dd29 in DoExecFunc5args (func=0x10000088a420,
arg1=0x1000005791b0, arg2=0x10000055d908, arg3=0x10000062a3a8,
arg4=0x10000062a3a8, arg5=0x100000292f88) at ../../src/funcs.c:1033
#33 0x000000000050c6d7 in EvalFunccall5args (call=4264) at
../../src/funcs.c:637
#34 0x00000000005e9a02 in ExecAssLVar06 (stat=4344) at ../../src/vars.c:236
#35 0x00000000005c57f7 in ExecSeqStat (stat=5632) at ../../src/stats.c:161
#36 0x00000000005c84c0 in ExecForRange (stat=5744) at ../../src/stats.c:846
#37 0x00000000005c57f7 in ExecSeqStat (stat=5984) at ../../src/stats.c:161
#38 0x00000000005c6315 in ExecSeqStat7 (stat=32) at ../../src/stats.c:255
#39 0x000000000050dbda in DoExecFunc4args (func=0x10000088a320,
arg1=0x1000005791b0, arg2=0x10000055d908, arg3=0x1000006297c0,
arg4=0x100000535400) at ../../src/funcs.c:987
#40 0x000000000050bdc1 in EvalFunccall4args (call=712) at
../../src/funcs.c:596
#41 0x00000000005e96e4 in ExecAssLVar04 (stat=784) at ../../src/vars.c:208
#42 0x00000000005c61d1 in ExecSeqStat7 (stat=32) at ../../src/stats.c:250
#43 0x000000000050daa4 in DoExecFunc3args (func=0x100000889398,
arg1=0x1000005791b0, arg2=0x10000055d908, arg3=0x100000535400) at
../../src/funcs.c:943
#44 0x000000000050b60b in EvalFunccall3args (call=344) at
../../src/funcs.c:558
#45 0x00000000005e93c6 in ExecAssLVar02 (stat=408) at ../../src/vars.c:180
#46 0x00000000005c593c in ExecSeqStat3 (stat=32) at ../../src/stats.c:189
#47 0x000000000050d883 in DoExecFunc1args (func=0x10000078a9a8,
arg1=0x100000535400) at ../../src/funcs.c:861
#48 0x0000000000528396 in IntrFuncCallEnd (funccall=1, options=0, nr=1)
at ../../src/intrprtr.c:417
#49 0x00000000005ab14d in ReadCallVarAss (follow=3221225472, mode=114
'r') at ../../src/read.c:535
#50 0x00000000005add41 in ReadAtom (follow=3221225472, mode=114 'r') at
../../src/read.c:1384
#51 0x00000000005adf53 in ReadFactor (follow=3221225472, mode=114 'r')
at ../../src/read.c:1446
#52 0x00000000005ae149 in ReadTerm (follow=3221225472, mode=114 'r') at
../../src/read.c:1497
#53 0x00000000005ae26f in ReadAri (follow=3221225472, mode=114 'r') at
../../src/read.c:1530
#54 0x00000000005ae3a4 in ReadRel (follow=3221225472, mode=114 'r') at
../../src/read.c:1569
#55 0x00000000005ae546 in ReadAnd (follow=3221225472, mode=114 'r') at
../../src/read.c:1608
#56 0x00000000005ae647 in ReadExpr (follow=3221225472, mode=114 'r') at
../../src/read.c:1634
#57 0x00000000005ab1ec in ReadCallVarAss (follow=3221225472, mode=120
'x') at ../../src/read.c:545
#58 0x00000000005add41 in ReadAtom (follow=3221225472, mode=120 'x') at
../../src/read.c:1384
#59 0x00000000005adf53 in ReadFactor (follow=3221225472, mode=120 'x')
at ../../src/read.c:1446
#60 0x00000000005ae149 in ReadTerm (follow=3221225472, mode=120 'x') at
../../src/read.c:1497
#61 0x00000000005ae26f in ReadAri (follow=3221225472, mode=120 'x') at
../../src/read.c:1530
#62 0x00000000005ae3a4 in ReadRel (follow=3221225472, mode=120 'x') at
../../src/read.c:1569
---Type<return>  to continue, or q<return>  to quit---
#63 0x00000000005ae546 in ReadAnd (follow=3221225472, mode=120 'x') at
../../src/read.c:1608
#64 0x00000000005ae647 in ReadExpr (follow=3221225472, mode=120 'x') at
../../src/read.c:1634
#65 0x00000000005b0141 in ReadEvalCommand (context=0x100000001c50) at
../../src/read.c:2261
#66 0x000000000050f126 in Shell (context=0x100000001c50,
canReturnVoid=0, canReturnObj=0, lastDepth=3, setTime=1,
prompt=0x7fffffffd4c0 "gap>  ", preCommandHook=0x10000013e270,
catchQUIT=1, inFile=0x1000056257e8 "\002",
     outFile=0x100005625808 "\350\062g") at ../../src/gap.c:306
#67 0x000000000050fac0 in FuncSHELL (self=0x10000000b648,
args=0x10000013e278) at ../../src/gap.c:500
#68 0x000000000050a25e in ExecProccallXargs (call=944) at
../../src/funcs.c:387
#69 0x00000000005c5c76 in ExecSeqStat5 (stat=32) at ../../src/stats.c:217
#70 0x000000000050d798 in DoExecFunc0args (func=0x1000000670b8) at
../../src/funcs.c:821
#71 0x0000000000528360 in IntrFuncCallEnd (funccall=0, options=0, nr=0)
at ../../src/intrprtr.c:416
#72 0x00000000005ab12a in ReadCallVarAss (follow=3221225472, mode=120
'x') at ../../src/read.c:532
#73 0x00000000005add41 in ReadAtom (follow=3221225472, mode=120 'x') at
../../src/read.c:1384
#74 0x00000000005adf53 in ReadFactor (follow=3221225472, mode=120 'x')
at ../../src/read.c:1446
#75 0x00000000005ae149 in ReadTerm (follow=3221225472, mode=120 'x') at
../../src/read.c:1497
#76 0x00000000005ae26f in ReadAri (follow=3221225472, mode=120 'x') at
../../src/read.c:1530
#77 0x00000000005ae3a4 in ReadRel (follow=3221225472, mode=120 'x') at
../../src/read.c:1569
#78 0x00000000005ae546 in ReadAnd (follow=3221225472, mode=120 'x') at
../../src/read.c:1608
#79 0x00000000005ae647 in ReadExpr (follow=3221225472, mode=120 'x') at
../../src/read.c:1634
#80 0x00000000005b0141 in ReadEvalCommand (context=0x100000001c50) at
../../src/read.c:2261
#81 0x00000000005ccc40 in READ_GAP_ROOT (filename=0xcce9c0 "lib/init.g")
at ../../src/streams.c:475
#82 0x0000000000518388 in InitializeGap (pargc=0x7fffffffdb8c,
argv=0x7fffffffdc98) at ../../src/gap.c:3411
#83 0x000000000051071a in main (argc=2, argv=0x7fffffffdc98,
environ=0x7fffffffdcb0) at ../../src/gap.c:793







More information about the Forum mailing list