stack-overflow

Stack overflow in Fortran 90

橙三吉。 提交于 2019-12-18 11:58:51
问题 I have written a fairly large program in Fortran 90. It has been working beautifully for quite a while, but today I tried to step it up a notch and increase the problem size (it is a research non-standard FE-solver, if that helps anyone...) Now I get the "stack overflow" error message and naturally the program terminates without giving me anything useful to work with. The program starts with setting up all relevant arrays and matrices, and after that is done it prints a few lines of stats

Hibernate OneToMany java.lang.StackOverflowError

谁说我不能喝 提交于 2019-12-18 11:40:25
问题 It's my first question here on stack, so please be gentle :D I'm trying to create hibernate OneToMany relationship. When I try to fetch some data from my DB, I'm getting StackOverflowError. But when i remove OneToMany part, everything goes normally. This is part of my REST Service, for now it runs on VMware vFabric Server and MySQL DB. Fetch example: @Inject private EntityManager entityManager; ... entityManager.find(League.class, 1); ... entityManager.find(Team.class, 1); MySQL script:

Getting StackOverflowException when setting property

喜欢而已 提交于 2019-12-18 09:24:28
问题 public List<Empleado> ListarEmpleados() { List<Empleado> returnList = new List<Empleado>(); var lista = from u in DB.tabEmpleado select new { u.idEmpleado, u.idUsuario, u.Nombre, u.Apellidos, u.Telefono1 }; foreach (var e in lista) { Empleado empleado = new Empleado(); empleado.idEmpleado = e.idEmpleado; empleado.idUsuario = e.idUsuario; empleado.nombre = e.Nombre; empleado.apellidos = e.Apellidos; empleado.telefono1 = e.Telefono1; returnList.Add(empleado); } return returnList; } This is a

Is iteration faster than recursion, or just less prone to stack overflows?

﹥>﹥吖頭↗ 提交于 2019-12-18 04:42:46
问题 I know you can rewrite a recursive function using a simple loop by using an array as a first-in-first-out queue of 'work remaining to be done'. I have heard this makes it less likely to have a stack overflow. But if stack overflows aren't an issue (because you're not recursing very deeply), is there any reason to prefer iterative over recursive? Is it any faster? I'm mostly interested in JavaScript on V8. 回答1: In Javascript, which doesn't (isn't required to, and perhaps can't? see the

Is iteration faster than recursion, or just less prone to stack overflows?

帅比萌擦擦* 提交于 2019-12-18 04:42:16
问题 I know you can rewrite a recursive function using a simple loop by using an array as a first-in-first-out queue of 'work remaining to be done'. I have heard this makes it less likely to have a stack overflow. But if stack overflows aren't an issue (because you're not recursing very deeply), is there any reason to prefer iterative over recursive? Is it any faster? I'm mostly interested in JavaScript on V8. 回答1: In Javascript, which doesn't (isn't required to, and perhaps can't? see the

How to solve 'protection stack overflow' issue in R Studio

落爺英雄遲暮 提交于 2019-12-18 04:03:56
问题 I'm trying to build a model with the glmnet package, but I'm getting the following error when I run the following line: #library('glmnet') x = model.matrix(response ~ ., data = acgh_frame[,c(3:ncol(acgh_frame))]) Error: protect(): protection stack overflow I know this is due to my large number of variables (26k+) in the dataframe. When I use fewer variables the error doesn't show. I know how to solve this in command line R, but I require to stay in R studio, so I want to fix it from R Studio.

AutoMapper throwing StackOverflowException when calling ProjectTo<T>() on IQueryable

杀马特。学长 韩版系。学妹 提交于 2019-12-18 03:06:20
问题 I have created classes using EF Code First that have collections of each other. Entities: public class Field { public int Id { get; set; } public string Name { get; set; } public virtual List<AppUser> Teachers { get; set; } public Field() { Teachers = new List<AppUser>(); } } public class AppUser { public int Id { get; set; } public string Email { get; set; } public string Password { get; set; } public string UserName => Email; public virtual List<Field> Fields { get; set; } public AppUser()

java.lang.StackOverflowError due to recursion

余生长醉 提交于 2019-12-18 01:20:23
问题 My problem is that I usually get a java.lang.StackOverflowError when I use recursion. My question is - why does recursion cause stackoverflow so much more than loops do, and is there any good way of using recursion to avoid stack overflow? This is an attempt to solve problem 107, it works well for their example but runs out of stack space for the problem it self. //-1 16 12 21 -1 -1 -1 16 -1 -1 17 20 -1 -1 12 -1 -1 28 -1 31 -1 21 17 28 -1 18 19 23 -1 20 -1 18 -1 -1 11 -1 -1 31 19 -1 -1 27 -1

Help catching StackOverflowException with WinDbg and ADPlus

只谈情不闲聊 提交于 2019-12-17 23:11:43
问题 Short Version I want an ADPlus script that will do a full memory dump on the first-chance StackOverflowException, before anything is cleaned up, and ignore all other exception types. Log Version After a release of new ASP.NET code, we started getting intermittent StackOverflowExceptions. We've looked for infinite recursions and all the usual suspects in the revisions added since the last known good install, and can't find anything. The website will run for up to an hour, and then crash down.

Large VLA overflow

核能气质少年 提交于 2019-12-17 20:52:49
问题 Based on a comment of someone in another thread: VLAs introduce more problems than they solve, because you never know if the declaration is going to crash for x being too large for the stack. This code will overflow because sizeof(a) is too long for the stack: #include <stdio.h> #include <stdlib.h> int main(void) { int n = 100000000; int a[4][n]; printf("%zu\n", sizeof(a)); return 0; } But this one can not because sizeof(a) is 8 (the size of a pointer in my computer): #include <stdio.h>