MaskRay / ccls

C/C++/ObjC language server supporting cross references, hierarchies, completion and semantic highlighting
Apache License 2.0
3.77k stars 259 forks source link

Assertion fail on RaspberryPi / Raspbian bullseye #857

Open normen opened 2 years ago

normen commented 2 years ago

Observed behavior

Describe what happened. Any aids you can include (that you think could be relevant) are a tremendous help.

ccls: malloc.c:4036: _int_malloc: Assertion '(unsigned long) (size) >= (unsigned long) (nb)' failed

Note that the ccls package is also missing from the Raspbian repository while its available for Intel Debian.

Expected behavior

There should be no assertion error. The library should be available through apt install on Raspbian.

Steps to reproduce

see above

System information

normen commented 2 years ago

Update: When installing ccls using snap this also happens, seems there is a general problem on that platform/OS. This is what I get when running directly from command line using ccls --index=/home/pi/src/arduino-433 -v=2

14:30:54 ccls           initialize.cc:274 I initialize in directory /home/pi/src/arduino-433 with uri file:///home/pi/src/arduino-433
14:30:54 ccls           initialize.cc:297 I initializationOptions: {"compilationDatabaseCommand":"","compilationDatabaseDirectory":"","cache":{"directory":".ccls-cache","format":"binary","hierarchicalPath":false,"retainInMemory":2},"capabilities":{"documentOnTypeFormattingProvider":{"firstTriggerCharacter":"}","moreTriggerCharacter":[]},"foldingRangeProvider":true,"workspace":{"workspaceFolders":{"supported":true,"changeNotifications":true}}},"clang":{"excludeArgs":[],"extraArgs":[],"pathMappings":[],"resourceDir":""},"client":{"diagnosticsRelatedInformation":true,"hierarchicalDocumentSymbolSupport":true,"linkSupport":true,"snippetSupport":true},"codeLens":{"localVariables":true},"completion":{"caseSensitivity":2,"detailedLabel":true,"dropOldRequests":true,"duplicateOptional":true,"filterAndSort":true,"include":{"blacklist":[],"maxPathSize":30,"suffixWhitelist":[".h",".hpp",".hh",".inc"],"whitelist":[]},"maxNum":100,"placeholder":true},"diagnostics":{"blacklist":[],"onChange":1000,"onOpen":0,"onSave":0,"spellChecking":true,"whitelist":[]},"highlight":{"largeFileSize":2097152,"lsRanges":false,"blacklist":[],"whitelist":[]},"index":{"blacklist":[],"comments":2,"initialNoLinkage":false,"initialBlacklist":[],"initialWhitelist":[],"maxInitializerLines":5,"multiVersion":0,"multiVersionBlacklist":[],"multiVersionWhitelist":[],"name":{"suppressUnwrittenScope":false},"onChange":false,"parametersInDeclarations":true,"threads":0,"trackDependency":2,"whitelist":[]},"request":{"timeout":5000},"session":{"maxNum":10},"workspaceSymbol":{"caseSensitivity":1,"maxNum":1000,"sort":true},"xref":{"maxNum":2000}}
14:30:54 ccls           initialize.cc:329 I use -resource-dir=/usr/lib/llvm-11/lib/clang/11.0.1
14:30:54 ccls           initialize.cc:361 I workspace folder: /home/pi/src/arduino-433/
ccls: malloc.c:4036: _int_malloc: Assertion `(unsigned long) (size) >= (unsigned long) (nb)' failed.