bugCERTI - Bugs: bug #30989, PyHLA UAV demo app crashes after...

 
 

bug #30989: PyHLA UAV demo app crashes after 1204 updates

Submitted by:  John Kimball <jkimball>
Submitted on:  Tue 07 Sep 2010 04:22:40 PM UTC  
 
Category: PyHLASeverity: 5 - Blocker
Item Group: Software errorStatus: Ready For Test
Privacy: PublicAssigned to: Petr Gotthard <gotthardp>
Open/Closed: ClosedRelease: 3.3.3
Reproducibility: Every TimeFixed Release: 3.4.0

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission Jump to the original submission)

Fri 19 Nov 2010 02:24:46 PM UTC, comment #10:

Fixed in PyHLA 1.1.0

Petr Gotthard <gotthardp>
Project MemberIn charge of this item.
Sun 17 Oct 2010 03:40:24 PM UTC, comment #9:

Hi All!

It worked! This crash bug is really fixed!

The problem was with "install_manifest.txt" generated by cmake ...

Rather than build each sentence on a single line:
"/usr/lib/python2.6/dist-packages/hla/__init__.py"

Cmake inserts a "Line-Feed" on each line before hla directory:
"/usr/lib/python2.6/dist-packages^J/hla/__init__.py"

Then, PyHLA files were installed on the wrong place.

-------------------------------------------------------
odracir@nbi5lenovo:/usr/lib/python2.6$ pwd
/usr/lib/python2.6
odracir@nbi5lenovo:/usr/lib/python2.6$ tree ./dist-packages?
./dist-packages^J
`-- hla
|-- _init_.py
|-- omt
| |-- array.py
| |-- basic.py
| |-- enumerated.py
| |-- _init_.py
| `-- record.py
|-- _omt.so
|-- rti
| `-- _init_.py
`-- _rti.so

-------------------------------------------------------

Moving directory "hla" from "/usr/lib/python2.6/dist-packages^J/" to "/usr/lib/python2.6/dist-packages" makes it work!

Thank you very much!

Odracir Antunes Jr. <odracir>
Sat 16 Oct 2010 02:19:10 AM UTC, comment #8:

I've tried what you suggested (PyHLA-1.1.0-Source.tar.gz), but unfortunately I could not make it work properly. (Fatal Python error: deallocating None -> again!)
I think that my system migth be broken in some way ...
Next Monday I'm going to try again on another system installed from scratch.

Thank you very much for your quick replies.

Odracir Antunes Jr. <odracir>
Fri 15 Oct 2010 03:29:23 PM UTC, comment #7:

Hello all;

I agree that my original bug has been fixed.

Previously a print sys.getrefcount(None) statement before the rtia.tick(1.0, 1.0) in uav-send.py produced decreasing reference counts, and the program crashed when the reference count approached zero.

Now with both the CVS HEAD and release 1.1.0 I get a constant reference count and no crash.

I'm using Python 2.6.6 on Windows XP Professional x64 with SP2.

Thanks Petr.

John Kimball <jkimball>
Fri 15 Oct 2010 09:15:42 AM UTC, comment #6:

Hello,
the "deallocating None" crash is a pure Python issue, so CERTI version you use doesn't matter, but please check you're really using latest PyHLA. John confirmed that the newly released PyHLA 1.1.0 doesn't suffer from this bug, latest CVS HEAD version is also fine.
http://download.savannah.gnu.org/releases/certi/contrib/PyHLA

Petr

Petr Gotthard <gotthardp>
Project MemberIn charge of this item.
Thu 14 Oct 2010 10:14:35 PM UTC, comment #5:

Hi All,

I'm not able to reproduce the problem
here.
I'm using CERTI CVS and PyHLA CVS as of now.

Python 2.6.5
gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5)
Ubuntu 10.04 with 2.6.32-22-generic

I did slightly modified uav-send.py in order to
see evolution in uav-receive.py:
REFLECT (1, 2, 3)
REFLECT 4085.13989258
REFLECT text
REFLECT (1, 2, 3)
REFLECT 4086.13989258
REFLECT text
...

I attach the modified file to the tracker.

