[luci] [LuCI] #76: LuCI is broken on OpenWrt trunk

LuciTrac trac at luci.subsignal.org
Thu Jul 30 04:46:58 CEST 2009


#76: LuCI is broken on OpenWrt trunk
-----------------------+----------------------------------------------------
 Reporter:  reporter   |        Owner:  jow     
     Type:  defect     |       Status:  assigned
 Priority:  blocker    |    Milestone:          
Component:  LuCI Base  |   Resolution:          
 Keywords:             |  
-----------------------+----------------------------------------------------

Comment(by jow):

 Thanks again! The problem is here:
 {{{
 read(6, "\0\0\5\270"..., 4)             = 4
 lseek(6, 233832512, SEEK_SET)           = 233832512
 }}}

 I think I know now what happens:
 - your system is big endian
 - OpenWrt was compiled with large file support
 - the corresponding call to lseek() in lmo_core.c is missing a cast to
 off_t
 - the offset is passed as uint32_t but with lfs off_t is defined as 64bit
 int

 The result is that the given offset value is misinterpreted and the
 library is unable to locate the string index table. I'll try to reproduce
 this on a big endian system now.

-- 
Ticket URL: <http://luci.subsignal.org/trac/ticket/76#comment:23>
LuCI <http://luci.subsignal.org/trac>
LuCI - Lua Configuration Interface


More information about the luci mailing list