stack-overflow

Intel Fortran compiler 2013 (Visual Studio2010): best way to increase stack for long scalar strings

痞子三分冷 提交于 2019-12-12 03:27:00
问题 I was having a stack overflow error in a fortran code compiled with fortran compiler 2013 and VS2010 under windows 7. I first try to set HeapArrays=0 in Project Properties ->Fortran -> Optimization -> Heap (Allocates temporary arrays of size n in the heap rather than in the stack). In that way all the arrays should move to the heap. However, nothing changed and the stack overflow error was still there. Then I added the flag /stack:2000000 in the Link Options and now everything runs smoothly.

Can I resize the max size of the stack when using lua_pushnumber

半世苍凉 提交于 2019-12-12 03:03:00
问题 We have a problem in our project,we use lua 5.1 as our scripting language. But when using lua_pushnumber to pass too many data from C++ to lua in one function,lua stack seems like stackoverflow and cause other part of the momery in C++ has been written,and it cause our system crash when the callback return to C++. I want to know whether there are some parameters to control the size of lua stack size.I try to change the parameter LUA_MINSTACK which defined in lua.h, but it seems doesn't work.I

How can i remove this Segmentation fault in C Program

廉价感情. 提交于 2019-12-12 02:09:37
问题 here i want to solve stack overflow issue in this code. here in this code i call function p recursively 350000 times so i got segmentation fault when i remove 350000 and put 300000 than it works fine here segmentation fault comes because of i calling recursively call of function p more times or calling a recursive function too deep. this is not working because i take if(i != 350000) . its stop at may be in this range 300000 to 327480. i tested 10 times CODE: #include <stdio.h> void p(char *,

Clisp “Program stack overflow. RESET” on a (cadr). How? [duplicate]

喜欢而已 提交于 2019-12-12 01:47:47
问题 This question already has an answer here : Unusual stack overflow when inserting nodes in binary tree (1 answer) Closed 2 years ago . I'm (still) porting code from Franz Lisp to Common LISP. Now I seem to have pushed the interpreter into a strange corner where it blows up. [11]> (setq fff (cadr contextstack)) *** - Program stack overflow. RESET Now how can that cause a stack overflow? Where's the recursion? I can take the length OK: [12]> (length contextstack) 79 describe works. This is just

Stack overflow error bruteforcing a magic square. Any possible solution?

99封情书 提交于 2019-12-12 00:28:13
问题 Here my problem, for an exercise I need to generate a magic square by bruteforcing it in backtracking. I thought it could be useful to allocate the matrix as a vector and a function that changes the coordinates. As you can imagine even with a 3x3 magic square it gave me a stack overflow problem. Debugging it i discovered it happen, more or less, at half of the generating, more precisely where the function chk_magic(int *m, int n) call change_coord(i, j, m, n); . Here it is the entire code,

lisp -how to check if all the list is numbers

点点圈 提交于 2019-12-12 00:07:45
问题 I build this function to check if all the "var" on the list are numbers. This what i tried to do (defun check6 (list) (if (null list) 'TRUE) (if (not (numberp(first list))) nil) (check6 (rest list))) But always i get stack overflow. Why please? 回答1: The stack overflow is due to the fact that you have several unrelated if , so that they produce a value which is not consumed and continue to execute the rest of the body of the function. This means that check6 is never terminated and causes the

java.lang.StackOverflowError in dom parser

落花浮王杯 提交于 2019-12-11 19:56:15
问题 Following is the method that will be accessed by many threads in my application. public static String getXMLAsString(org.dom4j.Document dom4jDocument) { String strXML=""; try { strXML = dom4jDocument.asXML(); } catch(Exception e){ e.printStackTrace(); System.out.println("XMLUtility : General Exception :- "+e.getMessage()); } return strXML; } After successfully executing some thread it will give following error. java.lang.StackOverflowError at java.lang.String.indexOf(String.java:1352) at org

java.lang.StackOverflowError: null JsonWriter.writeDeferredName but not using Json?

主宰稳场 提交于 2019-12-11 18:27:40
问题 I know the title isn't the best, but the error is not clear at all to me. The error I have is this: 019-04-15 14:28:45.270 ERROR 12644 --- [nio-9090-exec-6] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Handler dispatch failed; nested exception is java.lang.StackOverflowError] with root cause java.lang.StackOverflowError: null at com.google.gson.stream.JsonWriter.writeDeferredName(JsonWriter.java:401) ~[gson

StackOverflowError when try create new object of inherit class in superclass

本秂侑毒 提交于 2019-12-11 16:33:17
问题 I am newbie in Java. Can anyone explain to me why it show StackOverflowError ? public class MainClass { static Start st = new Start(); public static void main(String[] args) { st.start(); } } public class Start { Generator objGenerator = new Generator(); void start() { objGenerator.generator(); } } public class Generator extends Start { void generator() { //... } } If Generator class is not inherited from class Start, everything is ok, but why ? 回答1: Generator inherits from Start class

grails v3.3.3, json views 1.2.7 : getting stack overflow when doing a deep rendering of parent object

随声附和 提交于 2019-12-11 16:22:01
问题 getting a stack overflow when deep rendering a domain object with json views. I have created a Customer domain object and Sites domain object, where Customer hasMany sites. i have created two customers and one site in bootsrap and assigned the site to first customer. I have used gorm data service to create a customerService instance from interface. As per json views documentation (section 2.5.2) i have assured that when i use the index action on the controller that i do a join fetch for sites