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

Malloc error with Livescribe Echo #32

Open
ire-and-curses opened this issue Apr 2, 2012 · 2 comments
Open

Malloc error with Livescribe Echo #32

ire-and-curses opened this issue Apr 2, 2012 · 2 comments

Comments

@ire-and-curses
Copy link

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...

@krisjans
Copy link
Contributor

krisjans commented May 7, 2012

I got similar problem(s) while trying to build and run Librescribe on Ubuntu 10.04 LTS. I was able to build, and even run the application (with Echo pen connected), but it randomly crashed at different places - most often in malloc or free functions.
Sometimes I run as far as to display list of all used notebooks. But then it crashed as soon as I clicked any notebook. This crash was in GUIFrame.cc. Reason for crash - illegal instruction. I checked with disassembler and discovered that indeed there was illegal instruction in generated machine code - in function that was called when selecting notebook from list. That gave me idea that i don't have proper compiler and/or some library versions.

Then I upgraded my PC to Ubuntu 12.04 LTS and it works - I can connect my Echo pen, sync it and convert notes to images.

@krisjans
Copy link
Contributor

krisjans commented May 7, 2012

Since I don't like Ubuntu 12.04 LTS user interface I reverted back to Ubuntu 10.04 LTS and resolved build issues there.

Ubuntu 10.04 have GCC version 4.4.3. If it is upgraded to GCC version 4.7.0 (or later) then LibreScribe builds and runs stable - I was able connect my Echo 2Gb pen and download my notes from it and view them (as images).
List of packages (and required version) that needs to be upgraded in Ubuntu 10.04:
gcc-4.7.0
mpfr-3.1.0
gmp-5.0.5
mpc-0.9
codeblocks-10.05
It may be possible that even older versions would do - I just listed versions that worked for me.

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

2 participants