shared lib issue


 
Thread Tools Search this Thread
Operating Systems HP-UX shared lib issue
# 1  
Old 12-15-2007
shared lib issue

im not good with this stuff but the app guys game to me with a problem with there c++ program on a new box, any ideas?


bin- ./qeng
Bus error (core dumped)
bin- ./gdb qeng core
Wildebeest is free software and you are welcome to distribute copies of
it under certain conditions; type "show copying" to see the conditions.
There is absolutely no warranty for Wildebeest; type "show warranty"
for details.

Hewlett-Packard Wildebeest 1.0 (based on GDB 4.16)
(built for PA-RISC 1.1 or 2.0 (narrow), HP-UX 11.00)
Copyright 1996, 1997 Free Software Foundation, Inc...
Core was generated by `qeng'.
Program terminated with signal 10, Bus error.

warning: The shared libraries were not privately mapped; setting a
breakpoint in a shared library will not work until you rerun the program.

#0 0xc0027ce0 in _fake_write () from /usr/lib/dld.sl
#0 0xc0027ce0 in _fake_write () from /usr/lib/dld.sl
(gdb) bt
#0 0xc0027ce0 in _fake_write () from /usr/lib/dld.sl
#1 0xc0016538 in init_deferred_plt () from /usr/lib/dld.sl
#2 0xc0018604 in form_load_graph () from /usr/lib/dld.sl
#3 0xc0018cdc in form_load_graph () from /usr/lib/dld.sl
#4 0xc00272e0 in finish_dld_main () from /usr/lib/dld.sl
#5 0xc002abbc in _dld_main () from /usr/lib/dld.sl
#6 0xa6c4 in __map_dld () from /u01/enum29i/system/bin/./qeng
# 2  
Old 12-15-2007
Quote:
Originally Posted by csaunders
im not good with this stuff but the app guys game to me with a problem with there c++ program on a new box, any ideas?
Use 'bt' to get a stack trace, unless you know where the problem occurred you're going to have a hard time tracking it down.
# 3  
Old 12-15-2007
Quote:
Originally Posted by porter
Use 'bt' to get a stack trace, unless you know where the problem occurred you're going to have a hard time tracking it down.
gdb) bt
#0 0xc0027ce0 in _fake_write () from /usr/lib/dld.sl
#1 0xc0016538 in init_deferred_plt () from /usr/lib/dld.sl
#2 0xc0018604 in form_load_graph () from /usr/lib/dld.sl
#3 0xc0018cdc in form_load_graph () from /usr/lib/dld.sl
#4 0xc00272e0 in finish_dld_main () from /usr/lib/dld.sl
#5 0xc002abbc in _dld_main () from /usr/lib/dld.sl
#6 0xa6c4 in __map_dld () from /u01/enum29i/system/bin/./qeng
# 4  
Old 12-15-2007
That looks like a problem with dynamic loading.

1.Have you built all shared libraries?

2. Are any of the shared libraries implemented in C++?

3. Did you use the same compiler on *all* modules, shared and application?

4. Have you tried "ldd"? Can this resolve all modules?

5. Please post "uname -a" of system. Is this 32 bit/64 bit, PA-RISC or Itanium?

Another feature of HPUX is that unless you are careful the build process won't warn you of unresolved dependencies.

Last edited by porter; 12-15-2007 at 05:13 PM..
# 5  
Old 12-17-2007
Quote:
Originally Posted by porter
That looks like a problem with dynamic loading.

1.Have you built all shared libraries?
not sure i can ask
2. Are any of the shared libraries implemented in C++?
ditto
3. Did you use the same compiler on *all* modules, shared and application? no

4. Have you tried "ldd"? Can this resolve all modules?
not sure can ask
5. Please post "uname -a" of system. Is this 32 bit/64 bit, PA-RISC or Itanium?
uname -a
HP-UX hpuxpit0 B.11.11 U 9000/800 3003499885 unlimited-user license

Another feature of HPUX is that unless you are careful the build process won't warn you of unresolved dependencies.
uname -a
HP-UX hpuxpit0 B.11.11 U 9000/800 3003499885 unlimited-user license
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Programming

Shared library with acces to shared memory.

Hello. I am new to this forum and I would like to ask for advice about low level POSIX programming. I have to implement a POSIX compliant C shared library. A file will have some variables and the shared library will have some functions which need those variables. There is one special... (5 Replies)
Discussion started by: iamjag
5 Replies

2. Shell Programming and Scripting

Shared File system- lib access issue

I have a C++ binary executable installed in a file system which is shared across multiple solaris boxes. When I start this executable from one of the boxes,I am able to start only 4 parallel instances and from the 5th instance onwards I am getting the following error. fatal: libdb2.so.1:... (2 Replies)
Discussion started by: prasperl
2 Replies

3. Linux

Permission denied issue on a Shared drive

Hi, I have 2 linux servers. One of them has a mount which I have mapped to a shared samba directory on the other server. Below will help you understand better. smb.conf on Server1: workgroup = WRKGRP netbios name = smbserver security = SHARE load printers = No default service = global... (11 Replies)
Discussion started by: satishrao
11 Replies

4. AIX

AIX 5.2 C++ shared object issue

Hi all, I am developing an application with two components. One "c" binary and one "C++" shared object. While execution, the shared object crashes out and core dump is created whenever "new" is executed. But if i use malloc this will work perfectly. I tried to use dbx. Below given was... (1 Reply)
Discussion started by: itssujith
1 Replies

5. Programming

Can I create a shared object by using an static lib?

for example, I have a static lib name liba.a it offers some interface such a1();a2(); but i do not have the source code of liba.a; If i would like to create a shared object, and offer the similar interface of a1 and a2; Is there a way to fulfill such requirement? thanks. (7 Replies)
Discussion started by: flost
7 Replies

6. Red Hat

ls: /lib/libattr.so.1: no version information available (required by /lib/libacl.so.1)

Hello, I'm experimenting a problem on my rh server. Red Hat Enterprise Linux AS release 3 (Taroon Update 8) 2.4.21-47.ELsmp #1 SMP i686 i686 i386 GNU/Linux It started with a segmentation fault on #id root To resolve it, I've installed coreutils-4.5.3-28.4.i386.rpm But, I... (6 Replies)
Discussion started by: gogol_bordello
6 Replies

7. HP-UX

Shared Library Issue HP UX

I have never seen this issue before, but here is what is happening. I link an executable against two dynamic mlib libraries veclib and lapack. We place a newer version of these libraries in a write only directory and point the shlib_path at that directory. When the executable runs, it gets a... (3 Replies)
Discussion started by: sambarusty
3 Replies

8. AIX

Shared memory issue

Hi friends.. Help to solve this issue... Is there any parameter setting to control or limit the size of the shared memory a process can attach for the below specified environment? The man pages says it can attach upto segments of size 2GB. But when our process (which also connects to... (0 Replies)
Discussion started by: sdspawankumar
0 Replies

9. UNIX for Advanced & Expert Users

Issue with shared object in AIX

Hi All, I have a problem with the shared objects setup in AIX. We have a customized shell written by the developers over here. When i issue a MQ Series command (mqsilist) it is giving the error as . All the commands making use of this libImbCmdLib.a.so is failing. But when executed in normal... (1 Reply)
Discussion started by: dhanamurthy
1 Replies

10. UNIX for Advanced & Expert Users

What happens when an exe/lib links to another shared one:

We build our code on all platforms Sol, Hp, Aix, Sgi & linux. Some base libraries have changed. All the dependent exe & lib which use those base libraries have changed in all platforms in terms of size/checksum or both except linux. No code has changed in these. We have a post utility... (8 Replies)
Discussion started by: vibhor_agarwali
8 Replies
Login or Register to Ask a Question