Thank you for your response. My codes are already on Github. I just pushed 
the latest version: https://github.com/prezaei85/JuliaPower

Does that work? If not, let me know to upload a smaller version, but I'm 
not sure how to make it throw that error and restart the kernel, because I 
use the same function in other places and it's fine. I also have these 
lines in my .juliarc.jl (I have written two modules that the codes use):

push!(LOAD_PATH, "~/JuliaPower")

push!(LOAD_PATH, "~/JuliaPower/data")
Also, if you found something obviously  non-idomatic, I appreciate if you 
let me know. By the way, you are awesome in the tutorial video on Youtube 
from SciPy 2014!! I learnt a lot from that.

On Saturday, April 25, 2015 at 10:36:52 AM UTC-4, David P. Sanders wrote:
>
>
>
> El sábado, 25 de abril de 2015, 9:08:16 (UTC-5), Pooya escribió:
>>
>> These did not work. In one of my functions I am returning a function 
>> (myfunc) in output that is defined like myfunc(x;args...) = 
>> g(x,y,z,m,n;args...). This was working up to now when I am using myfunc in 
>> another function (and also when I use it directly in the global scope). I 
>> guess that is causing some problems, but I can't figure out why yet. I am 
>> using Debug package, but getting some weird outputs!
>>
>>
> Try making a minimal example (i.e., a small example that reproduces the 
> problem) and post it here or at gist.github.com so that we can try and 
> diagnose the issue.
>
>  
>
>> On Saturday, April 25, 2015 at 12:28:53 AM UTC-4, David P. Sanders wrote:
>>>
>>>
>>>
>>> El viernes, 24 de abril de 2015, 21:44:00 (UTC-5), Pooya escribió:
>>>>
>>>> I have been using julia in Mac Terminal and IJulia notebook for a while 
>>>> and they have been fine. But now I am getting this error: "The kernel 
>>>> appears to have died. It will restart automatically." in IJulia, and the 
>>>> following in Terminal after I run one of my codes. It restarts the kernel 
>>>> in both cases! Can anyone help?
>>>>
>>>> julia(8724,0x7fff7315e310) malloc: *** error for object 0x7feed745df10: 
>>>> pointer being realloc'd was not allocated
>>>>
>>>> *** set a breakpoint in malloc_error_break to debug
>>>>
>>>> signal (6): Abort trap: 6
>>>>
>>>> __pthread_kill at /usr/lib/system/libsystem_kernel.dylib (unknown line)
>>>>
>>>> Abort trap: 6
>>>>
>>>
>>> My usual solution for these kinds of problems (i.e. problems in which 
>>> it's unclear what the problem is and it was previously working!) is the 
>>> following sequence, testing if it now works after each step
>>>
>>> (i) Pkg.update()   
>>>
>>> (ii) Pkg.build("IJulia")
>>>
>>> (iii) Remove entire .julia directory and reinstall IJulia with 
>>> Pkg.add("IJulia").  (This is overkill for what would basically be "get the 
>>> latest version of all dependencies", but it can't do any harm...)
>>>
>>> Of course it might be an actual bug, in which case these steps won't 
>>> help at all...
>>>
>>

Reply via email to