yugo4k
unread,Sep 23, 2011, 12:26:59 PM9/23/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to TANGO Project - ALGENCAN
Hello,
I modified the file toyprob.c according to the problem I'm trying to
solve; it compiled but had a segmentation fault on execution.
The following functions were modified:
evalf
evalg
evalh
evalc
evaljac
evalhc
Since segmentation faults are usually related to off bound indexes, I
checked each array and loop but got nothing out of the expected. My
problem has 7 variables, 7 equality constraints and every bound seems
to be respected (according to the toyprob example): arrays going from
0 to 6 and index of constraint going from 1 to 7.
Using gdb, all I got was:
Program received signal SIGSEGV, Segmentation fault.
0x00000000004018a8 in Evaljac ()
Current language: auto; currently asm
The last function called in toyprob.c before the segmentation fault is
evaljac, with just the first ind of value 1. A little after the
program exits the function, the segmentation fault occurs.
Can anyone give some hint as to how to fix this?
Thanks,
Yugo