Skip to content
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

Crashes in Java_net_sf_sevenzipjbinding_impl_InArchiveImpl_nativeGetStringProperty #42

Open
mkartashev opened this issue Jun 10, 2024 · 0 comments

Comments

@mkartashev
Copy link

Sample stack traces look like

C  [lib7-Zip-JBinding.dylib+0x357ec]  MultiByteToUnicodeString(CStringBase<char> const&, unsigned int)+0xbc
C  [lib7-Zip-JBinding.dylib+0x9ec34]  NArchive::NTar::TarStringToUnicode(CStringBase<char> const&)+0x10
C  [lib7-Zip-JBinding.dylib+0x9e9ac]  NArchive::NTar::CHandler::GetProperty(unsigned int, unsigned int, tagPROPVARIANT*)+0x70
C  [lib7-Zip-JBinding.dylib+0x16dcc]  Java_net_sf_sevenzipjbinding_impl_InArchiveImpl_nativeGetStringProperty+0xb8
j  net.sf.sevenzipjbinding.impl.InArchiveImpl.nativeGetStringProperty(II)Ljava/lang/String;+0
j  net.sf.sevenzipjbinding.impl.InArchiveImpl.getStringProperty(ILnet/sf/sevenzipjbinding/PropID;)Ljava/lang/String;+61
j  net.sf.sevenzipjbinding.simple.impl.SimpleInArchiveItemImpl.getPath()Ljava/lang/String;+14
j  com.github.b3er.idea.plugins.arc.browser.formats.sevenzip.SevenZipArchiveHandler.getIdeaPath(Lnet/sf/sevenzipjbinding/simple/ISimpleInArchiveItem;)Ljava/lang/String;+4
j  com.github.b3er.idea.plugins.arc.browser.formats.sevenzip.SevenZipArchiveHandler.getItemForPath(Lcom/github/b3er/idea/plugins/arc/browser/formats/sevenzip/SevenZipArchiveHolder;Ljava/lang/String;)Lnet/sf/sevenzipjbinding/simple/ISimpleInArchiveItem;+72
j  com.github.b3er.idea.plugins.arc.browser.formats.sevenzip.SevenZipArchiveHandler.contentsToByteArray(Ljava/lang/String;)[B+38
J 194160 c2 com.intellij.openapi.vfs.newvfs.ArchiveFileSystem$$Lambda$923+0x00000070009c8e10.apply(Ljava/lang/Object;)Ljava/lang/Object; (12 bytes) @ 0x0000000148e90e60 [0x0000000148e90c00+0x0000000000000260]
J 173289 c2 com.intellij.openapi.vfs.DiskQueryRelay$$Lambda$1305+0x0000007000df5898.call()Ljava/lang/Object; (12 bytes) @ 0x00000001441012a0 [0x0000000144101240+0x0000000000000060]

or

C  [lib7-Zip-JBinding.dylib+0xe648]  CObjectVector<CArcInfoEx>::operator[](int) const+0xc
C  [lib7-Zip-JBinding.dylib+0x91768]  NArchive::NIso::CHandler::GetProperty(unsigned int, unsigned int, tagPROPVARIANT*)+0xcc
C  [lib7-Zip-JBinding.dylib+0x16dcc]  Java_net_sf_sevenzipjbinding_impl_InArchiveImpl_nativeGetStringProperty+0xb8
J 19588  net.sf.sevenzipjbinding.impl.InArchiveImpl.nativeGetStringProperty(II)Ljava/lang/String; (0 bytes) @ 0x0000000138705b64 [0x0000000138705ac0+0x00000000000000a4]
J 194557 c1 net.sf.sevenzipjbinding.impl.InArchiveImpl.getStringProperty(ILnet/sf/sevenzipjbinding/PropID;)Ljava/lang/String; (65 bytes) @ 0x0000000128690f70 [0x0000000128690d40+0x0000000000000230]
J 198055 c1 com.github.b3er.idea.plugins.arc.browser.formats.sevenzip.SevenZipArchiveHandler.getItemForPath(Lcom/github/b3er/idea/plugins/arc/browser/formats/sevenzip/SevenZipArchiveHolder;Ljava/lang/String;)Lnet/sf/sevenzipjbinding/simple/ISimpleInArchiveItem; (113 bytes) @ 0x00000001285a4928 [0x00000001285a4540+0x00000000000003e8]
j  com.github.b3er.idea.plugins.arc.browser.formats.sevenzip.SevenZipArchiveHandler.getInputStream(Ljava/lang/String;)Ljava/io/InputStream;+40
J 189660 c2 com.intellij.openapi.vfs.newvfs.ArchiveFileSystem.getInputStream(Lcom/intellij/openapi/vfs/VirtualFile;)Ljava/io/InputStream; (32 bytes) @ 0x00000001384b7d30 [0x00000001384b7c00+0x0000000000000130]
J 193296 c2 com.intellij.openapi.fileTypes.impl.FileTypeDetectionService$$Lambda+0x000000080068ce20.apply(Ljava/lang/Object;)Ljava/lang/Object; (12 bytes) @ 0x000000013a77ed54 [0x000000013a77ec80+0x00000000000000d4]

The issue is also present in YouTrack here:
JBR-7274 Crash in Java_net_sf_sevenzipjbinding_impl_InArchiveImpl_nativeGetStringProperty

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant