Please explain how you come to the conclusion that the 2nd member of the structure require strict alignment. I do not see that requirement.
There are three ways to get SIGBUS on SPARC:
1. Writing to memory that was created with mmap using the MAP_NORESERVE flag and an initial write to a virtual page requires that page to actually be created, but no swap space is available for a backing store.
This may belong in the C Programming forum, but here goes anyway...
What would cause a bus error? I searched google for a cause, but came up with some conflicting reports...
Could it be caused by disk space?
A lot of the pages I found mentioned linking with the incorrect versions of the... (4 Replies)
Hi there
I am running soalris 9 on a sun fire 480r and all of a sudden (today) whenever the users run the command `top` we get the following message `bus error`
does anybody have any information on what this is all about and whether there is a routine i can perform to gather more... (3 Replies)
Hi!
I've got a program which runs fine under Linux, but I have compiled it to run under SunOS 5.8 in a Sparc computer, and now it sometimes fails with "bus error".
Ussing gdb I surfed to the error line, which is
*pointer = some_vector;
where some_vector is a 16 byte struct (4 integers)... (1 Reply)
Hi there,
I have two SunBlade 2000s that I want to connect to a single D1000. I am told that I need to do a split bus mode. I don't really understand what that means. Does that mean that half of the storage disks will be assigned to one host and the others to the other host? How do I get... (18 Replies)
Hi all,
I am getting bus error problem in SunOS. Can you please help me out in this regard.
Actually, my entire code till the last line has been executed. But after tht i am getting a bus error. Please help me.
Thanks in advance.
Charu. (4 Replies)
I am getting bus error when i include "#!/bin/ksh". If i remove interpreter then script is working. Can anyone explain this and how can i avoid this error?
Operating System is HP-UX B.11.23 U 9000/800 1091834454 (2 Replies)
Hi everyone,
I have a GUI project and when I run it and left in idle state for a long time(there is nothing done, just opened GUI, no more actions),I get bus error after trying to do anything with it.
I've tried to build it in debug mode and use gdb, but I don't get any error in debug mode.It... (3 Replies)
Hi all,
I am writing a phonebook program to store names and number using a list. Here is the code for the function which allows the user to enter the name and number (where the error occurs).
//THIS FUNCTION ADDS A NEW ENTRY TO THE phonebook_list
void insert(void){
//variables
int... (5 Replies)
Hi all,
OS is Solaros 10 Sparc
While doing Netbackup upgradation to 7.5 , the server was asked to reboot.
But then it came up in single user mode,
and after I typed format command it showed some disk error.
bash-3.00# format
Searching for disks...WARNING:... (2 Replies)
Discussion started by: manalisharmabe
2 Replies
LEARN ABOUT DEBIAN
vrb_new_opt
vrb_new_opt(3) VRB Programmer's Manual vrb_new_opt(3)NAME
vrb_new_opt - create a new virtual ring buffer
LIBRARY -lvrb
SYNOPSIS
#include <vrb.h>
vrb_p vrb_new_opt(size_t size, const char *name, int options);
DESCRIPTION
vrb_new_opt creates a new instance of a virtual ring buffer.
A virtual ring buffer is a character FIFO queue with the special property that any sequence of characters in the buffer may be accessed as
a single contiguous block of memory, eliminating the need to split any sequence to handle a buffer wraparound.
ARGUMENTS
size_t size
specifies the requested minimum buffer size to be allocated. The given value will be rounded up to the nearest or equal whole multiple of
the system page size. The virtual ring buffer is implemented by mapping two adjacent blocks of memory to the same memory object. Thus,
twice as much virtual address space will be used and the specified size must be less than half of the available virtual address space for
this process.
const char *name
specifies an optional temporary name pattern or an actual name of a file to be used as backing store via mmap(2) in a mounted filesystem in
which the process has write permission. If the name string ends in "XXXXXX" then mkstemp(3) will be used to make the file unique. Other-
wise it will be used as is. If the named file already exists or otherwise cannot be opened for write, an error will occur. If NULL is
given, swap space will be used as backing store via shmat(2).
int options
specifies option flags that may be given to alter the behaviour of the virtual ring buffer. The implemented options are:
VRB_NOGUARD
Do not include guard pages that would protect against buffer overflow errors.
VRB_ENVGUARD
Override VRB_NOGUARD if the environment variable VRBGUARD is defined with a value other than the string "0".
RETURN VALUE
vrb_p
On success, a handle (pointer) to the newly created virtual ring buffer is returned. On error, NULL is returned.
ERRORS
If an error is returned, then errno will have one of the following values:
EINVAL A buffer size was requested which is too large for address space allocation arithmetic.
ENOMEM Out of memory allocating the virtual ring buffer structure.
- An errno value set by a failing system call.
SEE ALSO vrb(3), vrb_capacity(3), vrb_data_len(3), vrb_data_ptr(3), vrb_destroy(3), vrb_get(3), vrb_get_min(3), vrb_give(3), vrb_init(3),
vrb_init_opt(3), vrb_is_empty(3), vrb_is_full(3), vrb_is_not_empty(3), vrb_is_not_full(3), vrb_move(3), vrb_new(3), vrb_put(3),
vrb_put_all(3), vrb_read(3), vrb_read_min(3), vrb_resize(3), vrb_space_len(3), vrb_space_ptr(3), vrb_take(3), vrb_uninit(3), vrb_write(3),
vrb_write_min(3)vrb 2002-09-30 vrb_new_opt(3)