Seg fault

0 views
Skip to first unread message

rellik

unread,
Apr 15, 2007, 2:45:35 AM4/15/07
to MOle Plugin
Got this seg fault tonight:

### Console output ###
http://192.168.1.200:3000/ -> /mole/refresh
/usr/lib/ruby/1.8/yaml.rb:133: [BUG] Segmentation fault
ruby 1.8.4 (2005-12-24) [i486-linux]

/usr/lib/ruby/1.8/yaml.rb:133: [BUG] Segmentation fault
ruby 1.8.4 (2005-12-24) [i486-linux]

Aborted (core dumped)
### End ###

the log file doesn't show any errors.

When I restart the server, it segfaults on the first request, adding
nothing to the development log.

To fix this issue, I deleted these two entries from my mole_log table:

### 2x Database Entries ###
| 27 | 4 | 6 | ---
:my_foo: "#<RequestsController:0xb75d15e4 @foo=\"FOO\",
@menu=[[[\"Administration\"], [[\"schools\", \"index\", \"Schools\"],
[\"users\", \"index\", \"Users\"], [\"grant_types\", \"index\",
\"Grant Types\"], [\"system\", \"options\", \"System Options |
2007-04-15 01:19:12 | 2007-04-15 01:19:12 |
| 28 | 4 | 6 | ---
:my_foo: "#<RequestsController:0xb7535ec8 @foo=\"FOO\",
@menu=[[[\"Administration\"], [[\"schools\", \"index\", \"Schools\"],
[\"users\", \"index\", \"Users\"], [\"grant_types\", \"index\",
\"Grant Types\"], [\"system\", \"options\", \"System Options |
2007-04-15 01:19:21 | 2007-04-15 01:19:21 |
### End ###

It seems that those both had long lines in them
(:args=>context.inspect), which had gotten cut off due to size-
limitations in the table.

Fernand Galiana

unread,
Apr 15, 2007, 3:39:10 AM4/15/07
to mole-...@googlegroups.com
Hum... Interesting. By default the params col in the mole_logs table is
255 chars.

If you are dumping results from inspect ( although I would not advise... )
you will need to bump this quiet a bit so that this column will be correctly
persisted.

I'll make a note to trap this condition...

-Fernand

rellik

unread,
Apr 15, 2007, 3:47:21 AM4/15/07
to MOle Plugin
I was just absent-mindedly using #inspect to try and debug the
instance_variable_get() error when I came across this. Would hate for
someone to get the segfault and be unable to figure it out, so they
were just sitting there with no mole :)

But yes, I completely agree that 255 is probably reasonable, due to
the small type and line-length.


On Apr 15, 2:39 am, "Fernand Galiana" <fernand.gali...@gmail.com>
wrote:


> Hum... Interesting. By default the params col in the mole_logs table is
> 255 chars.
>
> If you are dumping results from inspect ( although I would not advise... )
> you will need to bump this quiet a bit so that this column will be correctly
> persisted.
>
> I'll make a note to trap this condition...
>
> -Fernand
>

> On 4/15/07, rellik <patrick.schl...@gmail.com> wrote:
>
>
>
> > Got this seg fault tonight:
>
> > ### Console output ###

> >http://192.168.1.200:3000/-> /mole/refresh

Reply all
Reply to author
Forward
0 new messages