-
Notifications
You must be signed in to change notification settings - Fork 573
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
locale.t ends with panic "attempting to unlock already unlocked locale" on Mac OS X Tiger #23159
Comments
Can you provide information on the version of perl you were testing? For example, can you post the output of these commands:
Thanks. |
|
I don't have a Mac, particularly not an older one like that. So the following questions fall into the category of "grasping at straws". I searched for that particular error message on DDG, Google and Stack Exchange and did not find anything that looked relevant.
@khwilliamson, any thoughts on this? |
Yep, I have GCC 14.2 built and installed too. Happy to try with that and report back but do you really expect a compiler issue for 2 test cases which seem to indicate a race, if I've understood the panic message correctly?
ack.
I've been building the perl releases on Tiger/powerpc and run the test suite there, there hasn't been such failures. That's why I mentioned that my powerpc hardware is all uniprocessor, whereas the intel build is on a dual core machine.
|
Could you produce a C stacktrace for that error? Without that it is very difficult to actually to pinpoint where things go wrong. |
On 3/29/25 11:42, Leon Timmermans wrote:
Could you produce a C stacktrace for that error? Without that it is very
difficult to actually to pinpoint where things go wrong.
Use a DEBUGGING build and add -DLv to the perl options that run the
test(s).
…
—
Reply to this email directly, view it on GitHub
<#23159 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAA2DHYNO5NAJOGNZFV3SSL2W3EOVAVCNFSM6AAAAABZ3SXGXGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDONRTHA3TINBZG4>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
Leont*Leont* left a comment (Perl/perl5#23159)
<#23159 (comment)>
Could you produce a C stacktrace for that error? Without that it is very
difficult to actually to pinpoint where things go wrong.
—
Reply to this email directly, view it on GitHub
<#23159 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAA2DHYNO5NAJOGNZFV3SSL2W3EOVAVCNFSM6AAAAABZ3SXGXGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDONRTHA3TINBZG4>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Thanks for the hints, folks. In the
When I run the Is that expected? output from
|
That |
It is definitely the code in |
Except I can't reproduce the issue. Can you do a |
Ok, I'll do that next |
Worked when I ran Output from running the 2 failing tests with a debugging build: |
Initially, I made a mistake and configured with |
On 3/30/25 16:52, Sevan Janiyan wrote:
Worked when I ran |make clean| and removed |config.sh| manually before
running |./Configure -Duseshrplib -Duselargefiles -Dusethreads -des
-Dusedevel -DDEBUGGING|
Output from running the 2 failing tests with a debugging build:
run_locale_t-output.txt
<https://github.com/user-attachments/files/19527838/run_locale_t-output.txt>
lib_locale_t-output.txt
<https://github.com/user-attachments/files/19527839/lib_locale_t-output.txt>
I looked briefly at the logs so far. I'm unsure what your goal is. If
you just need a workaround for the short term, I believe this will get
you going
Add -Accflags='-DNO_LOCALE_COLLATE'"
to your Configure parameters.
What looks to be happening is that a locale for Australia is defective
on this box, and the code does an early return as a result, and doesn't
get the backing out exactly right. That is, it returns before it did
the locale lock, and doesn't realize that it never got locked.
I will look further and get you a proper patch in the next few days
…
—
Reply to this email directly, view it on GitHub
<#23159 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAA2DH6PF6B565FALPAJK2T2XBYR5AVCNFSM6AAAAABZ3SXGXGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDONRUG44DKNRRG4>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
sevan*sevan* left a comment (Perl/perl5#23159)
<#23159 (comment)>
Worked when I ran |make clean| and removed |config.sh| manually before
running |./Configure -Duseshrplib -Duselargefiles -Dusethreads -des
-Dusedevel -DDEBUGGING|
Output from running the 2 failing tests with a debugging build:
run_locale_t-output.txt
<https://github.com/user-attachments/files/19527838/run_locale_t-output.txt>
lib_locale_t-output.txt
<https://github.com/user-attachments/files/19527839/lib_locale_t-output.txt>
—
Reply to this email directly, view it on GitHub
<#23159 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAA2DH6PF6B565FALPAJK2T2XBYR5AVCNFSM6AAAAABZ3SXGXGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDONRUG44DKNRRG4>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Thank you. Happy to take the patch for a test run & report back whenever it is available. |
Confirmed, configuring with
|
I put up a patch for this several days ago but typed this issue number incorrectly, so that github did not notify anyone subscribed to just this ticket. |
I cleaned my source directory, applied the patch, removed Test suite passed:
|
On Mac OS X Tiger/i386 (darwin 8) when running the test suite 2 failures are observed. One in
run/locale.t
and one in../lib/locale.t
.for
run/locale.t
for
../lib/locale.t
The issue is not observed on Tiger/powerpc but I'm not sure if that's just because all the PowerPC systems I have to test on are uniprocessor and this is a bug observed on multiprocessor systems or the issue is actually exclusive to the Intel build as there are version differences with components shipped with the OS (they're newer on the Intel build)
I built and ran the test suite using the following steps
./Configure -Duseshrplib -Duselargefiles -Dusethreads -des -Dusedevel && make && make test
The text was updated successfully, but these errors were encountered: