Export buffers borking?
Walter Vaughan
wvaughan at steelerubber.com
Fri Sep 7 12:59:40 PDT 2007
I'm working on an export (FreeBSD fp 5.0.14)
<screen shot>
rreport in malloc(): warning: recursive call
*** A filePro Error Has Occurred ***
On File: /usr/home/filepro/appl/filepro/PartsX
Out of memory.
</screen shot>
I see it's still running from another terminal and if I kill it the control
comes back to the original terminal.
PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND
34098 filepro 1 5 0 1428K 1316K ttyin 6 0:01 0.73% rreport
What's wierd is that this is not complex code, it just generates alot of text
<code>
If:
1 Then: export ascii dec=/tmp/ofbiz/productCategoryMemberPARTS_MAKE.xml
If: 6 eq ""
2 Then: end
If: 1 ne xh
3 Then: xh(4,*,g)=1;z=""
If: 'z co 6
4 Then: 'end
If:
5 Then: 'z(4000,,g)=z{6
xmlmake If:
6 Then: mk=mid(1,"1","4");m=""
If:
7 Then: m=m&"<ProductCategoryMember productCategoryId=\""{mk{"\" productId=
\""{6{"\""
If: 2 eq 3
8 Then: yr="<b>19"{2{"</b>"
If: 2 ne 3
9 Then: yr="<b>19"{2{"-"{3{"</b>"
If:
10 Then: lookup SecHead k=1 i=A -bx
If: SecHead(3) eq "D"
11 Then: sh=SecHead(2){","<SecHead(4)
If: SecHead(3) eq "S"
12 Then: sh=SecHead(2)
If:
13 Then: c=yr<sh<4{"<br>"
If: 5 ne ""
14 Then: c=c{"<div style=\"padding-left: 30px;\">"{5{"</div>"
If:
15 Then: c=TOHTML(c);sq(8,.0,g)=sq+"1"
If:
16 Then: m=m&" sequenceNum=\""{sq{"\""
If:
17 Then: m=m&" comments=\""{c{"\""
If:
18 Then: m=m&" fromDate=\"2001-05-13 12:00:00.0\""
If:
19 Then: m=m&" />"&chr("13")&chr("10")
decades If: 'set first decade fd and last decade ld
20 Then: fd=mid(2,"1","1");ld=mid(3,"1","1");mk=mid(1,"1","2")
If:
21 Then: n=""
dloop If:
22 Then: n=n&"<ProductCategoryMember productCategoryId=\"D19"{fd{"0"{mk{"\"
productId=\""{6{"\""
If:
23 Then: n=n&" comments=\""{c{"\""
If:
24 Then: n=n&" fromDate=\"2001-05-13 12:00:00.0\""
If:
25 Then: n=n&" />"&chr("13")&chr("10")
If: fd eq ld
26 Then: dec(1)=m&n;end
If: 'more decades
27 Then: fd=fd+"1";goto dloop
</code>
and it's writing out stuff
# ll productCategoryMemberPARTS_MAKE.xml
-rw-rw-rw- 1 filepro wheel 6578176 Sep 7 15:23
productCategoryMemberPARTS_MAKE.xml
What makes me crazy is tail always ends like this
<ProductCategoryMember productCategoryId="FD62" productId="20-1911-62"
sequenceNum="10170" comments="<b>1957-59</b> Bumpers, quarter window
lower stop. Replaces factory #B7A-7629986-A. Ford Retractable &
Convertible.<br>" fromDate="2001-05-13 12:00:00.0" />
<ProductCategoryMember productCategoryId="D1950FD" productId="20-1911-62"
comments="<b>1957-59</b> Bumpers, quarter window lower stop.
Replaces factory #B7A-7629986-A. Ford Retractable & Convertible.<br>"
fromDate="2001-05-13 1
...which looks like an unflushed buffer, since it's not a whole export record.
OH, the command line...
/appl/fp/rreport PartsX -f ofbiz -s ofbiz -u
More information about the Filepro-list
mailing list