Share

The Netwide Assembler

Tracker: Bugs

9 NASM crashes when building x64 .obj file - ID: 2873489
Last Update: Comment added ( nobody )

I have been trying to convert TrueCrypt to use solely NASM - a fresh
download uses both NASM and YASM. However, NASM crashes when assembling the
Aes_x64.asm file.

Steps to reproduce:
1 - download the attached file
2 - alter YASM instructions to NASM equivalents; change line 719 from:
lea tptr,[enc_tab wrt rip]
to:
lea tptr,[rel enc_tab]
and line 833 from:
lea tptr,[dec_tab wrt rip]
to:
lea tptr,[rel dec_tab]
3 - execute nasm.exe -Xvc -f win64 -d DLL_EXPORT -o Aes_x64.obj
Aes_x64.asm. NASM will crash

To avoid the crash, comment out line 675:
export aes_encrypt
or remove -d DLL_EXPORT from the command line.

NASM version - 2.07
OS - WinXP SP3

Thanks,
Barry


Barry ( barrydrink ) - 2009-10-06 14:26

9

Closed

Fixed

Nobody/Anonymous

Assembler

None

Public


Comments ( 5 )




Date: 2009-10-14 09:10
Sender: nobody

Just tried the 2.08-rc1 windows build and the problem is indeed fixed.


Date: 2009-10-13 18:50
Sender: hpaProject Admin

See bug report 2827397 for details on the bug.



Date: 2009-10-13 18:50
Sender: hpaProject Admin

Nevermind. I was able to reproduce this, and this is, indeed, explicitly
fixed by checkin 7ad24562dccca867d9ba591ac7dd242456003c5b. So this is, of
course, a real bug, but it has been fixed already.

I guess it is time for 2.08-rc1 soon...



Date: 2009-10-13 18:50
Sender: hpaProject Admin

The current version doesn't appear to have this problem. You may want to
try the latest release version and/or the latest snapshot from
http://www.nasm.us/.




Date: 2009-10-13 18:43
Sender: hpaProject Admin

This does not seem to happen with the latest snapshot build, could you
please confirm that?

That may just be hiding the error, though -- I don't see anything in the
history which is likely to be a fix for this problem...


Log in to comment.




Attached File ( 1 )

Filename Description Download
Aes_x64.asm 64 bit AES file from TrueCrypt source Download

Changes ( 5 )

Field Old Value Date By
resolution_id None 2009-10-13 18:50 hpa
status_id Open 2009-10-13 18:50 hpa
close_date - 2009-10-13 18:50 hpa
priority 5 2009-10-13 18:43 hpa
File Added 345507: Aes_x64.asm 2009-10-06 14:26 barrydrink