QUSIR / staff

Automatically exported from code.google.com/p/staff
Apache License 2.0
0 stars 0 forks source link

Axis2-unofficial crashes when trying to get a WSDLfile #222

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Start the server
2. Try to get a WSDL file
3.

What is the expected output? What do you see instead?
expected : Getting the WSDL file
result : nothing, server crash

What version of the product are you using? On what operating system?
Axis2C unofficial code from mercurial, Staff from SVN on Fedora 19 64 bits

Please provide any additional information below.

Original issue reported on code.google.com by davidb...@gmail.com on 7 Oct 2013 at 12:24

Attachments:

GoogleCodeExporter commented 9 years ago
This issue is related to axis2c-unofficial.

It was introduced in 5a45fe1784b5: 
https://code.google.com/p/axis2c-unofficial/source/detail?r=5a45fe1784b541b8cabb
255a1c49e5af7bd12495

To workaround roll-back to previous changeset, compile and install 
axis2c-unofficial by entering those commands:

hg up -rc1e885257106

make && make install

After that you shouldn't see crash.

Original comment by loentar on 12 Oct 2013 at 6:13

GoogleCodeExporter commented 9 years ago
I commited patch that fixes axis2c-unofficial, please update to latest 
changeset (77b54e8f4b2a).

Original comment by loentar on 12 Oct 2013 at 5:00

GoogleCodeExporter commented 9 years ago
Hi Dmitry, I tried to reproduce the crash but was unable to...

I've just looked at the last changeset, saw that you reverted the code that 
provoked the crash, but saw that you also made some other modifications in 
guththila_xml_parser.c I didn't had the time to analyse those modifications 
yet, does it still fix the issue of the modified buffer?

Original comment by alexmantaut on 12 Oct 2013 at 11:07

GoogleCodeExporter commented 9 years ago
Yes it fixes. Source buffer wouldn't get modified. Now Guththila only start 
unescaping symbols when you get element value or attribute value in the copy of 
the buffer.

To reproduce the issue see my description on 
https://issues.apache.org/jira/browse/AXIS2C-1628 . There is a test service 
which uses axiom_build_node_from_buffer.

One bad thing I see in your code: you allocating buffer using C runtime 
(strdup()), but deallocating it using Axis2c runtime (AXIS2_FREE() not free()). 
Not sure if it can cause problems.

This issue is not reproducible under valgrind (but reproducible under gdb). 
That means the problem could be a race condition. 

Original comment by loentar on 13 Oct 2013 at 8:08

GoogleCodeExporter commented 9 years ago
Hi Dmitry,

I couldn't reproduce the bug, not even with the tests attached to 
AXIS2C-1628... I compiled it with/without optimization and runned it alone, in 
gdb and valgrind and  the error did not ocurr in my pc :(
Either way, David can you confirm that the patch solved the issue for you? If 
it did I'll just commit the patch to trunk.

Original comment by alexmantaut on 15 Oct 2013 at 2:18