ERROR SystemStackError: stack level too deep #632

Closed
fotanus opened this Issue Dec 11, 2013 · 6 comments

Comments

Projects
None yet
4 participants

fotanus commented Dec 11, 2013

Hello,

I'm using rails, and every time I do a post request I got only the following on the log:

[2013-12-11 20:39:16] ERROR SystemStackError: stack level too deep
    /home/fotanus/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/utils.rb:532

The offended line contains the following code:

value.map! {|x| x.kind_of?(self.class) ? x.to_params_hash : x}

I wonder if this is the correct place to post this issue?

This is my request header:

Accept  application/json, text/javascript, */*; q=0.01
Accept-Encoding gzip, deflate
Accept-Language en-US,en;q=0.5
Content-Length  2373
Content-Type    application/x-www-form-urlencoded; charset=UTF-8
Cookie  __utma=111872281.145722388.1376415602.1385380223.1385554174.44; __utmz=111872281.1376415602.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); request_method=GET; _planhall_session=NkY5WUVGLzFiVW5sTXVXcGF2RlVYalgwa2l6Y3YrTFRjWTJvSjl0Y05SZDZ3M1NrSGlzeDcvNit1UXBwdTkzcnJ6amtJRXc1Z1hLOVBjdXlBTGl2Sno5aFRIVGtFRHRvNXpsNVRPdGtKT2lpWkY4aGlsakFCQ2F4UCtlWlY5dlV3Mkh4dHd4UFM5TU12elprWjFVM05QdDZibk03cFA0cXhNOVdEQU9UUU1PZUt0QnZNblFRaUhWUkJ4OXVUeld5TDZKcUdMeVRKa0RHVElySGJ3dlFrRFFuTm83cE5OWkVvbFU4OFEvanBEdWw0YUxmWnlPQS9iNGowYkxzczM1MGdHc2tDUElsdnVXaWlyd3RhcWdDVTRPOUgyL0Z4anNXMzlsdjZRZk5DNTY0SXJMbTFJdnlDUjFZWVYxaEJWVkNEN2V1K3pockxvU2l2SC9oeUg0VElXa1NpaHo2bSs4Kys1L3FOQVJPMnM1UGJqWmtjRWhPTUZTWUp3ZlM4aTlja20za1dXVUZWWlQ3bkNBbUpuVVJYT29IYmxoRklhN3Jpb0NkY0hPZXIwODk1OW9aUUkrMVBQNkFIcXgxOE5zby0tOVI1TVBlMUV3QlA1QnIwdWwyUEFKZz09--39694ec654e5e4f37af254468a5a3ce65b22ae22
Host    localhost:3000
Referer http://localhost:3000/task_lists/1
User-Agent  Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:25.0) Gecko/20100101 Firefox/25.0
X-CSRF-Token    Mk6KMZjztxxDGS4U+JOjPesMIgH22x4FH15GercHHNI=
X-Requested-With    XMLHttpRequest

And the post data is this:

{"sortd_items":["9",["56",["58",[],"57",["59",[]],"59",[]],"58",[],"57",["59",[]],"59",[],"64",["65",[],"66",[],"67",[]],"65",[],"66",[],"67",[],"60",["61",[],"62",[],"63",[]],"61",[],"62",[],"63",[],"10",[],"11",[],"12",["13",[],"14",[],"15",[]],"13",[],"14",[],"15",[],"16",["19",[],"18",[],"17",[]],"19",[],"18",[],"17",[],"20",["23",[],"21",[],"22",[]],"23",[],"21",[],"22",[],"24",["25",[],"26",[],"27",[]],"25",[],"26",[],"27",[],"28",["31",[],"29",[],"30",[]],"31",[],"29",[],"30",[],"32",["35",[],"34",[],"33",[]],"35",[],"34",[],"33",[],"36",["39",[],"37",[],"38",[]],"39",[],"37",[],"38",[],"40",["42",[],"41",[],"43",[]],"42",[],"41",[],"43",[],"44",["46",[],"45",[],"47",[]],"46",[],"45",[],"47",[],"48",["49",[],"50",[],"51",[]],"49",[],"50",[],"51",[],"88",["89",[],"90",[],"91",[]],"89",[],"90",[],"91",[],"84",["86",[],"85",[],"87",[]],"86",[],"85",[],"87",[],"80",["82",[],"83",[],"81",[]],"82",[],"83",[],"81",[],"52",["53",[],"55",[],"54",[]],"53",[],"55",[],"54",[],"76",["79",[],"77",[],"78",[]],"79",[],"77",[],"78",[],"72",["75",[],"73",[],"74",[]],"75",[],"73",[],"74",[],"68",["71",[],"70",[],"69",[]],"71",[],"70",[],"69",[]],"56",["58",[],"57",["59",[]],"59",[]],"58",[],"57",["59",[]],"59",[],"64",["65",[],"66",[],"67",[]],"65",[],"66",[],"67",[],"60",["61",[],"62",[],"63",[]],"61",[],"62",[],"63",[],"10",[],"11",[],"12",["13",[],"14",[],"15",[]],"13",[],"14",[],"15",[],"16",["19",[],"18",[],"17",[]],"19",[],"18",[],"17",[],"20",["23",[],"21",[],"22",[]],"23",[],"21",[],"22",[],"24",["25",[],"26",[],"27",[]],"25",[],"26",[],"27",[],"28",["31",[],"29",[],"30",[]],"31",[],"29",[],"30",[],"32",["35",[],"34",[],"33",[]],"35",[],"34",[],"33",[],"36",["39",[],"37",[],"38",[]],"39",[],"37",[],"38",[],"40",["42",[],"41",[],"43",[]],"42",[],"41",[],"43",[],"44",["46",[],"45",[],"47",[]],"46",[],"45",[],"47",[],"48",["49",[],"50",[],"51",[]],"49",[],"50",[],"51",[],"88",["89",[],"90",[],"91",[]],"89",[],"90",[],"91",[],"84",["86",[],"85",[],"87",[]],"86",[],"85",[],"87",[],"80",["82",[],"83",[],"81",[]],"82",[],"83",[],"81",[],"52",["53",[],"55",[],"54",[]],"53",[],"55",[],"54",[],"76",["79",[],"77",[],"78",[]],"79",[],"77",[],"78",[],"72",["75",[],"73",[],"74",[]],"75",[],"73",[],"74",[],"68",["71",[],"70",[],"69",[]],"71",[],"70",[],"69",[],"2",["3",[],"5",[],"4",[],"7",[],"8",[],"6",[]],"3",[],"5",[],"4",[],"7",[],"8",[],"6",[]]}
Owner

chneukirchen commented Dec 12, 2013

Show a full backtrace please.

Christian Neukirchen chneukirchen@gmail.com http://chneukirchen.org

fotanus commented Dec 12, 2013

Hi, thanks for the answer.

This is the full thing that appears on rails log. Can you point me to some direction to see the full stacktrace?

undying commented Dec 13, 2013

Try to set option:
config.log_level = :info
to

config.log_level = :debug

in:

config/environments/production.rb

2013/12/12 Felipe Tanus notifications@github.com

Hi, thanks for the answer.

This is the full thing that appears on rails log. Can you point me to some
direction to see the full stacktrace?


Reply to this email directly or view it on GitHubhttps://github.com/rack/rack/issues/632#issuecomment-30450546
.

Owner

raggi commented Jul 6, 2014

We need to avoid doing this when x.object_id == self.object_id to avoid cycles. Users shouldn't be doing this anyway, but it seems reasonable to avoid it.

raggi added this to the Rack 1.5.3 milestone Jul 6, 2014

Owner

raggi commented Jul 13, 2014

Hmm, no, the params provided are not balanced, and they're crazy long.

Can you provide a better example?

Owner

raggi commented Jul 13, 2014

I think b3e7a7c addresses this, closing until further information is available.

raggi closed this Jul 13, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment