#131 (getcwd(NULL, 0) returns NULL on Solaris) – The Yasm Modular Assembler Project

Ticket #131 (closed defect: fixed)

Opened 10 months ago

Last modified 10 months ago

getcwd(NULL, 0) returns NULL on Solaris

Reported by: daniel.davies@… Owned by:
Priority: P1 Milestone:
Component: Core Version: 0.6.0
Severity: normal Keywords: getcwd
Cc:

Description

I'm trying to run yasm 0.6.2 on Solaris 10x86, Update 4. I'm using the following assembly flags:

-I ../include --oformat=elf32 --dformat=dwarf2 --arch=x86 --machine=x86 --parser=nasm -o <my output file> <my input file>

yasm crashes with a seg fault. The problem was that calls to getcwd(NULL, 0) return NULL on Solaris. In the spirit of scientific inquiry, I changed these to "getcwd(NULL, 1024)", which may not be sufficiently general, in libyasm/file.c (two instances) and modules/dbgfmts/dwarf2/dwarf2-info.c. It stopped crashing, but I haven't determined if the code works yet.

Attachments

Change History

comment:1 Changed 10 months ago by peter@…

  • status changed from new to closed
  • resolution set to fixed

Already fixed in [2004]. Please try a recent snapshot.

Add/Change #131 (getcwd(NULL, 0) returns NULL on Solaris)

Author



Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.