Skip to content

Malloc error with Livescribe Echo #32

@ire-and-curses

Description

@ire-and-curses

I can run LibreScribe successfully without a pen attached, but on plugging in my Livescribe Echo, the code identifies the pen, prints out a load of XML, then crashes. The last portion of the output, after the XML, reads:

attempting to retrieve named object "ppdata?key=pp0000"...
Setting up page hierarchy...
attempting to retrieve named object "ppdata?key=pp8011"...
retrieved:

device name (hex): 5468757273746f6e436c796465
From HEX: ThurstonClyde
Attempting to start background thread to refresh lists...
Done refreshing device state.
background thread started successfully.
attempting to retrieve named object "penletlist"...
Parsing application list...

[lots of XML here]

strlen of s: 52276
LibreScribe: malloc.c:3096: sYSMALLOc: Assertion `(old_top == (((mbinptr) (((char *) &((av)->bins[((1) - 1) * 2])) - __builtin_offsetof (struct malloc_chunk, fd)))) && old_size == 0) || ((unsigned long) (old_size) >= (unsigned long)((((__builtin_offsetof (struct malloc_chunk, fd_nextsize))+((2 * (sizeof(size_t))) - 1)) & ~((2 * (sizeof(size_t))) - 1))) && ((old_top)->size & 0x1) && ((unsigned long)old_end & pagemask) == 0)' failed.
Aborted

I am a programmer, but not in C++! I have no idea how to go about debugging this one, but I'm happy to provide more details/rerun stuff as necessary. Thanks for your work on this project. Also, it would be awesome if you included a list of dependencies in a README to save almost-clueless users like myself from finding the C dev libraries by trial and error...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions