All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: SegFault
@ 2002-06-26  1:56 Stas Sergeev
  2002-06-26  3:11 ` SegFault Dan Egli
  2002-06-26  3:14 ` SegFault Dan Egli
  0 siblings, 2 replies; 22+ messages in thread
From: Stas Sergeev @ 2002-06-26  1:56 UTC (permalink / raw)
  To: Dan Egli

Hello.

Dan Egli wrote:
> DosEMU Ver (as reported by RPM) 1.1.1-3
And dosemu says to you at startup:
"Please test against a recent version before reporting bugs and problems."


^ permalink raw reply	[flat|nested] 22+ messages in thread
* Segfault
@ 2017-12-29  9:04 Andrew Tsykhonya
  2017-12-31  8:59 ` Segfault Eric Sunshine
  0 siblings, 1 reply; 22+ messages in thread
From: Andrew Tsykhonya @ 2017-12-29  9:04 UTC (permalink / raw)
  To: git

git stash pop resulted in crash:
/usr/local/Cellar/git/2.10.2/libexec/git-core/git-stash: line 470:
14946 Segmentation fault: 11 git merge-recursive $b_tree -- $c_tree
$w_tree

although, the changes have been applied successfully.

^ permalink raw reply	[flat|nested] 22+ messages in thread
* Segfault
@ 2010-01-19 21:40 Robert Wimmer
  2010-01-20 10:34 ` Segfault RW
  0 siblings, 1 reply; 22+ messages in thread
From: Robert Wimmer @ 2010-01-19 21:40 UTC (permalink / raw)
  To: kvm

Hi,

