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

Submitted by:  None
Submitted on:  Tue 16 Sep 2008 11:12:27 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: regressionStatus: Works For Me
Privacy: PublicAssigned to: Bruno Haible <haible>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission 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>
Project AdministratorIn charge of this item.
Tue 03 Jan 2017 04:23:36 AM UTC, comment #6:

Comment #5 is a duplicate of bug #32466.

Bruno Haible <haible>
Project AdministratorIn charge of this item.
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>
Project Administrator
Fri 26 Sep 2008 04:14:32 PM UTC, comment #2:

is this the same as https://savannah.gnu.org/bugs/?22436

Sam Steingold <sds>
Project 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>
Project 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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 11 Feb 2017 03:16:08 PM UTChaibleStatusNone=>Works For Me
      Open/ClosedOpen=>Closed
    Tue 28 Apr 2009 05:36:18 PM UTCsdsItem GroupNone=>regression
    Fri 26 Sep 2008 02:47:28 PM UTCsdsAssigned toNone=>haible
      Summaryerror in make check=>error in make check on intel Core 2 Duo

    Back to the top


    Powered by Savane 3.1-cleanup1