Hi, I have just compiled the latest git, replaced aped and libmod_spidermonkey.so, then launched as usual. The result is a "segmentation fault" error message.
>From what I read somewhere else in this group, I should try valgrind, so this is what I did, but that does not help me much. If you can help... nico...@ubuntu:/usr/lib/ape$ sudo valgrind /usr/bin/aped --cfg /etc/ ape/ape.conf ==27636== Memcheck, a memory error detector ==27636== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al. ==27636== Using Valgrind-3.6.0.SVN-Debian and LibVEX; rerun with -h for copyright info ==27636== Command: /usr/bin/aped --cfg /etc/ape/ape.conf ==27636== _ ___ ___ /_\ | _ \ __| / _ \| _/ _| /_/ \_\_| |___| AJAX Push Engine Bind on port 6969 Version : 1.01dev Build : Nov 8 2010 18:17:23 Author : Weelya ([email protected]) ==27636== Invalid read of size 4 ==27636== at 0x805A693: transport_start (in /usr/bin/aped) ==27636== by 0x804D368: main (in /usr/bin/aped) ==27636== Address 0x41d8b60 is 16 bytes inside a block of size 19 alloc'd ==27636== at 0x4024F20: malloc (vg_replace_malloc.c:236) ==27636== by 0x40F04AF: strdup (strdup.c:43) ==27636== by 0x8058690: xstrdup (in /usr/bin/aped) ==27636== by 0x805399B: ape_config_load (in /usr/bin/aped) ==27636== by 0x804CE33: main (in /usr/bin/aped) ==27636== ==27636== Use of uninitialised value of size 4 ==27636== at 0x8057046: plugin_read_config (in /usr/bin/aped) ==27636== by 0x8057337: findandloadplugin (in /usr/bin/aped) ==27636== by 0x804D370: main (in /usr/bin/aped) ==27636== ==27636== Invalid read of size 4 ==27636== at 0x8057046: plugin_read_config (in /usr/bin/aped) ==27636== by 0x8057337: findandloadplugin (in /usr/bin/aped) ==27636== by 0x804D370: main (in /usr/bin/aped) ==27636== Address 0xc is not stack'd, malloc'd or (recently) free'd ==27636== ==27636== ==27636== Process terminating with default action of signal 11 (SIGSEGV) ==27636== Access not within mapped region at address 0xC ==27636== at 0x8057046: plugin_read_config (in /usr/bin/aped) ==27636== by 0x8057337: findandloadplugin (in /usr/bin/aped) ==27636== by 0x804D370: main (in /usr/bin/aped) ==27636== If you believe this happened as a result of a stack ==27636== overflow in your program's main thread (unlikely but ==27636== possible), you can try to increase the size of the ==27636== main thread stack using the --main-stacksize= flag. ==27636== The main thread stack size used in this run was 8388608. ==27636== ==27636== HEAP SUMMARY: ==27636== in use at exit: 124,690 bytes in 167 blocks ==27636== total heap usage: 256 allocs, 89 frees, 168,344 bytes allocated ==27636== ==27636== LEAK SUMMARY: ==27636== definitely lost: 120 bytes in 3 blocks ==27636== indirectly lost: 384 bytes in 32 blocks ==27636== possibly lost: 0 bytes in 0 blocks ==27636== still reachable: 124,186 bytes in 132 blocks ==27636== suppressed: 0 bytes in 0 blocks ==27636== Rerun with --leak-check=full to see details of leaked memory ==27636== ==27636== For counts of detected and suppressed errors, rerun with: -v ==27636== Use --track-origins=yes to see where uninitialised values come from ==27636== ERROR SUMMARY: 3 errors from 3 contexts (suppressed: 39 from 10) Segmentation fault -- You received this message because you are subscribed to the Google Groups "APE Project" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/ape-project?hl=en --- APE Project (Ajax Push Engine) Official website : http://www.ape-project.org/ Git Hub : http://github.com/APE-Project/
