9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] xls2txt
@ 2005-04-24  9:16 Lucio De Re
  2005-04-25 17:33 ` Steve Simon
  0 siblings, 1 reply; 4+ messages in thread
From: Lucio De Re @ 2005-04-24  9:16 UTC (permalink / raw)
  To: 9fans

Thanks to Steve Simon for what has to be one of the most useful tools
in the Plan 9 toolbox.

It does fail on the random spreadsheet I chose, but I think the
problem lies elsewhere (floating point library, probably).

Here is the acid report on msexceltables.  I haven't tried to identify
the value that caused the crash, but I'm sure the formatting library
ought to be more robust.  Not that I have ever worked with floating
point libraries myself, I wouldn't know where to start looking for
this type of problem.

The error context:

354                                               Analogue       
355                                               Analogue       
356       'Fax 4251438'        'Ex Trace Team'           'Admin Dept'          msexceltables 83834: suicide: sys: fp: stack underflow fppc=0x14d3 status=0xc0a1 pc=0x000012c1
cpu% 

The source code context:

	if (fmt == 9)
		snprint(buf, sizeof(buf),"%.0f%%", num);
	else

cpu% acid 83834
/proc/83834/text:386 plan 9 executable

/sys/lib/acid/port
/sys/lib/acid/386
acid: lstk()
numfmt(num=0x9999999a,fmt=0x9,min=0xe,max=0xffffffff)+0x7c /sys/src/cmd/aux/msexceltables.c:171
	buf=0x32313234
dump()+0x28a /sys/src/cmd/aux/msexceltables.c:241
	r=0x1b490
	c=0x1b550
	min=0xe
	max=0xffffffff
	i=0x3
eof()+0xd7 /sys/src/cmd/aux/msexceltables.c:584
	names=0x5
	i=0x0
xls2csv(bp=0xed58)+0x164 /sys/src/cmd/aux/msexceltables.c:674
	dispatch=0xa
	biff=0xed58
	b=0x7fffae98
	i=0x0
main(argv=0x7fffef98,argc=0x1)+0xf8 /sys/src/cmd/aux/msexceltables.c:725
	_argc=0x0
	_args=0x0
	bout=0x0
	i=0x0
	bp=0xed58
	bin=0x0
_main+0x31 /sys/src/libc/386/main9.s:16
acid: 



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-04-28 17:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-24  9:16 [9fans] xls2txt Lucio De Re
2005-04-25 17:33 ` Steve Simon
2005-04-28 16:46   ` rog
2005-04-28 17:22     ` rog

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).