-
malloc problem
Hi all,
Suppose there are two HPUX systems A and B. In A i have created a
shared library. I am able to use this shared library in A with all
programs. If i send this shared library to B using FTP, and the same
programs which worked in A are failing in B when using this shared
library. A core is being dumped.
A : HPUX 11.00
B : HPUX 11.11
The only difference in both the systems is the c compiler used. In A, a
normal cc-ANSI compliant c compiler is used. Whereas in B a bundled C
compiler is used. Will this be a problem. I checked the core dump that
was generated in B, it says the malloc of some function call failed.
Can any one tell what can be the problem.
Thank you,
Naveen
-
Re: malloc problem
"Naveen" <svpnaveen@gmail.com> writes:
[color=blue]
> Suppose there are two HPUX systems A and B. In A i have created a
> shared library. I am able to use this shared library in A with all
> programs. If i send this shared library to B using FTP,[/color]
Presumably using binary transfer mode ...
[color=blue]
> and the same
> programs which worked in A are failing in B when using this shared
> library. A core is being dumped.[/color]
What is the output from "where" command in gdb ?
[color=blue]
> I checked the core dump that
> was generated in B, it says the malloc of some function call failed.[/color]
Post *exact* error message.
Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
-
Re: malloc problem
Paul Pluzhnikov <ppluzhnikov-nsp@charter.net> wrote:[color=blue]
> "Naveen" <svpnaveen@gmail.com> writes:[color=green]
>> Suppose there are two HPUX systems A and B. In A i have created a
>> shared library. I am able to use this shared library in A with all
>> programs. If i send this shared library to B using FTP,[/color][/color]
[color=blue]
> Presumably using binary transfer mode ...[/color]
Thankfully, binary is the default for HP-UX to HP-UX FTP.
When FTP creates the file on the other end, it is, likely as not, just
a "plain" file in so far as the mode bits are concerned, which means
the shared library may not be marked as "executable" on system B.
rick jones
--
The computing industry isn't as much a game of "Follow The Leader" as
it is one of "Ring Around the Rosy" or perhaps "Duck Duck Goose."
- Rick Jones
these opinions are mine, all mine; HP might not want them anyway... :)
feel free to post, OR email to rick.jones2 in hp.com but NOT BOTH...
-
Re: malloc problem
Since there is 2 fold differences here, OS version and compiler
version/type, it can head eaither way.
Giving the compiler version would help.
Better yet, if you have a SW contract with HP, they have an amazing set of
DML support crew that can chew that up for you very quickly from the core
you have. Sometimes having another person take a look at it makes a huge
difference.
Good luck. Call HP: 1-800-633-3600 - say "Agent" and ask for the DML team.
"Naveen" <svpnaveen@gmail.com> wrote in message
news:1160385456.281445.270710@h48g2000cwc.googlegroups.com...[color=blue]
> Hi all,
>
> Suppose there are two HPUX systems A and B. In A i have created a
> shared library. I am able to use this shared library in A with all
> programs. If i send this shared library to B using FTP, and the same
> programs which worked in A are failing in B when using this shared
> library. A core is being dumped.
> A : HPUX 11.00
> B : HPUX 11.11
>
> The only difference in both the systems is the c compiler used. In A, a
> normal cc-ANSI compliant c compiler is used. Whereas in B a bundled C
> compiler is used. Will this be a problem. I checked the core dump that
> was generated in B, it says the malloc of some function call failed.
> Can any one tell what can be the problem.
>
> Thank you,
> Naveen
>[/color]