bug found in a for loop, some help needed

58 views
Skip to first unread message

Alexander Kagermanov

unread,
Jul 25, 2014, 8:23:56 AM7/25/14
to julia...@googlegroups.com
Hi!, I have quite a long code for finite element analysis in Julia,, when I come to the point of assembling the stiffness matrix (which is a loop "for", for each element), I get the following error:

" please submit a bug report with steps to reproduce this fault..... Exception: EXCEPTION_ACCESS_VIOLATION at @x1ooob75 -- hvcat at abstractarray.jl 1017  .... "

,,. something like that. The part of the code where it happens, looks like this:

#Assemblege of initial Kglob
for e=1:size(Imatrix,1) #for each element
   
 # here I compute the element stiffness matrix Kglobel
 
    #Assemble
    for j=1:12 
        dof1=Imatrix[e,j];
        s1=posdof(Adof,dof1);
        if s1!=0 
            for k=1:12 
                dof2=Imatrix[e,k];
                s2=posdof(Adof,dof2);
                if s2!=0
                    Kglobst[s1,s2]=Kglobst[s1,s2]+Kglobel[j,k];
                end
            end
        end
    end
end

It´s strange because the error appears at different points, and in a few cases no error appeared, and it was able to finish the loop. 

Thanks
Alex

Leah Hanson

unread,
Jul 25, 2014, 10:10:50 AM7/25/14
to julia...@googlegroups.com
It sounds like the error message is asking you to open a github issue here: https://github.com/julialang/julia/issues?milestone=7&state=open . Seeing an error message that asks you to report an error (where the error is coming from the compiler, and not a message you added yourself) usually means that you found an exciting bug that's in the compiler, rather than your code.

When you create the issue, you should include the full error message, your code, and your julia version. The code needs to be a full, runnable example that produces that error. You can find out what version of Julia you're running using the `versioninfo()` function; run it at the REPL and paste the answer into your issue.

Thanks for finding a bug!
Leah
Reply all
Reply to author
Forward
0 new messages