qa error with 8.1.4 on Solaris

Started by HPW, August 23, 2004, 02:23:55 AM

Previous topic - Next topic

HPW

Back in the office I compiled the latest 8.1.4 on our host with SunOS 5.9 Generic.



No problem with compile.

But when I run 'qa' it throw this error:


Quote
...

...

testing-> write-line...



testing-> xml-error

testing-> Bus Error(coredump)


Then I am back at the command-prompt and there is a new dump-file.

On WIN 'qa' run fine. From the log, it seems that it crashes on 'xml-parse'.
Hans-Peter

Lutz

#1
Its hard to say whats going on here. newLISP always passes this test on Solaris x86, so I guess that your are running on a Sparc CPU? If I could get access to a Sparc I could debug this, but without it, it is difficult.





Lutz

HPW

#2
>so I guess that your are running on a Sparc CPU?



Yes, our host is a 8 processor mashine.



>If I could get access to a Sparc I could debug this, but without it, it is difficult.



In the moment no problem, as long as it runs our scripts there.





PS: Luis has also a problem with xml-parse from qa on the WINCE-port.
Hans-Peter

HPW

#3
I have isolated the problem a bit:

Note the spave between 'value'> </hello>



On WIN:
Quote
> (xml-parse "<hello att='value'></hello>")

(("ELEMENT" "hello" (("att" "value")) ()))

> (xml-parse "<hello att='value'> </hello>")

(("ELEMENT" "hello" (("att" "value")) (("TEXT" " "))))


On SUN:
Quote
(xml-parse "<hello att='value'></hello>")

without space it crashes

(xml-parse "<hello att='value'> </hello>")

(("ELEMENT" "hello" (("att" "value")) (("TEXT" " "))))
Hans-Peter

Lutz

#4
Thanks, that will help to find the problem



Lutz

Lutz

#5
I stepped through the code with a source level debugger, trying to catch something 'fishy', but no luck so far, trying the code with and without the space.



I wonder if this alone does get the problem on the Sparc machine:



(xml-parse "<hello></hello>")



or if the attribute tag inside the 'hello' tag is necessary.



Lutz

Lutz

#6
I put a new nl-xml.c in http://newlisp.org/downloads/development/">http://newlisp.org/downloads/development/



this might solve the crash problem un Sun Sparc with xml-parse





Lutz

Lutz

#7
I put a new nl-xml.c in http://newlisp.org/downloads/development/">http://newlisp.org/downloads/development/



this might solve the crash problem un Sun Sparc with xml-parse.





Lutz

HPW

#8
When I am back in the office next morning, I will make the test.
Hans-Peter

HPW

#9
Just tested it, and now it runs through without problems.



qa passed for Sparc !
Hans-Peter

Lutz

#10
Great news! I hope we hear the same from the PocketPC.



Lutz

HPW

#11
The new 8.1.5 qa test gives me the following on solaris:



TESTING FINISHED WITH ERRORS:                    
                                                 
>>>> net-accept failed nil                        
>>>> net-close failed nil                        
>>>> net-connect failed nil                      
>>>> net-error failed nil                        
>>>> net-listen failed nil                        
>>>> net-local failed nil                        
>>>> net-peek failed nil                          
>>>> net-peer failed nil                          
>>>> net-receive failed nil                      
>>>> net-select failed nil                        
>>>> net-send failed nil                          
>>>> net-sessions failed nil                      
process and functions using it while testing, like
pipe and some udp functions, are not tested      
test using: ./newlisp qa ext                      
read the header of this file for more info        
                                                 
true


It makes no diffenrence with/without the ext-toggle.



So



newlisp qa



and



newlisp qa ext



produce the same error!
Hans-Peter

Lutz

#12
My tests with 8.1.5 on both Solaris on x86 and Solaris on Sparc are running fine. Most likely something different is going on here, like not having permissions to use certain ports or something similar.



Net working routines are now tested by default and do need no enabling via the ext option.



Lutz