Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Feb 1995 19:05:12 +0100
From:      User Engel <engel@ftsu00.ee.TU-Berlin.DE>
To:        bugs@FreeBSD.org
Subject:   kern: GDB crashes 2.0-950210-SNAP
Message-ID:  <199502201805.TAA00573@ftat89.ee.TU-Berlin.DE >

next in thread | raw e-mail | index | archive | help
>Class:          sw-bug 
>How-To-Repeat: 

	
	gcc -o demo -g demo.c
	gdb demo
	break 7
	run
	

>Fix: 
	
	
	Not yet.


>Environment: 
Both systems checks use bounce buffers and have 20MB RAM or 32MB RAM.

>Description: 

I tried to debug programmes with either gdb or with xxgdb and gdb. The
demo programme is included below.  I can start gdb and set a breakpoint
(break 7) but as soon as I start the programme (run) the FreeBSD-system
reboots.

I have the problem with two independent platforms both running the above
mentioned FreeBSD-system.  Any use can cause the crash.  

The system crashes with
	a) binary distribution of the snap
	b) completely compiled and installed version from the sources 
	   with
		b.a) GENERIC kernel
		b.b) specific kernel.

If I use the original 2.0-RELEASE kernel from the FreeBSD-CDROM 
(Walnut-CR.), I do not get a reboot.


========= demo.c =============
#include <stdio.h>

main() {
  printf("start\n");
  demo();
  demo();
  printf("end\n");
  return 0;
}

demo() {
  static int i = 3;

  printf("%d\n" , i);
  i=2;
}
======================== end of demo.c

-- 
Regards, Christian

=================== Christian Engel (Dipl. Inf. (M.Sc.)) ======================
     ***** Graduiertenkolleg Kommunikationsbasierte Systeme *****
	TU Berlin, Sekr. FT-5, Einsteinufer 25, D-10587 Berlin
MAIL: engel@cs.tu-berlin.de  TEL: +49 (30) 314 23810    FAX: +49 (30) 314 22514



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199502201805.TAA00573>