buglibffcall - foreign function call libraries - Bugs: bug #24282, error in make check on intel Core...

 
 

bug #24282: error in make check on intel Core 2 Duo

Submitter:  None
Submitted:  Tue 16 Sep 2008 11:12:27 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  regression Status:  Works For Me
Privacy:  Public Assigned to:  haible
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Sat 11 Feb 2017 03:16:08 PM UTC, comment #7: 

Structure returns work fine with the current libffcall.
(Although I cannot pinpoint exactly which change fixed it.)

Bruno Haible <haible>
Group administrator
Tue 03 Jan 2017 04:23:36 AM UTC, comment #6: 

Comment #5 is a duplicate of bug #32466.

Bruno Haible <haible>
Group administrator
Sat 18 Jul 2009 05:56:39 PM UTC, comment #5: 

I see this too, on a Nehalem L5520 and Core i7 920, 64-bit only. The crash is observable right back into the mists of ancient time (I went back to ffcall 1.9). We also see a failure in callback/ at alloc_callback() time (i.e., almost immediately):

#0  0x00007f6a79426a6d in __vacall_r () from /usr/src/libffcall/blah/callback/.libs/libcallback.so.0
#1  0x000000000040199d in main () at ./tests.c:856

and a failure in vacall/ in the simple structure tests:

(gdb) bt
#0  0x0000000000405587 in simulator (alist=0x7fffef0a57a0) at ./tests.c:689
#1  0x0000000000405831 in __vacall ()
#2  0x0000000000402806 in main () at ./tests.c:1054

These failures are also seen with tip-of-tree GCC 4.3, and tip-of-tree GCC 4.2.

Did ffcall ever work on x86-64? It doesn't look like it to me.

Nix <nixsv>
Sun 10 May 2009 06:50:18 AM UTC, comment #4: 

This is not an error in make but in make check:
# make check
cd avcall && make check
make[1]: Entering directory `/root/clisp/ffcall/avcall'
gcc -m64 -g -O2 -I. -I. -c ./minitests.c
/bin/sh ./libtool --mode=link gcc -m64 -g -O2 -x none minitests.o libavcall.la \
-o minitests
gcc -m64 -g -O2 -x none minitests.o -o minitests  ./.libs/libavcall.a
./minitests > minitests.out
LC_ALL=C uniq -u < minitests.out > minitests.output.x86_64-unknown-linux-gnu
test '!' -s minitests.output.x86_64-unknown-linux-gnu
make[1]: * [check] Error 1
make[1]: Leaving directory `/root/clisp/ffcall/avcall'
make: * [check] Error 2

# cat avcall/minitests.output.x86_64-unknown-linux-gnu
Int f(Int,Int,Int):({1},{2},{3})->{6}
Int f(Int,Int,Int):({-674908592},{1},{2})->{0}
J f(J,int,J):({47,11},2,{73,55})->{120,68}
J f(J,int,J):({140736813446720,47},11,{2,73})->{0,0}

Also, it's not an intel core duo but AMD 64:
# uname -a
Linux amd64.cs3-inc.com 2.6.21-1.3194.fc7 #1 SMP Wed May 23 22:47:07 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux

Anonymous
Wed 06 May 2009 03:36:18 PM UTC, comment #3: 

please do:
$ cat avcall/minitests.output.x86_64-unknown-linux-gnu

Sam Steingold <sds>
Group administrator
Fri 26 Sep 2008 04:14:32 PM UTC, comment #2: 
Sam Steingold <sds>
Group administrator
Fri 26 Sep 2008 02:47:28 PM UTC, comment #1: 

I observe this too on a Core 2 Duo P8400.

Sam Steingold <sds>
Group administrator
Tue 16 Sep 2008 11:12:27 PM UTC, original submission:  

$ make check
cd avcall; make check
make[1]: Entering directory `/root/clisp/ffcall/avcall'
gcc -g -O2 -I. -I. -c ./minitests.c
/bin/sh ./libtool --mode=link gcc -g -O2 -x none minitests.o libavcall.la -o mi\
nitests
gcc -g -O2 -x none minitests.o -o minitests  ./.libs/libavcall.a
./minitests > minitests.out
LC_ALL=C uniq -u < minitests.out > minitests.output.x86_64-unknown-linux-gnu
test '!' -s minitests.output.x86_64-unknown-linux-gnu
make[1]: * [check] Error 1
make[1]: Leaving directory `/root/clisp/ffcall/avcall'
make: * [check] Error 2


This is fedora 10 (alpha) on amd64, btw

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by haible (Posted a comment)
  • -email is unavailable- added by nixsv (Posted a comment)
  • -email is unavailable- added by sds (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-02-11 haible StatusNone Works For Me
        Open/ClosedOpen Closed
    2009-04-28 sds Item GroupNone regression
    2008-09-26 sds Assigned toNone haible
        Summaryerror in make check error in make check on intel Core 2 Duo

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code