zotonic/zotonic — Issue #272: Strange postgres crash
Author: arjan
Created: 2011-12-01 18:07:43+00:00
State: open

Some error while unserializing it seems:

```
=CRASH REPORT==== 1-Dec-2011::17:21:20 ===
crasher:
initial call: pgsql_connection:init/1
pid: <0.32140.254>
registered_name: []
exception exit: {badarg,[{erlang,binary_to_term,
[<<131,108,0,0,0,33,104,2,100,0,5,101,
109,97,105,108,109,0,0,0,10,100,97,
105,64,100,97,105,46,110,108,104,2,
100,0,12,110,97,109,101,95,115,117,
114,110,97,109,101,109,0,0,0,12,83,
99,104,101,114,112,101,110,105,115,
115,101,104,2,100,0,19,110,97,109,
101,95,115,117,114,110,97,109,101,95,
112,114,101,102,105,120,109,0,0,0,0,
104,2,100,0,10,110,97,109,101,95,102,
105,114,115,116,109,0,0,0,5,90,111,
116,111,110,105,99,104,2,100,0,5,116,
105,116,108,101,109,0,0,0,18,90,111,
116,111,110,105,99,32,83,99,104,101,
114,112,101,110,105,115,115,101,104,
2,100,0,13,112,114,101,102,95,108,97,
110,103,117,97,103,101,100,0,2,101,
110,104,2,100,0,12,100,97,116,101,95,
114,101,109,97,114,107,115,109,0,0,0,
0,104,2,100,0,8,115,101,111,95,100,
101,115,99,109,0,0,0,0,104,2,100,0,
12,115,101,111,95,107,101,121,119,
111,114,100,115,109,0,0,0,0,104,2,
100,0,11,99,117,115,116,111,109,95,
115,108,117,103,100,0,5,102,97,108,
115,101,104,2,100,0,9,115,101,111,95,
116,105,116,108,101,109,0,0,0,0,104,
2,100,0,11,115,101,111,95,110,111,
105,110,100,101,120,109,0,0,0,0,104,
2,100,0,4,98,111,100,121,109,0,0,0,0,
104,2,100,0,12,109,97,105,108,95,99,
111,117,110,116,114,121,109,0,0,0,0,
104,2,100,0,10,109,97,105,108,95,115,
116,97,116,101,109,0,0,0,0,104,2,100,
0,13,109,97,105,108,95,112,111,115,
116,99,111,100,101,109,0,0,0,0,104,2,
100,0,9,109,97,105,108,95,99,105,116,
121,109,0,0,0,0,104,2,100,0,13,109,
97,105,108,95,115,116,114,101,101,
116,95,50,109,0,0,0,0,104,2,100,0,13,
109,97,105,108,95,115,116,114,101,
101,116,95,49,109,0,0,0,0,104,2,100,
0,15,97,100,100,114,101,115,115,95,
99,111,117,110,116,114,121,109,0,0,0,
0,104,2,100,0,13,97,100,100,114,101,
115,115,95,115,116,97,116,101,109,0,
0,0,0,104,2,100,0,16,97,100,100,114,
101,115,115,95,112,111,115,116,99,
111,100,101,109,0,0,0,0,104,2,100,0,
12,97,100,100,114,101,115,115,95,99,
105,116,121,109,0,0,0,0,104,2,100,0,
16,97,100,100,114,101,115,115,95,115,
116,114,101,101,116,95,50,109,0,0,0,
0,104,2,100,0,16,97,100,100,114,101,
115,115,95,115,116,114,101,101,116,
95,49,109,0,0,0,0,104,2,100,0,7,119,
101,98,115,105,116,101,109,0,0,0,0,
104,2,100,0,15,112,104,111,110,101,
95,101,109,101,114,103,101,110,99,
121,109,0,0,0,0,104,2,100,0,9,112,
104,111,110,101,95,97,108,116,109,0,
0,0,0,104,2,100,0,5,112,104,111,110,
101,109,0,0,0,0,104,2,100,0,11,110,
97,109,101,95,109,105,100,100,108,
101,109,0,0,0,0,104,2,100,0,11,115,
104,111,114,116,95,116,105,116,108,
101,109,0,0,0,0,104,2,100,0,7,115,
117,109,109,97,114,121,109,0,0,0,0,
104,2,100,0,8,115,117,98,116,105,116,
108,101,109,0,0,0,0,106>>]},
{pgsql_binary,decode,3},
{pgsql_connection,decode_data,4},
{pgsql_connection,querying,2},
{gen_fsm,handle_msg,7},
{proc_lib,init_p_do_apply,3}]}
in function gen_fsm:terminate/7
ancestors: [dai,<0.133.0>,<0.130.0>,z_sites_manager,zotonic_sup,
<0.73.0>]
messages: [{'$gen_event',{67,<<83,69,76,69,67,84,32,49,0>>}},
{'$gen_event',{51,<<>>}},
{'$gen_event',{90,<<"I">>}}]
links: [<0.21326.14>,<0.32141.254>]
dictionary: []
trap_exit: true
status: running
heap_size: 2584
stack_size: 24
reductions: 45947
```