(file #21679)

Eric NOULARD <erk>
Project Administrator
Thu 14 Oct 2010 07:08:48 PM UTC, comment #4:

The demo application still crashes ...
I am using: CERTI RTIG 3.4.0cvs and PyHLA from CVS (CVS checkout at 10/14/2010)
Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56)
gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5)
Kubuntu Linux 2.6.32-25-generic #44-Ubuntu SMP Fri Sep 17 20:26:08 UTC 2010 i686 GNU/Linux
=============================================
$ python uav-send.py
Create ambassador
<rti.RTIAmbassador object at 0xb77c3140>
Federation already exists.
PROVIDE UAV (<__main__.MyAmbassador object at 0x8f3be14>, <rti.ObjectHandle=1>, ())
Fatal Python error: deallocating None
RTIA:: RTIA has thrown NetworkError exception.
RTIA:: Reason: Connection closed by client.

RTIA: Statistics (processed messages)
List of federate initiated services
--------------------------------------------------
Abortado
1 Message::OPEN_CONNEXION (MSG#1)
1 Message::JOIN_FEDERATION_EXECUTION (MSG#5)
1 Message::PUBLISH_OBJECT_CLASS (MSG#29)
1 Message::REGISTER_OBJECT_INSTANCE (MSG#41)
1010 Message::UPDATE_ATTRIBUTE_VALUES (MSG#42)
1 Message::GET_OBJECT_CLASS_HANDLE (MSG#113)
3 Message::GET_ATTRIBUTE_HANDLE (MSG#115)
1009 Message::TICK_REQUEST (MSG#142)
1 Message::TICK_REQUEST_NEXT (MSG#143)

List of RTI initiated services
--------------------------------------------------
1 NetworkMessage::PROVIDE_ATTRIBUTE_VALUE_UPDATE (MSG#84)

Number of Federate messages : 2028
Number of RTIG messages : 1
TCP Socket 3 : total = 88115 Bytes sent
TCP Socket 3 : total = 47889 Bytes received
UDP Socket 5 : total = 0 Bytes sent
UDP Socket 5 : total = 0 Bytes received

Odracir Antunes Jr. <odracir>
Mon 04 Oct 2010 09:24:08 PM UTC, comment #3:

Now it's really fixed. :-)

Petr Gotthard <gotthardp>
Project MemberIn charge of this item.
Tue 14 Sep 2010 03:30:44 PM UTC, comment #2:

The demo application still crashes after 1203 updates.

John Kimball <jkimball>
Fri 10 Sep 2010 09:08:23 PM UTC, comment #1:

The bug should be fixed now in CVS. I forgot to do Py_INCREF before returning Py_None values.

Petr Gotthard <gotthardp>
Project MemberIn charge of this item.
Tue 07 Sep 2010 04:22:40 PM UTC, original submission:

I'm using CERTI 3.3.3, with PyHLA 1.0.0, and Python 2.6.6 on Windows XP Professional x64 with SP2

The uav-send demo application runs 1203 updates and then python crashes.

The uav-send application writes the following to the console:
Fatal Python error: deallocating None

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

A Windows message box pops up with the following:
python.exe has encounted a problem and needs to close...

The uav-receive application simply stops updating.

John Kimball <jkimball>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #21679:  uav-send.py added by erk (2KiB - text/x-python - Modified PyHLA sedn)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by erk (Updated the item)
  • -unavailable- added by odracir (Posted a comment)
  • -unavailable- added by gotthardp (Updated the item)
  • -unavailable- added by jkimball (Submitted the item)
  • -unavailable- added by jkimball
  •  

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 8 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 19 Nov 2010 02:24:46 PM UTCgotthardpOpen/ClosedOpen=>Closed
    Thu 14 Oct 2010 10:14:35 PM UTCerkAttached File-=>Added uav-send.py, #21679
    Mon 04 Oct 2010 09:24:08 PM UTCgotthardpStatusIn Progress=>Ready For Test
    Wed 15 Sep 2010 09:17:05 AM UTCgotthardpStatusReady For Test=>In Progress
    Fri 10 Sep 2010 09:08:23 PM UTCgotthardpStatusNone=>Ready For Test
      Fixed ReleaseUnknown=>3.4.0
    Tue 07 Sep 2010 04:27:04 PM UTCgotthardpAssigned toNone=>gotthardp
    Tue 07 Sep 2010 04:22:40 PM UTCjkimballCarbon-Copy-=>Added gotthardp

    Back to the top


    Powered by Savane 3.1-cleanup1