HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: strftime() causes SIGBUS, Bus error
Operating System - HP-UX
1837791
Members
3083
Online
110120
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
Forums
Discussions
Discussions
Discussions
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
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2000 05:27 AM
01-05-2000 05:27 AM
strftime() causes SIGBUS, Bus error
In HP-UX 11.00.01, strftime() causes SIGBUS violation sometimes.
There are about 12 places where this function was used in the product, and
about 4 of them have been found to be malfunctioning. The same code was
perfectly ok on HP-UX 10.20, so chances of any memory/storage problems are not
there.
Also not sure if this is related to the context switching problem.
gdb stack back trace was used to track the bug.
------------------------------------------------
Program received signal SIGBUS, Bus error.
0x148a8c in __strftime_std () from slpi_sce_sample
(gdb) bt
#0 0x148a8c in __strftime_std () from slpi_sce_sample
#1 0xc0192fec in _strftime () from /usr/lib/libc.2
#2 0x10bd98 in bcd_enc_DateAndTime () from slpi_sce_sample
------------------------------------------------
P.S Are there any alternatives to this function call?
There are about 12 places where this function was used in the product, and
about 4 of them have been found to be malfunctioning. The same code was
perfectly ok on HP-UX 10.20, so chances of any memory/storage problems are not
there.
Also not sure if this is related to the context switching problem.
gdb stack back trace was used to track the bug.
------------------------------------------------
Program received signal SIGBUS, Bus error.
0x148a8c in __strftime_std () from slpi_sce_sample
(gdb) bt
#0 0x148a8c in __strftime_std () from slpi_sce_sample
#1 0xc0192fec in _strftime () from /usr/lib/libc.2
#2 0x10bd98 in bcd_enc_DateAndTime () from slpi_sce_sample
------------------------------------------------
P.S Are there any alternatives to this function call?
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2000 02:45 AM
01-06-2000 02:45 AM
Re: strftime() causes SIGBUS, Bus error
Hi,
From my experience, I can say that what causes
sigbus or sigsegv is not necessary the portion of
code that was executed at the time the process
was killed. It actually can be far away.
Depending on the OS and compiler, ie the way the
memory is managed, an error in a program can rise
as a fault or remain hidden.
You can try to replace those calls with some others,
from a library, and see if you still have the problem.
There is a commercial software called purify that
could help. On Linux, the equivalent one is Electric
Fence, but I have never tested it.
Hope this helps,
Greg.
From my experience, I can say that what causes
sigbus or sigsegv is not necessary the portion of
code that was executed at the time the process
was killed. It actually can be far away.
Depending on the OS and compiler, ie the way the
memory is managed, an error in a program can rise
as a fault or remain hidden.
You can try to replace those calls with some others,
from a library, and see if you still have the problem.
There is a commercial software called purify that
could help. On Linux, the equivalent one is Electric
Fence, but I have never tested it.
Hope this helps,
Greg.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2000 03:12 AM
01-06-2000 03:12 AM
Re: strftime() causes SIGBUS, Bus error
If I use strftime.o from the previous release of HP-UX 11.00.00, and link it in
my executable on my current version of HP-UX 11.00.01, this WORKS, and there is
no problem in any of the occurences.
I still suspect strftime() on 11.00.01
my executable on my current version of HP-UX 11.00.01, this WORKS, and there is
no problem in any of the occurences.
I still suspect strftime() on 11.00.01
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.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP