Photon lib segmentation violation

QNX 6.2 with photon application gives me random segmentation violation at
PtEventHandler. The back trace looks like below:

PtEventHandler from libph.so.2
PtAppProcessEvent from libph.so.2
PtAppMainLoop from libph.so.2
PtMainLoop from libph.so.2
photonLoop from guimgr.cpp

What can cause this random problem?

Janusz Ruszel

Janusz Ruszel <janusz_ruszel@baxter.com> wrote:

QNX 6.2 with photon application gives me random segmentation violation at
PtEventHandler. The back trace looks like below:

PtEventHandler from libph.so.2
PtAppProcessEvent from libph.so.2
PtAppMainLoop from libph.so.2
PtMainLoop from libph.so.2
photonLoop from guimgr.cpp

What can cause this random problem?

It’s hard to tell. Except for the photonLoop part, the above could
describe the state that pretty much every app goes through every time it
receives a Photon event. Perhaps your heap is corrupted?

Does this application ever call PtSyncPhoton()?

The guimgr.cpp application does not call PtSyncPhoton() directly. It calls a
lot of Create and Destroy widgets.
Janusz Ruszel.

“Wojtek Lerch” <wojtek_l@yahoo.ca> wrote in message
news:bdpvd0$sa5$1@inn.qnx.com

Janusz Ruszel <> janusz_ruszel@baxter.com> > wrote:
QNX 6.2 with photon application gives me random segmentation violation
at
PtEventHandler. The back trace looks like below:

PtEventHandler from libph.so.2
PtAppProcessEvent from libph.so.2
PtAppMainLoop from libph.so.2
PtMainLoop from libph.so.2
photonLoop from guimgr.cpp

What can cause this random problem?

It’s hard to tell. Except for the photonLoop part, the above could
describe the state that pretty much every app goes through every time it
receives a Photon event. Perhaps your heap is corrupted?

Does this application ever call PtSyncPhoton()?

Janusz Ruszel wrote:

The guimgr.cpp application does not call PtSyncPhoton() directly. It calls a
lot of Create and Destroy widgets.
Janusz Ruszel.

Not that I can recall myself, but does the guimgr have more that one
thread which calls photon calls? And if so, failing to lock it properly
would probably cause segv’s.

Rick…


Rick Duff Internet: rick@astranetwork.com
Astra Network QUICS: rgduff
QNX Consulting and Custom Programming URL: http://www.astranetwork.com
+1 (204) 987-7475 Fax: +1 (204) 987-7479