buglibffcall - foreign function call libraries - Bugs: bug #22726, make check fails on...

 
 

bug #22726: make check fails on i686-apple-darwin

Submitter:  Sam Steingold <sds>
Submitted:  Tue 25 Mar 2008 02:57:00 PM UTC
Votes: 10
 
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
   

Sat 24 Jun 2017 01:33:46 PM UTC, comment #2: 

I cannot reproduce this with libffcall-1.13 on MacOS X 10.5.8.

Bruno Haible <haible>
Group administrator
Tue 13 May 2008 04:33:40 PM UTC, comment #1: 

Though I'm not entirely sure what the code does, I looked into this and found that the illegal instruction occurs on test1.c:102, which looks like

    { free_trampoline_r(cf); printf("Works, test1 passed.\n"); exit(0); }

Using gdb, I confirmed that this means that the Illegal Instruction occurs in the call to free_trampoline_r.  I don't really know where in free_trampoline_r, though.  (free_trampoline_r is in trampoline.c)

(I found this information by using
gdb test1
then typing `return' until gdb freaked out.)


Charles Moss <czm>
Tue 25 Mar 2008 02:57:00 PM UTC, original submission:  

https://sourceforge.net/tracker/?func=detail&atid=101355&aid=1925086&group_id=1355

Trying to build ffcall on Mac OS X 10.4.11/Intel, gcc 4.0.1, ./configure &&
make runs to completion, but "make check" fails with an Illegal
instruction:

$ make check
cd avcall; make check
./minitests > minitests.out
LC_ALL=C uniq -u < minitests.out >
minitests.output.i686-apple-darwin8.11.1
test '!' -s minitests.output.i686-apple-darwin8.11.1
cd vacall; make check
./minitests > minitests.out
LC_ALL=C uniq -u < minitests.out >
minitests.output.i686-apple-darwin8.11.1
test '!' -s minitests.output.i686-apple-darwin8.11.1
cd trampoline; make check
./test1
Works, test1 passed.
./test2
test2 passed.
touch tests.passed.i686-apple-darwin8.11.1
cd callback; make check
cd vacall_r; make all
make[2]: Nothing to be done for `all'.
cd trampoline_r; make all
make[2]: Nothing to be done for `all'.
cd vacall_r; make check
make[2]: Nothing to be done for `check'.
cd trampoline_r; make check
./test1
make[2]: * [check] Illegal instruction
make[1]: * [check-subdirs] Error 2
make: * [check] Error 2

Sam Steingold <sds>
Group administrator

 

(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 czm (Posted a comment)
  • -email is unavailable- added by czm (Voted in favor of this item)
  • -email is unavailable- added by sds (Submitted the item)
  •  

    There are 10 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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-06-24 haible StatusNone Works For Me
        Open/ClosedOpen Closed
    2009-04-28 sds Item GroupNone regression
    2008-05-13 czm Carbon-Copy- Added czm

    Back to the top

    Powered by Savane 3.13-cf05.
    Corresponding source code