I'm running Gentoo x86_64 with kernel 2.6.32 and Qemu/KVM 0.12.1.2.
Ran fine for about 10 days until today the qemu-system_x86_64 process
crashed with a segfault (:

Jan 19 06:24:42 scotty kernel: [977458.908149] qemu-system-x86[8920]: segfault at 7f04daab8530 ip 
000000000047a614 sp 00007ffff65b1150 error 4 in qemu-system-x86_64[400000+213000]

Now the image seems to be corrupt. I can't start the image anymore.
It takes a few second and I get the next segfault.  Other images running
fine with the same parameters. The startup parameters are:

/usr/bin/qemu-system-x86_64 --enable-kvm -m 512 -smp 2 -cpu host -daemonize -k de -vnc 127.0.0.1:1 -
monitor telnet:10.0.0.8:4444,server,nowait -localtime -pidfile /tmp/kvm-nweb.pid -drive 
file=/opt/kvm/images/nweb.img,if=virtio,cache=none,boot=on -net 
nic,vlan=0,model=virtio,macaddr=98:84:44:78:12:aa -net tap,vlan=0,ifname=tap.b.nweb,script=no

When I try to convert the image to another format with 

qemu-img convert -f qcow2 -O raw source.img dest.img

I also get segfault's:

[1033227.955659] qemu-img[9990]: segfault at 7fd55eb48000 ip 000000000041a2d2 sp 00007fffc1a34fe0 
error 7 in qemu-img[400000+32000]
[1033236.379335] qemu-img[9991]: segfault at 7fd06332b000 ip 000000000041a2d2 sp 00007fff38eb5a90 
error 7 in qemu-img[400000+32000]

Is there any chance to get (some) data in the image back? Backup is a few weeks old :-(

Thanks!
Robert

^ permalink raw reply	[flat|nested] 22+ messages in thread
* Segfault
@ 2010-01-19 21:22 Robert Wimmer
  0 siblings, 0 replies; 22+ messages in thread
From: Robert Wimmer @ 2010-01-19 21:22 UTC (permalink / raw)
  To: kvm

Hi,

I'm running Gentoo x86_64 with kernel 2.6.32 and Qemu/KVM 0.12.1.2.
Ran fine for about 10 days until today the qemu-system_x86_64 process
crashed with a segfault (:

Jan 19 06:24:42 scotty kernel: [977458.908149] qemu-system-x86[8920]: segfault at 7f04daab8530 ip 
000000000047a614 sp 00007ffff65b1150 error 4 in qemu-system-x86_64[400000+213000]

Now the image seems to be corrupt. I can't start the image anymore.
It takes a few second and I get the next segfault.  Other images running
fine with the same parameters. The startup parameters are:

/usr/bin/qemu-system-x86_64 --enable-kvm -m 512 -smp 2 -cpu host -daemonize -k de -vnc 127.0.0.1:1 -
monitor telnet:10.0.0.8:4444,server,nowait -localtime -pidfile /tmp/kvm-nweb.pid -drive 
file=/opt/kvm/images/nweb.img,if=virtio,cache=none,boot=on -net 
nic,vlan=0,model=virtio,macaddr=98:84:44:78:12:aa -net tap,vlan=0,ifname=tap.b.nweb,script=no

When I try to convert the image to another format with 

qemu-img convert -f qcow2 -O raw source.img dest.img

I also get segfault's:

[1033227.955659] qemu-img[9990]: segfault at 7fd55eb48000 ip 000000000041a2d2 sp 00007fffc1a34fe0 
error 7 in qemu-img[400000+32000]
[1033236.379335] qemu-img[9991]: segfault at 7fd06332b000 ip 000000000041a2d2 sp 00007fff38eb5a90 
error 7 in qemu-img[400000+32000]

Is there any chance to get (some) data in the image back? Backup is a few weeks old :-(

Thanks!
Robert

^ permalink raw reply	[flat|nested] 22+ messages in thread
* RE: SEGFAULT
@ 2003-08-20 19:21 Sandro Dangui
  0 siblings, 0 replies; 22+ messages in thread
From: Sandro Dangui @ 2003-08-20 19:21 UTC (permalink / raw)
  To: John T. Williams, linux-c-programming


I can see two mistakes:

First, you have to initialize hostnamelength = sizeof(HOSTNAME);

Second, accept() doesn't alloc memory to return data in sockaddr_in*;
Then, you must define "active" variable like this: struct sockaddr_in
active;
And call: accept(skt, (struct sockaddr *) &active, &activeLen);




-----Original Message-----
From: John T. Williams [mailto:jtwilliams@vt.edu] 
Sent: quarta-feira, 20 de agosto de 2003 15:56
To: linux-c-programming@vger.kernel.org
Subject: SEGFAULT


    I can't figure out why this code sigfaults when it exits. gdb only tells
me

Program received signal SIGSEGV
0xda64a8c0 in ? ()

and shows the step as being the final "}"  in main ().
as far as I can tell this means either one of the linux libraries is wrong
or my code is doing something funny with a buffer. I'll gladly e-mail a
dollar to anyone who can tell me what is wrong with this short bit of code.
Well, I mean what is wrong that causes the SIGSEGV.


_________________CODE______________________

#include <sys/types.h>
#include <sys/socket.h>
#include <sys/wait.h>
#include <netinet/in.h>
#include <unistd.h>
#include <netdb.h>

#define HOST_NAME_MAX 255

int main( ) {
 int loop;
 struct sockaddr_in *active;
 struct sockaddr_in passive;
 struct hostent *host;
 struct protoent *proto;
 int port, activeLen, newSkt, skt;
 char HOSTNAME[HOST_NAME_MAX];
 int hostnamelength;
 int pid;

 host = NULL;

 proto = getprotobyname("tcp");

 if( ( skt = socket(PF_INET, SOCK_STREAM, proto->p_proto  ) ) == -1 ) {
  printf("Cannot create socket\n");
  exit(1);
 }

 if(gethostname(HOSTNAME, hostnamelength) ) {
  printf("fuck\n");
  exit(1);

 }

 host = gethostbyname(HOSTNAME);

 passive.sin_family = host->h_addrtype;
 passive.sin_port = htons( 4023 );
 bcopy(host->h_addr, &passive.sin_addr, host->h_length);

 if(bind(skt, (struct sockaddr *) &passive, sizeof(passive) ) ) {
  printf("bind failed\n");
  exit(1);
 }

 if( listen(skt, 10) ) {
  printf("listen failed\n");
  close(skt);
  exit(1);
 }

 activeLen = sizeof(active);

 for(loop=0;loop<2;loop++) {


  newSkt = accept(skt, (struct sockaddr *) active, &activeLen);

  if( (pid = fork() ) == 0 ) {

   close(skt);
   printf("connection accepted\n");
   fflush(NULL);
   close(newSkt);
   _exit(0);


  } else  close(newSkt);
 }

 wait(NULL);
 sleep(1);

 close(skt);

 return 0;
}
_______________________END CODE________________

-
To unsubscribe from this list: send the line "unsubscribe
linux-c-programming" in the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 22+ messages in thread
* Parsing multipart MIME
@ 2003-08-15 18:05 Darío Mariani
  2003-08-20 18:56 ` SEGFAULT John T. Williams
  0 siblings, 1 reply; 22+ messages in thread
From: Darío Mariani @ 2003-08-15 18:05 UTC (permalink / raw)
  To: linux-c-programming

Hello:
   I'm building a minimal MIME parser, mainly to separate the parts in a 
multipart/form-data in a web POST. I was wondering if anyone made the 
regular expression for interpreting it. I thought of this:

multip  ::= start anychar* (delim anychar*)* end?

anychar ::= <any character including \0>
delim   ::= <delimiter>
start   ::= "--" delim "\r\n"
middle  ::= "\r\n--" delim "\r\n"
end     ::= "\r\n--" delim "--"

   I have little experience with grammars so this expression may be 
wrong. Any ideas? thanks,

         Darío

-
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 22+ messages in thread
* SegFault
@ 2002-06-25 20:13 Dan Egli
       [not found] ` <3D18E115.9B5981C1@microsoft.com>
  0 siblings, 1 reply; 22+ messages in thread
From: Dan Egli @ 2002-06-25 20:13 UTC (permalink / raw)
  To: linux-msdos

I thought everything was working grand, when all of a sudden, I noticed that
DosEMU was crashing when I ran a certain program. This program starts up,
looks fine for a while, then all of a sudden, DosEMU dies. The error is
listed below (I tried to extract it from the program header on the screen so
if something is missing, sorry)

ERROR: unexpected CPU exception 0x06 err=0x00000000 cr2=00000000 while in
vm86 (DOS)
Program=sigsegv.c, Line=190
EIP: 0000:0000000c ESP: 2890:0000072c  VFLAGS(b): 00000 00000010 00010010
EAX: 00000006 EBX: 276b0007 ECX: 00000002 EDX: 0000200d VFLAGS(h): 00000212
ESI: 00000007 EDI: 0000075f EBP: 00000000 DS: 1c58 ES: 0000 FS: 0000 GS:
0000
FLAGS: AF IF RF VM VIF  IOPL: 06)
STACK: 00 20 07 00 00 00 00 00 00 00 -> 00 00 00 00 00 00 00 00 00 00
B0\x0f  : aa 03 c6 20 97 0d 20 00 00 f0 -> c6 20 97 0d 29 02 70 00 50 00
 =        62097              0000:000c mov     [bx+si],97

Anyone know how I could fix this?



^ permalink raw reply	[flat|nested] 22+ messages in thread
* Re: segfault
@ 2001-09-05 21:53 Jim Paris
  0 siblings, 0 replies; 22+ messages in thread
From: Jim Paris @ 2001-09-05 21:53 UTC (permalink / raw)
  To: linux-mips

[ resending to list, since I accidently replied only to Maciej ]

>  Since there appears to be no conclusion of the sysmips-on-MIPS-I problem
> in sight, I've just put all the related patches I use in a single place
> for easy retrieval.  All of them were sent to this mailing list once but
> digging through archives is tiresome.  Get them from
> 'ftp://ftp.ds2.pg.gda.pl/pub/macro/sysmips/'. 
> 
>  There is a sys_sysmips() fix in the "sysmips-1" patch and two additional
> patches implementing a sys__test_and_set() syscall and its usage in glibc. 
> Feel free to use them until an official solution is available. 

I applied these patches and I still have the same problem.

I'm starting to think that maybe my kernel is just too broken to use
with my recent binutils/gcc/glibc mix.  I was hoping that my efforts
to patch it up to 2.4.5 would have fixed that; I wish the linux-vr
tree was still being updated by people who actually knew what they
were doing (as I certainly don't).

-jim

^ permalink raw reply	[flat|nested] 22+ messages in thread
* segfault
@ 2001-09-05  3:54 Jim Paris
  2001-09-05 17:15 ` segfault Florian Lohoff
  2001-09-13 18:59 ` segfault Jim Paris
  0 siblings, 2 replies; 22+ messages in thread
From: Jim Paris @ 2001-09-05  3:54 UTC (permalink / raw)
  To: linux-mips

I'm trying to get Linux working on my handheld PC (the Sharp Tripad,
very similar to the Vadem Clio), but I'm having userland problems.  

Some binaries compile and run fine, while others give a segfault right
away.  Compiling with slightly different versions of compilers, glibc,
etc, seems to affect which binaries work and which don't, although I
can't find a combination that seems to work with everything.
Fortunately, one binary that does appear to work fine is 'sash', which
lets me test this stuff.

I uncommented some debugging stuff in the kernel, and the actual error
is:

do_page_fault( )#2: sending SIGSEGV to test-prog for illegal write
access to 00000fd4 (epc == 004027b8, ra == 00402730)

The strange part about this (and the reason why I suspect someone may
be able to help me) is that the address 00000fd4 is always the same,
implying that the binaries are all failing in the same way.  Has
anyone seen this or does anyone have any ideas why this may be
happening?

My original setup was a pre-3.0 CVS GCC and glibc-2.2.3 with the
Linux-VR kernel (based on the MIPS tree as of 2.4.0-test9), but I've
since brought the Linux-VR tree up to 2.4.5 and moved to gcc-3.0.1 and
glibc-2.2.4 with binutils-2.11.90.0.31, and none of this really seems
to help the problem much.

-jim

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2018-01-02 10:11 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-26  1:56 SegFault Stas Sergeev
2002-06-26  3:11 ` SegFault Dan Egli
2002-06-26  3:14 ` SegFault Dan Egli
  -- strict thread matches above, loose matches on Subject: below --
2017-12-29  9:04 Segfault Andrew Tsykhonya
2017-12-31  8:59 ` Segfault Eric Sunshine
2018-01-02 10:11   ` Segfault Andrew Tsykhonya
2010-01-19 21:40 Segfault Robert Wimmer
2010-01-20 10:34 ` Segfault RW
     [not found]   ` <229432dd1001220635t5ba74dah982d5e5862035a0@mail.gmail.com>
2010-01-22 14:45     ` Segfault RW
2010-01-19 21:22 Segfault Robert Wimmer
2003-08-20 19:21 SEGFAULT Sandro Dangui
2003-08-15 18:05 Parsing multipart MIME Darío Mariani
2003-08-20 18:56 ` SEGFAULT John T. Williams
2003-08-20 19:35   ` SEGFAULT Glynn Clements
2002-06-25 20:13 SegFault Dan Egli
     [not found] ` <3D18E115.9B5981C1@microsoft.com>
2002-06-26  0:56   ` SegFault Dan Egli
2002-06-26  1:02     ` SegFault Dan Egli
2001-09-05 21:53 segfault Jim Paris
2001-09-05  3:54 segfault Jim Paris
2001-09-05 17:15 ` segfault Florian Lohoff
2001-09-05 18:05   ` segfault Maciej W. Rozycki
2001-09-05 21:51   ` segfault Jim Paris
2001-09-13 18:59 ` segfault Jim Paris

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.