[Kalzium] Crash on x86_64 while the code works on 32bit systems

Carsten Niehaus cniehaus at gmx.de
Fri Oct 20 12:31:35 CEST 2006


Hi,

in my application I am using this code to do some facile/ocaml calculations:

static value * solve_equation_closure = NULL;
if (solve_equation_closure == NULL){
· solve_equation_closure = caml_named_value("solve_equation");
}

return strdup(String_val(callback(*solve_equation_closure, 
copy_string(eq)) ));

On my 32bit machine this works, but on x86_64 it crashes with this backtrace

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 46992874527856 (LWP 27127)]
0x00000000004d8180 in camlPervasives__$5e_135 ()
Current language:  auto; currently c
(gdb) where
#0  0x00000000004d8180 in camlPervasives__$5e_135 ()
#1  0x00000000619b6b80 in ?? ()
#2  0x00000000004da828 in camlArray__make_matrix_69 ()
#3  0x000000000063a378 in camlLexing__19 ()
#4  0x0000000000000001 in ?? ()
#5  0x00002abd619b6b38 in ?? ()
#6  0x00000000004e24a4 in camlLexing__from_string_152 ()
#7  0x00000000619b6b80 in ?? ()
#8  0x000000000049c089 in camlCalc__create_equation_94 ()
#9  0x00002abd619b6d90 in ?? ()
#10 0x000000000049c0fb in camlCalc__solve_equation_99 ()
#11 0x00007fff4fc7b7e0 in ?? ()
#12 0x000000000049c0d8 in camlCalc__solve_equation_99 ()
#13 0x00000000619b6b80 in ?? ()
#14 0x00002abd619b6b38 in ?? ()
#15 0x0000000000000010 in ?? ()
#16 0x0000000000000000 in ?? ()

Is it possible that libfacile is not 64bit ready? I have no other explanation 
for this behaviour.

Please keep kalzium at kde.org or myself in CC as I am not subscribed.

-- 
Gruß,
  Carsten Niehaus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kalzium/attachments/20061020/252d6b8b/attachment.pgp 


More information about the Kalzium mailing list