navinseshadri / iksemel

Automatically exported from code.google.com/p/iksemel
GNU Lesser General Public License v2.1
0 stars 0 forks source link

tst-sax during "make check" segmentation faults #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi, I've just added 1.3 to Gentoo Portage but there is a long unresolved
issue that would need your attention,

$ LD_LIBRARY_PATH="/tmp/iksemel-1.3/src/.libs:$LD_LIBRARY_PATH" gdb ./tst-sax 

GNU gdb 6.7.1
Copyright (C) 2007 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu"...
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run
Starting program: /tmp/iksemel-1.3/test/.libs/tst-sax 
warning: no loadable sections found in added symbol-file system-supplied DSO at
0x7fff20dfd000
Sax test 3, blocksize 0, element 1:
  Expecting tag <mytag>
    abc='123'
    id='XC72'

Program received signal SIGSEGV, Segmentation fault.
0x00002add8ae28cc0 in strlen () from /lib/libc.so.6
(gdb) bt
#0  0x00002add8ae28cc0 in strlen () from /lib/libc.so.6
#1  0x00002add8adf7e10 in vfprintf () from /lib/libc.so.6
#2  0x00002add8adfda1a in printf () from /lib/libc.so.6
#3  0x0000000000400e1c in debug_tag (type=IKS_OPEN, name=0x6042a0 "mytag", 
    atts=0x604330) at tst-sax.c:123
#4  0x00000000004010ac in tagHook (udata=<value optimized out>, 
    name=0x6042a0 "mytag", atts=0x604330, type=<value optimized out>)
    at tst-sax.c:169
#5  0x00002add89f7bb51 in iks_parse (prs=0x604200, 
    data=0x401d00 "<mytag abc='123' id=\"XC72\"></mytag>", 
    len=<value optimized out>, finish=<value optimized out>) at sax.c:324
#6  0x0000000000400c43 in test_size (blocksize=550816680) at tst-sax.c:228
#7  0x0000000000400cea in test () at tst-sax.c:253
#8  0x000000000040142f in main (argc=<value optimized out>, 
    argv=<value optimized out>) at tst-sax.c:299
(gdb)

This is x86_64 system with GCC 4.2.2.

Original issue reported on code.google.com by d...@gentoo.org on 11 Nov 2007 at 6:40

GoogleCodeExporter commented 9 years ago
Issue 7 has been merged into this issue.

Original comment by meduke...@gmail.com on 18 Jul 2009 at 9:16

GoogleCodeExporter commented 9 years ago
I have no access to any 64bit machine, so I did a bit of psychic debugging. 
Please
test the attached patch for me.

Original comment by meduke...@gmail.com on 18 Jul 2009 at 11:58

Attachments:

GoogleCodeExporter commented 9 years ago
OK, found a 64bit machine, and appearently fix is working. I've committed patch 
to
the svn trunk. Waiting your confirmation for closing this issue.

Original comment by meduke...@gmail.com on 20 Jul 2009 at 3:12

GoogleCodeExporter commented 9 years ago

Original comment by meduke...@gmail.com on 22 Jul 2009 at 8:00

GoogleCodeExporter commented 9 years ago
Bug is fixed in my tests. You may reopen it if problem persists in your system. 
I'm
closing the bug with the release of 1.4 today.

Original comment by meduke...@gmail.com on 25 Jul 2009 at 11:23