gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re[2]: su, FFCall & crash


From: Manuel Guesdon
Subject: Re[2]: su, FFCall & crash
Date: Mon, 16 Apr 2007 13:34:18 +0200 (CEST)

On Sun, 15 Apr 2007 18:52:50 +0200 (CEST) Manuel Guesdon <address@hidden> wrote:

>| I finally suspect no-exec proc flag or somethning like this as ffcall self 
>tests doesn't work under 'su'.....

For the records, after 3 days of investigations, I found the problem:
One should do a su before ffcall 1.10 configure 
In config.h, you should have 

/* CL_MPROTECT */
/* Define if you have the mprotect() function. */
#define HAVE_MPROTECT 1
/* Define if you have a working mprotect() function. */
#define HAVE_WORKING_MPROTECT 


/* CL_CODEEXEC */
/* Define if code in malloc'ed memory is executable. */
/* #undef CODE_EXECUTABLE */

for Intel(R) Xeon(R) CPU            5120  
with flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca 
cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm 
constant_tsc pni monitor ds_cpl vmx est tm2 cx16 xtpr lahf_lm
(nx is the point, afaik).


Manuel

>| On Sun, 15 Apr 2007 17:35:52 +0200 (CEST) Manuel Guesdon <address@hidden> 
>wrote:
>| 
>|  >| Hi,
>|  >| 
>|  >| Here is a crazy problem.
>|  >| The system is a Mandrake2007 on a bi-xeon dual-core.
>|  >| ffcall 1.10 rpm package is installed
>|  >| 
>|  >| I run the following attached test (FFCall/test00.m)
>|  >| 
>|  >| It works (there's an exception but this not the point) when I run it 
>under valgrind. It also works when I ssh (same user) on the box or when I 
>login directly on the box.
>|  >| 
>|  >| It dosn't works when I do a su (or a su --login), from root or even by 
>directly logging under the user and doing a su user
>|  >| 
>|  >| I've put exactly the same environment for ssh test and su test and this 
>doesn"t works.
>|  >| 
>|  >| It crash when calling the ff_callback (see GSFFCallInvocation.m) for 
>__VAuint type.
>|  >| 
>|  >| I've attached 2 traces and ff_callback dissasembled code.
>|  >| 
>|  >| Any idea ?
>|  >| 
>|  >| Thank you !!
>|  >| 
>|  >| Manuel
>|  >| 
>|  >| --
>| 
>| 
>| -- 
>| Cordialement,
>| 
>| Manuel Guesdon
>| 
>| --
>| ______________________________________________________________________
>| Manuel Guesdon - OXYMIUM <address@hidden>
>| 14 rue Jean-Baptiste Clement  -  93200 Saint-Denis  -  France
>| Standard: 0 811 093 286 (Cout d'un appel local)   Fax: +33 1 7473 3971
>| LD Support: +33 1 7473 3973                       LD:  +33 1 7473 3980
>| 
>| 
>| 


-- 
Cordialement,

Manuel Guesdon

--
______________________________________________________________________
Manuel Guesdon - ORANGE CONCEPT <address@hidden>
14 rue Jean-Baptiste Clement  -  93200 Saint-Denis  -  France
Tel: +33 1 4940 0997  -  Fax: +33 1 4940 0998





reply via email to

[Prev in Thread] Current Thread [Next in Thread]