Derek Carter wrote:


from what I understand, you should call a library from an external app
most libraries, when called directly, will segfault right away. If your
goal is to troubleshoot that specific lib, use ltrace (which is like strace but for libraries)

Good to know.

Well, I installed ltrace and it still segfaults. here's the output:

# ltrace -d /usr/local/lib/libsablot.so
DEBUG: read_config_file.c:172: read_config_file(): Reading config file `/etc/ltrace.conf'... DEBUG: read_config_file.c:172: read_config_file(): Reading config file `/root/.ltrace.conf'... DEBUG: elf.c:32: do_init_elf(): Reading ELF from /usr/local/lib/libsablot.so... DEBUG: elf.c:216: do_init_elf(): /usr/local/lib/libsablot.so 1207 PLT relocations DEBUG: execute_program.c:75: execute_program(): Executing `/usr/local/lib/libsablot.so'...
DEBUG: execute_program.c:89: execute_program(): PID=4462
DEBUG: breakpoints.c:85: enable_all_breakpoints(): Enabling breakpoints for pid 4462...
DEBUG: process_event.c:70: process_event(): event: none
DEBUG: process_event.c:73: process_event(): event: signal (SIGSEGV [11])
--- SIGSEGV (Segmentation fault) ---
DEBUG: process_event.c:81: process_event(): event: exit signal (SIGSEGV [11])
+++ killed by SIGSEGV +++
DEBUG: process_event.c:135: remove_proc(): Removing pid 4462

DEBUG: wait_for_something.c:30: wait_for_something(): No more children

-----------------------------------------------------------------------------------

Maybe something is wrong with the elf libraries? Any thoughts?

Ashley



--------------------
BYU Unix Users Group http://uug.byu.edu/
The opinions expressed in this message are the responsibility of their
author. They are not endorsed by BYU, the BYU CS Department or BYU-UUG. ___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list

Reply via email to