- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- Operating System - Tru64 Unix
- >
- Re: Problem with memcpy
Operating System - Tru64 Unix
1753975
Members
7476
Online
108811
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Not applicable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2008 08:01 PM
тАО12-10-2008 08:01 PM
Problem with memcpy
Hi,
I am facing a very strange problem with memcpy function in our C code under our build environment.
Just to give a brief history, our build system got crashed a while ago (2 months) and now we setup a new build system with same software installed of aprox. of same version as prior to crash.
Now when we build the image, image build is successfull with no errors but image is behaving abnormally. When I tried to run the debug image it is running successfully. Then I tried to put Trace-logs within the code to find where the image is failing and i figured out: memcpy is copying 1 less character from source to destination.
Could you please help me at what should i try to look at to fix this problem.
We are running Tru64 UNIX 5.1 OS and making use of GNU make to build the image. Major code is written in C.
Please let me know if any further information is requried.
Regards,
ajaydec
I am facing a very strange problem with memcpy function in our C code under our build environment.
Just to give a brief history, our build system got crashed a while ago (2 months) and now we setup a new build system with same software installed of aprox. of same version as prior to crash.
Now when we build the image, image build is successfull with no errors but image is behaving abnormally. When I tried to run the debug image it is running successfully. Then I tried to put Trace-logs within the code to find where the image is failing and i figured out: memcpy is copying 1 less character from source to destination.
Could you please help me at what should i try to look at to fix this problem.
We are running Tru64 UNIX 5.1 OS and making use of GNU make to build the image. Major code is written in C.
Please let me know if any further information is requried.
Regards,
ajaydec
- Tags:
- memcpy
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2008 09:01 PM
тАО12-10-2008 09:01 PM
Re: Problem with memcpy
> Please let me know if any further
> information is requried.
How about a failing test program? My psychic
powers are too weak to tell me what's wrong
with your code if I can't see the code, how
you built it, or how you ran it. One guess:
"man memcpy":
[...]
The memcpy() function copies n bytes from the string pointed to by the s2
parameter into the location pointed to by the s1 parameter. When copying
overlapping strings, the behavior of this function is unreliable.
[...]
Does "unreliable" sound like what you're
seeing?
> We are running Tru64 UNIX 5.1 OS [...]
Actual output from, say, "sizer -v" would be
more trustworthy than anything you say.
> [...] GNU make [...]
That's probably the _least_ important thing
about how the program was compiled or linked.
> information is requried.
How about a failing test program? My psychic
powers are too weak to tell me what's wrong
with your code if I can't see the code, how
you built it, or how you ran it. One guess:
"man memcpy":
[...]
The memcpy() function copies n bytes from the string pointed to by the s2
parameter into the location pointed to by the s1 parameter. When copying
overlapping strings, the behavior of this function is unreliable.
[...]
Does "unreliable" sound like what you're
seeing?
> We are running Tru64 UNIX 5.1 OS [...]
Actual output from, say, "sizer -v" would be
more trustworthy than anything you say.
> [...] GNU make [...]
That's probably the _least_ important thing
about how the program was compiled or linked.
Not applicable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-04-2009 01:01 AM
тАО03-04-2009 01:01 AM
Re: Problem with memcpy
Thanks a lot for your time and efforts.
Problem got resolved after i upgrade my C compiler to the latest version.
Regards,
ajaydec
Problem got resolved after i upgrade my C compiler to the latest version.
Regards,
ajaydec
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP