Opened 16 years ago
Closed 16 years ago
#3411 closed bug (fixed)
Programs that call setbuf(fp, NULL) dump core
Reported by: | schily | Owned by: | axeld |
---|---|---|---|
Priority: | normal | Milestone: | R1 |
Component: | - General | Version: | R1/pre-alpha1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
setbuf() calls setbuffer() and setbuffer calls a NULL pointer from an incompletely initalized struct of function pointer that belongs to libc.
Please implement the missing function "__setbuf()
".
star, smake, cdrtools and other programs will not work witout a fix.
Change History (5)
comment:1 by , 16 years ago
comment:2 by , 16 years ago
setbuf() is part of libc and calls setbuffer() The program aborts because setbuffer tries to call a function via a structure of function pointers. The specific entry setbuffer from libc tries to call is a NULL pointer.
Note:
See TracTickets
for help on using tickets.
Here is a stacktrace with smake: