Re: External functions returning C_DOUBLE are called twice (bug?)

new topic     » goto parent     » topic index » view thread      » older message » newer message

Stack trace after correcting the call_routine() macro to use proper if/else if/else.

$ gdb /home/greg/Projects/OpenEuphoria/euphoria/source/build/eui 
GNU gdb (Ubuntu 8.1.1-0ubuntu1) 8.1.1 
Reading symbols from /home/greg/Projects/OpenEuphoria/euphoria/source/build/eui...done. 
(gdb) break hello 
Function "hello" not defined. 
Make breakpoint pending on future shared library load? (y or [n]) y 
Breakpoint 1 (hello) pending. 
(gdb) run libmytest.e 
Starting program: /home/greg/Projects/OpenEuphoria/euphoria/source/build/eui libmytest.e 
[Thread debugging using libthread_db enabled] 
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". 
 
Breakpoint 1, 0x00007ffff701f62e in hello () from ./libmytest.so 
(gdb) bt 
#0  0x00007ffff701f62e in hello () from ./libmytest.so 
#1  0x0000555555952aa3 in dcall_x86_64 (func=<optimized out>, xmm=<optimized out>, r=<optimized out>) 
    at /home/greg/Projects/OpenEuphoria/euphoria/source/be_callc.c:1015 
#2  0x000055555595323f in call_c (func=<optimized out>, proc_ad=<optimized out>, arg_list=<optimized out>) 
    at /home/greg/Projects/OpenEuphoria/euphoria/source/be_callc.c:1486 
#3  0x000055555594e9a5 in do_exec (start_pc=0x555555d84098) 
    at /home/greg/Projects/OpenEuphoria/euphoria/source/be_execute.c:5179 
#4  0x000055555594642f in Execute (start_index=0x555555d84098) 
    at /home/greg/Projects/OpenEuphoria/euphoria/source/be_execute.c:1839 
#5  0x0000555555957bde in start_backend (x=-9223360308729746296) 
    at /home/greg/Projects/OpenEuphoria/euphoria/source/be_machine.c:2911 
#6  0x00005555559581a3 in machine (opcode=65, x=-9223360308729746296) 
    at /home/greg/Projects/OpenEuphoria/euphoria/source/be_machine.c:3216 
#7  0x0000555555923e6a in _69BackEnd (_il_file_68425=0) 
    at /home/greg/Projects/OpenEuphoria/euphoria/source/build/intobj/backend.c:4276 
#8  0x000055555589326f in _2BackEnd (_x_192=0) 
    at /home/greg/Projects/OpenEuphoria/euphoria/source/build/intobj/mode.c:170 
#9  0x0000555555618881 in _75main () at /home/greg/Projects/OpenEuphoria/euphoria/source/build/intobj/main.c:1134 
#10 0x00005555558178ce in main (argc=2, argv=0x7fffffffe528) 
    at /home/greg/Projects/OpenEuphoria/euphoria/source/build/intobj/main-.c:22331 
(gdb) cont 
Continuing. 
Hello! Your number was 123.456 
Got back: 246.912 
warning: Temporarily disabling breakpoints for unloaded shared library "./libmytest.so" 
[Inferior 1 (process 6402) exited normally] 
(gdb) quit 

-Greg

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu