- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Debugging a program, error with XMapWindow functi...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-05-2009 07:45 AM
тАО05-05-2009 07:45 AM
Debugging a program, error with XMapWindow function.
The program crashes and when I'm debugging it resturns me the following messege in the line which causes the failure.
Program received signal SIGBUS, Bus error.
0x7adf99a8 in XMapWindow () from /usr/lib/X11R6/libX11.3
I have been trying to find the line where the function XMapWindow is called. But after a long search under the call from one c file to another I have not get anything.
The probles is located in a function called ZtDo but in the body of this function I have not found the XMapWindow.
Anyone could give a clue about how to search the problem?
I Know I am not very especific, but I can't access to the body of the function with the debugger.
I link the function code here if it can help.
Thanks!
- Tags:
- SIGBUS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-05-2009 05:28 PM
тАО05-05-2009 05:28 PM
Re: Debugging a program, error with XMapWindow function.
Have you compiled with -g? That should give the line number.
>The problem is located in a function called ZtDo but in the body of this function I have not found the XMapWindow.
Perhaps there is an evil macro that expands to XMapWindow?
Compile with -E and save stdout.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-06-2009 03:04 AM
тАО05-06-2009 03:04 AM
Re: Debugging a program, error with XMapWindow function.
>Have you compiled with -g? That should give the line number.
It was compiled with -g? but the call and I dont Know why, but I can not access to the code of the ZtDo function in debugging mode.
The trace is the following.
Debuggind fist at all the program ivibuild calls to a funci├Г┬│n DzRestoreStatWindow()
This function has the body in the liberror.c
and the problems and the line in CDzRestoreStatWindow() who causes de failure is the following "rtn &= CustomStatText(MsgWinID);"
CustomStatText is called in othe program called libIVI. and calls the following function "DzFByObjName(baseObject, objName)" and this function is in other program statwidow.c
An in this last function is where is called the ZtDo function from do.c, but the debugger does not open do.c and I cant follow with the search.
When I do a a new compilation of do.c with -E I haven't found any XMapWindow function.
It's so confusing.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-06-2009 11:56 AM
тАО05-06-2009 11:56 AM
Re: Debugging a program, error with XMapWindow function.
Any particular messages?
What compiler version are you using? What gdb version?
>The trace is the following.
Please provide the gdb bt output.
>And in this last function is where is called the ZtDo function from do.c, but the debugger does not open do.c
You can use the "dir" command to add the source path.
>When I do a a new compilation of do.c with -E I haven't found any XMapWindow function.
Then one way of calling XMapWindow would be through a pointer to a function, an indirect call.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-07-2009 11:40 PM
тАО05-07-2009 11:40 PM
Re: Debugging a program, error with XMapWindow function.
I upload a txt where are all the messeges the gdb returns in the debugging process.
>Please provide the gdb bt output.
I don't know what is the gdb bt output. I hope it were the file I have uploaded.
>Then one way of calling XMapWindow would be through a pointer to a function, an indirect call.
I'm thinking about the call to the ZtDo function, this function comes from another libary, and the parameter of the function call could be mistaken.
ZtDo(MsgWinID,ZtUPDATE,NULL);
ZtUPDATE parametes comes from extern and I thinks is possible that this parameter cotains data that could provoque the error.
Thank you for your time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-08-2009 08:18 AM
тАО05-08-2009 08:18 AM
Re: Debugging a program, error with XMapWindow function.
You execute the "bt" command to get a stack trace.
You are also using an obsolete gdb, the latest is 6.0. You can download it from:
http://www.hp.com/go/wdb
- Tags:
- gdb