Nice,

but maybe you should malloc strings with a more secured way...

[EMAIL PROTECTED] ~ $ ./eme
----------------------------------------
Enlightenment Menu Editor
v0.1 by Jason Kielpinski
----------------------------------------

        -- Menu Entries ----------------------------------
unknown action...
*** glibc detected *** malloc(): memory corruption: 0x0804b258 ***
Abandon

[EMAIL PROTECTED] ~ $ gdb eme
GNU gdb 6.4
Copyright 2005 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...Using host libthread_db library
"/lib/libthread_db.so.1".

(gdb) r
Starting program: /home/michel/eme
----------------------------------------
Enlightenment Menu Editor
v0.1 by Jason Kielpinski
----------------------------------------

        -- Menu Entries ----------------------------------
unknown action...
*** glibc detected *** malloc(): memory corruption: 0x0804b258 ***

Program received signal SIGABRT, Aborted.
0x40058671 in kill () at string2.h:1000
1000    string2.h: Aucun fichier ou répertoire de ce type.
        in string2.h
(gdb) bt
#0  0x40058671 in kill () at string2.h:1000
#1  0x40058285 in *__GI_raise (sig=6) at
../linuxthreads/sysdeps/unix/sysv/linux/raise.c:32
#2  0x40059a00 in *__GI_abort () at ../sysdeps/generic/abort.c:88
#3  0x4008c53e in __libc_message (do_abort=2, fmt=0x40141840 "*** glibc detected
*** %s: 0x%s ***\n")
    at ../sysdeps/unix/sysv/linux/libc_fatal.c:145
#4  0x400923d6 in malloc_printerr (action=2, str=0x4013eecb "malloc(): memory
corruption", ptr=0x0) at malloc.c:5525
#5  0x400933d2 in _int_malloc (av=0x4014c9e0, bytes=0) at malloc.c:3933
#6  0x40094b91 in *__GI___libc_malloc (bytes=256) at malloc.c:3339
#7  0x0804919f in getEntry (
    contents=0x804b328 "\"e16 main menu\"\n\"console\"\tNULL\texec\t\"xterm
-ls\"\n\"rox\"\t\tNULL\texec\t\"rox\"\n\"top\"\t\tNULL\texec\t\"ksysguard\"\n\"calculette\"\tNULL\texec\t\"xcalc\"\n\"Emacs\"\t\tNULL\texec\t\"emacs\"\n\"-----\"
        NULL    .       .\n\"Mozilla"..., num=1) at eme.c:403
#8  0x08048ec3 in dispEntries (
    contents=0x804b328 "\"e16 main menu\"\n\"console\"\tNULL\texec\t\"xterm
-ls\"\n\"rox\"\t\tNULL\texec\t\"rox\"\n\"top\"\t\tNULL\texec\t\"ksysguard\"\n\"calculette\"\tNULL\texec\t\"xcalc\"\n\"Emacs\"\t\tNULL\texec\t\"emacs\"\n\"-----\"
        NULL    .       .\n\"Mozilla"...) at eme.c:304
#9  0x0804882a in main (argc=1, argv=0xbfaab624) at eme.c:120
(gdb)

Regards,
Michel


Jason Kielpinski a écrit :
> I hacked up this little menu editor. It's slightly more convenient
> than editing the config file..  feel free to spread it around if you
> want. Comments/suggestions/bug reports more than welcome. If there's
> enough interest I'll make a better one (and a GUI one maybe).
> 
> --
> Jason Kielpinski


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to