{"id":15613313,"url":"https://github.com/bostrt/jvm-loop-unswitching-bug-simplified","last_synced_at":"2025-04-06T14:28:14.158Z","repository":{"id":137793031,"uuid":"124473584","full_name":"bostrt/jvm-loop-unswitching-bug-simplified","owner":"bostrt","description":"Reproducer for https://bugs.java.com/view_bug.do?bug_id=8021898 and https://issues.apache.org/jira/browse/HTTPCLIENT-1173","archived":false,"fork":false,"pushed_at":"2018-03-09T02:12:07.000Z","size":833,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-12T20:36:13.690Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bostrt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-03-09T02:05:16.000Z","updated_at":"2018-03-09T20:32:27.000Z","dependencies_parsed_at":"2023-05-22T14:00:13.672Z","dependency_job_id":null,"html_url":"https://github.com/bostrt/jvm-loop-unswitching-bug-simplified","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bostrt%2Fjvm-loop-unswitching-bug-simplified","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bostrt%2Fjvm-loop-unswitching-bug-simplified/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bostrt%2Fjvm-loop-unswitching-bug-simplified/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bostrt%2Fjvm-loop-unswitching-bug-simplified/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bostrt","download_url":"https://codeload.github.com/bostrt/jvm-loop-unswitching-bug-simplified/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247494913,"owners_count":20947960,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T07:00:59.391Z","updated_at":"2025-04-06T14:28:14.143Z","avatar_url":"https://github.com/bostrt.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"## What is this?\n\nAll credit for this particular reproducer goes to [rholder](https://github.com/rholder). This repository just contains a stupid simple version of his reproducer that only needs `java` and `javac`.\n\n## How to use\n\nIf you are *trying* to reproduce the issue then make sure you have an old Java version. Below, you can see I'm using 1.7.0_55 which is older than the verion where the bug was fixed (in 1.7.0_60+ or 1.8+).\n\n```\n# java -version\njava version \"1.7.0_55\"\nOpenJDK Runtime Environment (rhel-2.4.7.2.el7_0-x86_64 u55-b13)\nOpenJDK 64-Bit Server VM (build 24.51-b03, mixed mode)\n\n# javac -cp ./httpclient-4.2.2.jar:./commons-lang-2.6.jar:./httpcore-4.2.2.jar JvmBug.java\n# java -cp .:./httpclient-4.2.2.jar:./commons-lang-2.6.jar:./httpcore-4.2.2.jar JvmBug\n```\n\nEventually, the second command that runs the reproducer should result in someting like:\n\n```\n# A fatal error has been detected by the Java Runtime Environment:\n#\n#  SIGSEGV (0xb) at pc=0x00007fc3f90751a1, pid=75921, tid=140479307597568\n#\n# JRE version: OpenJDK Runtime Environment (7.0_55-b13) (build 1.7.0_55-mockbuild_2014_05_30_13_47-b00)\n# Java VM: OpenJDK 64-Bit Server VM (24.51-b03 mixed mode linux-amd64 compressed oops)\n# Problematic frame:\n# J  org.apache.http.impl.cookie.BestMatchSpec.formatCookies(Ljava/util/List;)Ljava/util/List;\n#\n# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try \"ulimit -c unlimited\" before starting Java again\n#\n# An error report file with more information is saved as:\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbostrt%2Fjvm-loop-unswitching-bug-simplified","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbostrt%2Fjvm-loop-unswitching-bug-simplified","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbostrt%2Fjvm-loop-unswitching-bug-simplified/lists"}