#18344 closed bug (fixed)
newlocale crashes after a previous call to freelocale
Reported by: | bhaible | Owned by: | nobody |
---|---|---|---|
Priority: | normal | Milestone: | R1/beta5 |
Component: | System/POSIX | Version: | R1/beta4 |
Keywords: | r1beta4-fixes | Cc: | |
Blocked By: | #18336 | Blocking: | |
Platform: | All |
Description
In a program that uses both newlocale() and freelocale(), newlocale may crash. When I comment out the freelocale calls, newlocale no longer crashes (but of course, the program likely has a memory leak then).
$ gcc -Wall foo.c $ ./a.out
Attachments (2)
Change History (9)
by , 20 months ago
comment:1 by , 20 months ago
Keywords: | locale_t newlocale freelocale removed |
---|---|
Platform: | x86-64 → All |
comment:4 by , 19 months ago
Milestone: | Unscheduled → R1/beta5 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Fixed in hrev56941.
comment:5 by , 19 months ago
Could this be backported to beta4? It would likely fix a crash of fontforge during the build of lilypond, see https://github.com/haikuports/haikuports/pull/8394#issuecomment-1510457227
I still need to test that though, probably this weekend.
comment:7 by , 19 months ago
Keywords: | r1beta4-fixes added |
---|
Note:
See TracTickets
for help on using tickets.
test case