From: Bob D. <bd...@si...> - 2004-01-07 20:44:22
|
Hey, how are you calling rlib_add_report thats seems to be what is causing the crash.. because we are estrduping a null pointer.. this should not be possible if PHP is behaving right because we have this if(mainloop_count > 0) rlib_add_report(rip->r, estrdup(name), estrdup(mainloop)); else rlib_add_report(rip->r, estrdup(name), NULL); On Wed, 2004-01-07 at 12:40, Everton Luis Berz wrote: > Hi, > I have been installed rlib 1.1.6 (libcpdf 2.02r1-0) > on slackware 9.1, php 4.3.4, postgresql 7.4.1. > The compilation was sucessful but when I run a simple > report (from my examples, at RH9 them runs) rlib say: > > ** NUTS.. WE CRASHED > Quit (core dumped) > > Follow the stack trace of core: > > Reading symbols from /usr/lib/libcpdf.so.2...done. > Loaded symbols for /usr/lib/libcpdf.so.2 > Reading symbols from /usr/local/lib/libr-postgre.so...done. > Loaded symbols for /usr/local/lib/libr-postgre.so > #0 0x40318ac1 in kill () from /lib/libc.so.6 > (gdb) bt > #0 0x40318ac1 in kill () from /lib/libc.so.6 > #1 0x404a559b in myFaultHandler (signum=11, si=0x0, aptr=0x0) at util.c:46 > #2 0x405c3c45 in __pthread_sighandler () from /lib/libpthread.so.0 > #3 <signal handler called> > #4 0x4036ae53 in strlen () from /lib/libc.so.6 > #5 0x0815503e in _estrdup (s=0x2 <Address 0x2 out of bounds>) at > /usr/local/src/php-4.3.4/Zend/zend_alloc.c:363 > #6 0x404317be in zif_rlib_add_report (ht=2, return_value=0x0, > this_ptr=0x0, return_value_used=0) at php.c:247 > #7 0x08171c1e in execute (op_array=0x8252c9c) at > /usr/local/src/php-4.3.4/Zend/zend_execute.c:1616 > #8 0x0816413f in zend_execute_scripts (type=8, retval=0x0, > file_count=3) at /usr/local/src/php-4.3.4/Zend/zend.c:884 > #9 0x0813ad58 in php_execute_script (primary_file=0xbffff950) at > /usr/local/src/php-4.3.4/main/main.c:1729 > #10 0x08176bf6 in main (argc=2, argv=0xbffff9e4) at > /usr/local/src/php-4.3.4/sapi/cli/php_cli.c:819 > #11 0x40304d06 in __libc_start_main () from /lib/libc.so.6 > > > > Mysql database causes same error. > > Help-me :/ |