qa error with 8.1.4 on Solaris

Machine-specific discussion
Unix, Linux, OS X, OS/2, Windows, ..?
Locked
HPW
Posts: 1390
Joined: Thu Sep 26, 2002 9:15 am
Location: Germany
Contact:

qa error with 8.1.4 on Solaris

Post by 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:
...
...
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
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post by Lutz »

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
Posts: 1390
Joined: Thu Sep 26, 2002 9:15 am
Location: Germany
Contact:

Post by HPW »

>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
Posts: 1390
Joined: Thu Sep 26, 2002 9:15 am
Location: Germany
Contact:

Post by HPW »

I have isolated the problem a bit:
Note the spave between 'value'> </hello>

On WIN:
> (xml-parse "<hello att='value'></hello>")
(("ELEMENT" "hello" (("att" "value")) ()))
> (xml-parse "<hello att='value'> </hello>")
(("ELEMENT" "hello" (("att" "value")) (("TEXT" " "))))
On SUN:
(xml-parse "<hello att='value'></hello>")
without space it crashes
(xml-parse "<hello att='value'> </hello>")
(("ELEMENT" "hello" (("att" "value")) (("TEXT" " "))))
Hans-Peter

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post by Lutz »

Thanks, that will help to find the problem

Lutz

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post by Lutz »

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
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post by Lutz »

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

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


Lutz

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post by Lutz »

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

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


Lutz

HPW
Posts: 1390
Joined: Thu Sep 26, 2002 9:15 am
Location: Germany
Contact:

Post by HPW »

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

HPW
Posts: 1390
Joined: Thu Sep 26, 2002 9:15 am
Location: Germany
Contact:

Post by HPW »

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

qa passed for Sparc !
Hans-Peter

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post by Lutz »

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

Lutz

HPW
Posts: 1390
Joined: Thu Sep 26, 2002 9:15 am
Location: Germany
Contact:

Post by HPW »

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

Code: Select all

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
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post by Lutz »

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

Locked