Hi it's some time i'm trying to understand why in some cases DFB applications trash argc / argv couple in a way that i found to be easy to reproduce using the "sprite" app from tutorials. Below is what i get with gdb: does someone can reproduce this too (i'm running tests on an unstable debian and using DFB from CVS) ? is modification of argc/argv something expected ? if yes, why ?
thanks! Attilio Breakpoint 1, main (argc=1, argv=0xaf9633e4) at sprite.c:81 81 DFBInputDeviceKeyState escape = DIKS_UP; (gdb) watch &argc Watchpoint 2: &argc (gdb) watch argv Hardware watchpoint 3: argv (gdb) c Continuing. Watchpoint 2: &argc Old value = (int *) 0xaf963370 New value = (int *) 0x80483ec 0xa7f34625 in _dl_rtld_di_serinfo () from /lib/ld-linux.so.2 (gdb) p argc No symbol "argc" in current context. (gdb) bt #0 0xa7f34625 in _dl_rtld_di_serinfo () from /lib/ld-linux.so.2 #1 0xa7f34470 in _dl_rtld_di_serinfo () from /lib/ld-linux.so.2 #2 0x08048582 in main (argc=134521856, argv=0x107) at sprite.c:92 (gdb) c Continuing. Watchpoint 2: &argc Old value = (int *) 0x80483ec New value = (int *) 0xd07 0xa7f3462e in _dl_rtld_di_serinfo () from /lib/ld-linux.so.2 (gdb) bt #0 0xa7f3462e in _dl_rtld_di_serinfo () from /lib/ld-linux.so.2 #1 0xa7f34470 in _dl_rtld_di_serinfo () from /lib/ld-linux.so.2 #2 0x08048582 in main (argc=Cannot access memory at address 0xd07 ) at sprite.c:92 _______________________________________________ directfb-dev mailing list [email protected] http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev
