#299 new
Uri

yasm-1.3.0.28g51a fails some tests

Reported by Uri | April 11th, 2016 @ 06:27 PM

First, the current Github yasm version fails some tests - see attached test-suite.log. This is on Mac OS X 10.10.5 on Intel Core i7 (2.7GHz), Xcode-7.2.1.

Also, I have a few assembly files that yam-1.3.0 (installed via Macports) crashes on. The files are at link, I've attached one to illustrate the point.

Would appreciate your help!

Attempts to compile that (and other files from that directory) with the latest Github yasm output this:

$ ~/src/yasm/yasm -o t.o -f macho64 -a x86 -p gnu enc_msg_x8.s
enc_msg_x8.s:158: error: expected `,'
$ ~/src/yasm/yasm -o t.o -f macho64 enc_msg_x8.s
enc_msg_x8.s:1: error: instruction expected after label
enc_msg_x8.s:1: warning: no non-local label before `.align'
enc_msg_x8.s:3: error: instruction expected after label
enc_msg_x8.s:5: error: instruction expected after label
enc_msg_x8.s:7: error: instruction expected after label
. . . . . . .
enc_msg_x8.s:48: error: instruction expected after label
enc_msg_x8.s:50: error: instruction expected after label
enc_msg_x8.s:51: warning: ignoring unrecognized character `\'
enc_msg_x8.s:51: error: instruction expected after label
enc_msg_x8.s:51: error: undefined symbol `i' (first use)
enc_msg_x8.s:51: error:  (Each undefined symbol is reported only once.)
enc_msg_x8.s:52: error: undefined symbol `SCHED' (first use)
enc_msg_x8.s:52: error: undefined symbol `STATE1' (first use)
enc_msg_x8.s:53: error: undefined symbol `STATE2' (first use)
enc_msg_x8.s:54: error: undefined symbol `STATE3' (first use)
. . . . . . .
enc_msg_x8.s:59: error: undefined symbol `STATE8' (first use)
enc_msg_x8.s:63: warning: ignoring unrecognized character `\'
enc_msg_x8.s:63: error: redefinition of `eight.endm'
enc_msg_x8.s:60: error: `eight.endm' previously defined here
enc_msg_x8.s:74: warning: ignoring unrecognized character `#'
enc_msg_x8.s:74: warning: ignoring unrecognized character `#'
. . . . . . . 
enc_msg_x8.s:74: warning: ignoring unrecognized character `#'
int byte_len):1: error: instruction expected after label
parameter 5: %r8 #LEN MSG_length in bytes:2: error: undefined symbol `LEN' (first use)
parameter 5: %r8 #LEN MSG_length in bytes:7: error: instruction expected after label
parameter 5: %r8 #LEN MSG_length in bytes:8: error: unexpected `%' after instruction
parameter 5: %r8 #LEN MSG_length in bytes:10: warning: ignoring unrecognized character `#'
parameter 5: %r8 #LEN MSG_length in bytes:10: error: undefined symbol `stack' (first use)
. . . . . . .

As I said, the Macports-installed yasm crashed, leaving this in syslog:

Process:               yasm [11059]
Path:                  /opt/local/bin/yasm
Identifier:            yasm
Version:               0
Code Type:             X86-64 (Native)
Parent Process:        bash [1179]
Responsible:           Terminal [963]
User ID:               1638356520


Date/Time: 2016-04-08 09:44:58.952 -0400 OS Version: Mac OS X 10.10.5 (14F1713) Report Version: 11 Anonymous UUID: 2557F1B7-5C18-D742-E160-8A761F3ECCAE


Time Awake Since Boot: 850000 seconds


Crashed Thread: 0 Dispatch queue: com.apple.main-thread


Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000


VM Regions Near 0: --> __TEXT 000000010a302000-000000010a36e000 [ 432K] r-x/rwx SM=COW /opt/local/bin/yasm


Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 yasm 0x000000010a343370 yasm_expr_get_intnum + 59 1 yasm 0x000000010a3229b5 eval_expr + 150 2 yasm 0x000000010a32208c eval_set + 54 3 yasm 0x000000010a321cf8 gas_preproc_get_line + 2048 4 yasm 0x000000010a352554 fill + 352 5 yasm 0x000000010a35119e gas_parser_lex + 1266 6 yasm 0x000000010a30e18d gas_parser_parse + 237 7 yasm 0x000000010a30e015 gas_parser_do_parse + 363 8 yasm 0x000000010a304915 main + 3397 9 libdyld.dylib 0x00007fff8fa875c9 start + 1


Thread 0 crashed with X86 Thread State (64-bit): rax: 0x0000000000000000 rbx: 0x00007fff558fc528 rcx: 0x0000000000000001 rdx: 0x0000000000000001 rdi: 0x0000000000000000 rsi: 0x0000000000000001 rbp: 0x00007fff558fc4f0 rsp: 0x00007fff558fc4d0 r8: 0x0000000000000000 r9: 0x0000000000000000 r10: 0x00007fe2c340add0 r11: 0x00007fff8c095160 r12: 0x0000000000000001 r13: 0x00007fff558fc670 r14: 0x0000000000000000 r15: 0x00007fff558fc530 rip: 0x000000010a343370 rfl: 0x0000000000010202 cr2: 0x0000000000000000


Logical CPU: 4 Error Code: 0x00000004 Trap Number: 14


Binary Images: 0x10a302000 - 0x10a36dfff +yasm (0) <F9E0F18A-D782-35C5-A357-A72E9D960039> /opt/local/bin/yasm 0x10a3b6000 - 0x10a3bffff +libintl.8.dylib (0) <28044CD3-96C4-3B32-A9D1-0A5CAF430DA6> /opt/local/lib/libintl.8.dylib 0x10a3cb000 - 0x10a4bfff7 +libiconv.2.dylib (0) <36C9F2DF-0491-329B-A815-BE8E32899D49> /opt/local/lib/libiconv.2.dylib 0x7fff68552000 - 0x7fff68588887 dyld (353.2.3) <D9967621-6378-381B-A47B-5085EE476B62> /usr/lib/dyld 0x7fff837cb000 - 0x7fff837f3fff libxpc.dylib (559.40.1) <5C829202-962E-3744-8B50-00D38CC88E84> /usr/lib/system/libxpc.dylib 0x7fff84b28000 - 0x7fff84b3eff7 libsystem_asl.dylib (267) <F153AC5B-0542-356E-88C8-20A62CA704E2> /usr/lib/system/libsystem_asl.dylib 0x7fff84b7d000 - 0x7fff84b7ffff libsystem_configuration.dylib (699.40.2) <56F94DCE-DBDE-3615-8F07-DE6270D9F8BE> /usr/lib/system/libsystem_configuration.dylib 0x7fff84de5000 - 0x7fff84df0fff libcommonCrypto.dylib (60061.30.1) <E789748D-F9A7-3CFF-B317-90DF348B1E95> /usr/lib/system/libcommonCrypto.dylib 0x7fff85359000 - 0x7fff8553eff7 libicucore.A.dylib (531.50) <CAA7ACE0-4012-3A13-864D-2B56B4B072FD> /usr/lib/libicucore.A.dylib 0x7fff85dff000 - 0x7fff85e00ff3 libSystem.B.dylib (1213) <538E391E-1BD1-3655-80DF-62609C9305CC> /usr/lib/libSystem.B.dylib 0x7fff86248000 - 0x7fff86278fff libsystem_m.dylib (3086.1) <1E12AB45-6D96-36D0-A226-F24D9FB0D9D6> /usr/lib/system/libsystem_m.dylib 0x7fff863fd000 - 0x7fff86402ff7 libmacho.dylib (862) <126CA2ED-DE91-308F-8881-B9DAEC3C63B6> /usr/lib/system/libmacho.dylib 0x7fff86d00000 - 0x7fff87098ff7 com.apple.CoreFoundation (6.9 - 1153.18) <5C0892B8-9691-341F-9279-CA3A74D59AA0> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation 0x7fff87415000 - 0x7fff8741cff7 libcompiler_rt.dylib (35) <BF8FC133-EE10-3DA6-9B90-92039E28678F> /usr/lib/system/libcompiler_rt.dylib 0x7fff89389000 - 0x7fff8938bff7 libsystem_coreservices.dylib (9) <41B7C578-5A53-31C8-A96F-C73E030B0938> /usr/lib/system/libsystem_coreservices.dylib 0x7fff893ab000 - 0x7fff893e3fff libsystem_network.dylib (412.20.3) <6105C134-6722-3C0A-A4CE-5E1261E2E1CC> /usr/lib/system/libsystem_network.dylib 0x7fff898d8000 - 0x7fff898d9fff libsystem_secinit.dylib (18) <581DAD0F-6B63-3A48-B63B-917AF799ABAA> /usr/lib/system/libsystem_secinit.dylib 0x7fff899df000 - 0x7fff899e0ff7 libsystem_blocks.dylib (65) <9615D10A-FCA7-3BE4-AA1A-1B195DACE1A1> /usr/lib/system/libsystem_blocks.dylib 0x7fff89b60000 - 0x7fff89b7cff7 libsystem_malloc.dylib (53.30.1) <DDA8928B-CC0D-3255-BD8A-3FEA0982B890> /usr/lib/system/libsystem_malloc.dylib 0x7fff8a161000 - 0x7fff8a18cfff libc++abi.dylib (125) <88A22A0F-87C6-3002-BFBA-AC0F2808B8B9> /usr/lib/libc++abi.dylib 0x7fff8a30b000 - 0x7fff8a351ff7 libauto.dylib (186) <A260789B-D4D8-316A-9490-254767B8A5F1> /usr/lib/libauto.dylib 0x7fff8a37f000 - 0x7fff8a3a7fff libsystem_info.dylib (459.40.1) <2E16C4B3-A327-3957-9C41-143911979A1E> /usr/lib/system/libsystem_info.dylib 0x7fff8a928000 - 0x7fff8a929ffb libremovefile.dylib (35) <3485B5F4-6CE8-3C62-8DFD-8736ED6E8531> /usr/lib/system/libremovefile.dylib 0x7fff8af68000 - 0x7fff8b16246f libobjc.A.dylib (647) <759E155D-BC42-3D4E-869B-6F57D477177C> /usr/lib/libobjc.A.dylib 0x7fff8ba0e000 - 0x7fff8ba9afff libsystem_c.dylib (1044.40.2) <69158EFA-8270-30A1-BA02-4F74A4498147> /usr/lib/system/libsystem_c.dylib 0x7fff8bafc000 - 0x7fff8bb05fff libsystem_pthread.dylib (105.40.1) <ACE90967-ECD0-3251-AEEB-461E3C6414F7> /usr/lib/system/libsystem_pthread.dylib 0x7fff8be6c000 - 0x7fff8be75ff7 libsystem_notify.dylib (133.1.1) <61147800-F320-3DAA-850C-BADF33855F29> /usr/lib/system/libsystem_notify.dylib 0x7fff8befa000 - 0x7fff8befaff7 libkeymgr.dylib (28) <77845842-DE70-3CC5-BD01-C3D14227CED5> /usr/lib/system/libkeymgr.dylib 0x7fff8bf02000 - 0x7fff8bf07ff7 libunwind.dylib (35.3) <BE7E51A0-B6EA-3A54-9CCA-9D88F683A6D6> /usr/lib/system/libunwind.dylib 0x7fff8c01f000 - 0x7fff8c030ff7 libz.1.dylib (55) <88C7C7DE-04B8-316F-8B74-ACD9F3DE1AA1> /usr/lib/libz.1.dylib 0x7fff8c082000 - 0x7fff8c093ff3 libsystem_coretls.dylib (35.40.1) <155DA0A9-2046-332E-BFA3-D7974A51F731> /usr/lib/system/libsystem_coretls.dylib 0x7fff8c094000 - 0x7fff8c09cfff libsystem_platform.dylib (63) <64E34079-D712-3D66-9CE2-418624A5C040> /usr/lib/system/libsystem_platform.dylib 0x7fff8c684000 - 0x7fff8c6a1fff libsystem_kernel.dylib (2782.50.2) <FAA95C7E-5A59-35FD-9ED5-80BFB27BF3C7> /usr/lib/system/libsystem_kernel.dylib 0x7fff8c97c000 - 0x7fff8c9f5fe7 libcorecrypto.dylib (233.30.1) <5779FFA0-4D9A-3AD4-B7F2-618227621DC8> /usr/lib/system/libcorecrypto.dylib 0x7fff8ccce000 - 0x7fff8ccd6fff libsystem_dnssd.dylib (576.50.2) <9EC5AF92-D0D2-3BDE-92B6-D3730D3865C8> /usr/lib/system/libsystem_dnssd.dylib 0x7fff8ccd7000 - 0x7fff8ccddff7 libsystem_networkextension.dylib (167.40.3) <BA58B30B-8377-3B0A-8AE3-4F84021D9D4E> /usr/lib/system/libsystem_networkextension.dylib 0x7fff8d4c7000 - 0x7fff8d4c8fff libDiagnosticMessagesClient.dylib (100) <2EE8E436-5CDC-34C5-9959-5BA218D507FB> /usr/lib/libDiagnosticMessagesClient.dylib 0x7fff8da23000 - 0x7fff8da28fff libsystem_stats.dylib (163.30.2) <A55632C9-CAFA-31DC-926C-B1FD07E445C1> /usr/lib/system/libsystem_stats.dylib 0x7fff8ea6c000 - 0x7fff8ea74ffb libcopyfile.dylib (118.1.2) <0C68D3A6-ACDD-3EF3-991A-CC82C32AB836> /usr/lib/system/libcopyfile.dylib 0x7fff8ecb7000 - 0x7fff8ecbdfff libsystem_trace.dylib (72.20.1) <840F5301-B55A-3078-90B9-FEFFD6CD741A> /usr/lib/system/libsystem_trace.dylib 0x7fff8ed04000 - 0x7fff8ed06fff libquarantine.dylib (76.20.1) <7AF90041-2768-378A-925A-D83161863642> /usr/lib/system/libquarantine.dylib 0x7fff8f3ba000 - 0x7fff8f40efff libc++.1.dylib (120) <1B9530FD-989B-3174-BB1C-BDC159501710> /usr/lib/libc++.1.dylib 0x7fff8f925000 - 0x7fff8f94fff7 libdispatch.dylib (442.50.1) <A61E703C-784A-3698-B513-75DD12AAD6DC> /usr/lib/system/libdispatch.dylib 0x7fff8fa69000 - 0x7fff8fa69ff7 liblaunch.dylib (559.40.1) <4F81CA3A-D2CE-3030-A89D-42F3DAD7BA8F> /usr/lib/system/liblaunch.dylib 0x7fff8fa84000 - 0x7fff8fa87ff7 libdyld.dylib (353.2.3) <CDB6EA0B-AAAE-3D81-A456-8D5C32D7E361> /usr/lib/system/libdyld.dylib 0x7fff8fb61000 - 0x7fff8fb65fff libcache.dylib (69) <45E9A2E7-99C4-36B2-BEE3-0C4E11614AD1> /usr/lib/system/libcache.dylib 0x7fff92124000 - 0x7fff92124ff7 libunc.dylib (29) <5676F7EA-C1DF-329F-B006-D2C3022B7D70> /usr/lib/system/libunc.dylib 0x7fff92dd1000 - 0x7fff92dd3fff libsystem_sandbox.dylib (358.20.5) <3F5E973F-C702-31AC-97BC-05F5C195683C> /usr/lib/system/libsystem_sandbox.dylib


External Modification Summary: Calls made by other processes targeting this process: task_for_pid: 0 thread_create: 0 thread_set_state: 0 Calls made by this process: task_for_pid: 0 thread_create: 0 thread_set_state: 0 Calls made by all processes on this machine: task_for_pid: 147301099 thread_create: 0 thread_set_state: 268


VM Region Summary: ReadOnly portion of Libraries: Total=83.9M resident=105.9M(126%) swapped_out_or_unallocated=16777216.0T(20968430895104%) Writable regions: Total=17.6M written=284K(2%) resident=372K(2%) swapped_out=0K(0%) unallocated=17.2M(98%)


REGION TYPE VIRTUAL =========== ======= Kernel Alloc Once 4K MALLOC 9396K MALLOC (admin) 16K STACK GUARD 56.0M Stack 8192K VM_ALLOCATE 8K __DATA 1356K __LINKEDIT 71.1M __TEXT 12.8M __UNICODE 552K shared memory 4K =========== ======= TOTAL 159.0M

No comments found

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Yasm Modular Assembler Project

Shared Ticket Bins

People watching this ticket

Attachments

Pages