Path: utzoo!attcan!uunet!atina!mrecvax!tron From: tron@mrecvax.UUCP (Carlos Mendioroz) Newsgroups: comp.unix.xenix Subject: TRAP B (Segment not present) in SCO Xenix 386 2.2.3. Message-ID: <454@mrecvax.UUCP> Date: 18 Nov 88 21:46:10 GMT Reply-To: tron@mrecvax.UUCP (Carlos Mendioroz) Organization: M.R.E. y C. Bs. As. Argentina Lines: 37 Be carefull with wrong passing parameters to a routine, especially when pointers are involved. The following code, compiled in a 286 machine with -M2l option causes a 386 machine to crash with a panic! main() { int a, b; a = 0x47; b = 0x33; strlen(a, b); } This kind of things can happen if you change the order of the parameters of a call, such as: short a; char *b, *c; ... foo(a, b, c) ... foo(x, y, z) char *x, *y; short z; { ... strlen(x); ... } -- Carlos G. Mendioroz Work: +54 (1) 313-8082 Fax: +54 (1) 311-1249 Home: +54 (1) 71-3473 ; Malabia 2659 11 B, Buenos Aires, 1425 ARGENTINA