ds4-server(50971,0x543f23000) malloc: *** error for object 0xbd1378170: pointer being freed was not allocated

Aperta
#1,188 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
42/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
c
Ambito
backend

Direzione di ricerca

Start from the log lines 'vision embedding encoded; cache=... bytes' and find where ds4-server allocates and frees that vision embedding cache, since the abort happens right after repeated cache growth. Then trace the adjacent KV cache load/miss path shown in the log ('kv cache miss', 'kv cache hit') for a double free or use of a non-owned pointer, and reproduce with the reported command (./ds4-server --ctx 150000 --kv-disk-dir ...). Done looks like identifying the offending free and validating a fix under repeated vision-bearing prompts without the malloc abort.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

not sure if this oom or not
macstudio m1 ultra was working normal several days then just crashed

1006 21:45:45 ds4-server: chat ctx=112081..112131:50 gen=200 TOOLS DSML_START decoding chunk=28.59 t/s avg=27.79 t/s 7.197s
1006 21:45:46 ds4-server: chat ctx=112131..112147:16 gen=216 TOOLS DSML_START DSML_END decoding chunk=31.20 t/s avg=28.02 t/s 7.709s
1006 21:45:46 ds4-server: tool calls ctx=0..111931:111931 n=1 raw_tool_text=1 ids=[call_884fbce9833b7481fe69f6984bb67a86] names=[shell]
1006 21:45:46 ds4-server: chat ctx=0..111931:111931 gen=216 TOOLS DSML_START DSML_END finish=tool_calls 256.261s
1006 21:45:46 ds4-server: live kv cache miss live=112147 prompt=57317 common=3 vision=mismatch reason=token-mismatch
1006 21:45:48 ds4-server: kv cache hit text tokens=40960 text=140331 quant=2 key=token-text load=279.8 ms file=/Volumes/5tb/server-kv/39d21962c7cc415fef0425540d8ce5128b5da27a.kv
1006 21:45:48 ds4-server: chat ctx=40960..57317:16357 TOOLS prompt start
1006 21:46:06 ds4-server: chat ctx=40960..57317:16357 TOOLS prefill chunk 8192/16357 (50.1%) chunk=0.00 t/s avg=449.45 t/s 18.227s
1006 21:46:24 ds4-server: chat ctx=40960..57317:16357 TOOLS prefill chunk 16357/16357 (100.0%) chunk=447.55 t/s avg=448.50 t/s 36.470s
1006 21:46:24 ds4-server: chat ctx=40960..57317:16357 TOOLS prompt done 36.471s
1006 21:46:24 ds4-server: vision embedding cache hit
1006 21:46:24 ds4-server: vision embedding encoded; cache=36306920 bytes
1006 21:46:25 ds4-server: vision embedding encoded; cache=37510025 bytes
1006 21:46:25 ds4-server: vision embedding encoded; cache=38712167 bytes
1006 21:46:25 ds4-server: vision embedding encoded; cache=39916638 bytes
ds4-server(50971,0x543f23000) malloc: *** error for object 0xbd1378170: pointer being freed was not allocated
ds4-server(50971,0x543f23000) malloc: *** set a breakpoint in malloc_error_break to debug
zsh: abort ./ds4-server -m --ctx 150000 --host 0.0.0.0 --port 25002 --kv-disk-dir

Image
Lingua principale
C
Stelle
24.4k
Fork
2.4k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di antirez/ds4

Tutte le issue di antirez/ds4

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.