I am trying to reverse complement DNA sequence (string) with a short c++ code using boost library. Code was compiled without any warning/error, but ran into Segmentation fault.
My guess is the function to return a vector, but not sure.
Can anyone look into it? Thanks a lot!
When run it, segment fault.
What is wrong?
#include <stdio.h>
#include <stdlib.h>
const int max =20;
//****************************************************
// Input Matrix
//****************************************************
void inMatrixAA(int *AA, int row, int col)... (9 Replies)
Dear all,
I used debugger from C++ and these are the message I got:
Program received signal SIGSEGV, Segmentation fault.
0x00323fc0 in free () from /lib/tls/libc.so.6
(gdb) info s
#0 0x00323fc0 in free () from /lib/tls/libc.so.6
#1 0x00794fa1 in operator delete () from... (5 Replies)
Hi
some help read............
I'm getting a segmentation fault when I run an AIX COBOL/Db2 program.
I initiate the program from the command line, but it hangs, and then when I press enter it generates a segmantation fault and produces a core dump.
The box is running AIX software level ... (5 Replies)
Hi all
In the ltp-posix test,there is a case in open_posix_testsuite\conformance\interfaces\timer_gettime\speculative/6-1.c
I run the above code,it will has a segment fault, if I modify it to below,it works well
Anybody can tell me why? (1 Reply)
I´m writing this program in QNX , I`m kinda new to UNIX and programing in general, and when I try to run it it gives me the Memory Fault error. Can anyone help?
#include <stdio.h>
#include <fcntl.h>
void main(void)
{int a,ter;
char buf;
printf("a=");
scanf("%d",a);
ter=open... (6 Replies)
Hi,
Whether the following piece of code is placed in the read-only memory of code (text) segment or data segment?
char *a = "Hello";
I am getting two different answers while searching in google :( that's why the confusion is (7 Replies)
I always get segment fault, why? can sb help me and modify it, I have spend on much time on
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>
#include <string.h>
#define MAX 10
pthread_t thread;
void *thread1()
{
int *a;
int i, n;
... (1 Reply)
Hello everybody,
I've been working on a program on my Linux box, after finished the code, i compile it with gcc -Wall option, so i can see what's wrong or unused.
The Walll output shows nothing, so there are no loose ends on the program.
I run the program on my system, and it works PERFECTLY.... (5 Replies)
Hi
I have struggling a week to fix a program , in the begining i got SIGBUS , but after many attempts still the program gets SIGSEGV segment fault , In bellow i post the seg fault log + source codes. would really appreciate if experts help me to fix this segment fault error. any advice is... (2 Replies)
Hello,
This function was copied into my code, which was compiled without error/warning, but when executed there is always Segmentation fault at the end after the output (which seems correct!):
void get_hashes(unsigned int hash, unsigned char *in)
{
unsigned char *str = in;
int pos =... (7 Replies)
Discussion started by: yifangt
7 Replies
LEARN ABOUT CENTOS
sgpio
sgpio(1) USER COMMANDS sgpio(1)NAME
sgpio - captive backplane LED control utility
SYNOPSIS
sgpio [-h] [-V] [[-d|--disk <device>[,<device>...]] | [-p|--port <port>[,<port>...]]] [-s|--status <status>] [-f|--freq <frequency>]
DESCRIPTION
Serial General Purpose Input Output (SGPIO) is a communication method used between a main board and a variety of internal and external hard
disk drive bay enclosures. This utility can be used to control LEDs in an enclosure. For more information about SGPIO, please consult the
SFF-8485 Specification.
OPTIONS -h, --help
displays a short help text
-V, --version
displays the utility and AHCI SGPIO specification
-d, --disk
disk name of LED location. Names are sda,sdb,sdc,... Multiple names can be provided in a comma-delimited list.
-p, --port
SATA port number of LED location, can be used if a disk name is no longer valid. 0,1,2,3,... Multiple ports can be provided in a
comma-delimited list.
-s, --status
status of the LED to set. LED status is: locate, fault, rebuild, off
-f, --freq
Set the frequency at which the LED should blink (in Hz). Frequency should be an integer between 1 and 10.
EXAMPLES
Set the locate LED on SDA with an Intel Intelligent backplane:
sgpio -d sda -s locate
Set the locate LED on SDA to flash at 3 Hz for non-intelligent backplanes:
sgpio -d sda -s locate -f 3
Set SATA port 2 with fault at a 3 Hz flash rate:
sgpio -p 2 -s fault -f 3
Set disks sda through sdf to fault:
sgpio -d sda,sdb,sdc,sdd,sde,sdf -s fault
EXIT STATUS
sgpio should return zero when successful. It will return with a non-zero value if there was a failure.
AUTHOR
Eric R. Hall <Eric.R.Hall@intel.com>
version 0.3 December 2007 sgpio(1)