small patch for tv

Dmitriy Budashny <>
Fri Oct 23 10:39:32 CEST 2009


My last letter was written w/o testing for other problems, I've found there
were other calls to lists:nthtail/2.
I've attached a new patch file in this letter

2009/10/22 Dmitriy Budashny <>

> Hi  there
> I've found some strange issue with tv while using stumpwm. tv was crashing
> while I was trying to load some table, so I got such output to my console:
> ### log begins here ###
> =ERROR REPORT==== 22-Oct-2009::16:31:05 ===
> Error in process <0.571.0> with exit value:
> {function_clause,[{lists,nthtail,[6,[]]},{tv_pg_gridfcns,resize_grid,3},{tv_pg,loop,1}]}
>
> Internal error... restarting.
> 10>
> =ERROR REPORT==== 22-Oct-2009::16:31:06 ===
> Error in process <0.578.0> with exit value:
> {function_clause,[{lists,nthtail,[6,[]]},{tv_pg_gridfcns,resize_grid,3},{tv_pg,loop,1}]}
>
> Internal error... restarting.
> ### log ends here ###
>
> So it continued restarting over and over again. The problem was with call
> to lists:nthtail(6,[]) which raised exception:
> ** exception error: no function clause matching lists:nthtail(6,[])
> So I've made small changes to tv_pg_gridfcns.erl file. Patch attached.
>
> --
> wbr, dym
>



-- 
wbr, dym
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-patches/attachments/20091023/b246ead5/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tv_pg_gridfcns.erl.patch
Type: application/octet-stream
Size: 2496 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-patches/attachments/20091023/b246ead5/attachment.obj>


More information about the erlang-patches mailing list