Ticket #131 (closed defect: fixed)
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
Note: See
TracTickets for help on using
tickets.
