Bug 26548 - SEGV Listener univention_debug
SEGV Listener univention_debug
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Listener (univention-directory-listener)
UCS 3.0
All Linux
: P5 normal (vote)
: UCS 3.0-2
Assigned To: Philipp Hahn
Stefan Gohmann
: interim-2
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-03-16 19:23 CET by Philipp Hahn
Modified: 2012-07-20 15:24 CEST (History)
1 user (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional): Troubleshooting
Max CVSS v3 score:
hahn: Patch_Available+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Hahn univentionstaff 2012-03-16 19:23:49 CET
Bei der QA mit Debug-Level 4 tritt ein SEGV auf.

0x00007ffff6cf9dfa in _IO_vfprintf_internal (s=0x7fffffffd290, format=<value optimized out>, ap=0x7fffffffdaf0) at vfprintf.c:1614
1614    vfprintf.c: Datei oder Verzeichnis nicht gefunden.
        in vfprintf.c
(gdb) bt
#0  0x00007ffff6cf9dfa in _IO_vfprintf_internal (s=0x7fffffffd290, format=<value optimized out>, ap=0x7fffffffdaf0)
    at vfprintf.c:1614
#1  0x00007ffff6cfb0f0 in buffered_vfprintf (s=0x7ffff7010860, format=0x4107af " bytes for %s", args=0x28) at vfprintf.c:2255
#2  0x00007ffff6cf5e9e in _IO_vfprintf_internal (s=0x7ffff7010860, format=0x4107a9 "put %d bytes for %s", ap=0x7fffffffdaf0)
    at vfprintf.c:1306
#3  0x00007ffff7bde279 in univention_debug () from /usr/lib/libuniventiondebug.so.1
#4  0x0000000000407946 in cache_update_entry (id=1761, dn=0xd72580 "uid=neuer1,cn=lehrer,cn=users,ou=711,dc=univention,dc=qa",
    entry=0x7fffffffdcf0) at cache.c:411
#5  0x00000000004079cc in cache_update_entry_lower (id=1761,
    dn=0xd61570 "uid=neuer1,cn=lehrer,cn=users,ou=711,dc=univention,dc=qa", entry=0x7fffffffdcf0) at cache.c:432
#6  0x000000000040bced in change_update_entry (lp=0x615110, id=1761, ldap_entry=0xbe1110, command=97 'a') at change.c:267
#7  0x000000000040c680 in change_update_dn (lp=0x615110, id=1761,
    dn=0xd49580 "uid=neuer1,cn=lehrer,cn=users,ou=711,dc=univention,dc=qa", command=97 'a', lp_local=0x615190) at change.c:501
#8  0x000000000040498b in notifier_listen (lp=0x615110, kp=0x0, write_transaction_file=0, lp_local=0x615190) at notifier.c:185
#9  0x000000000040444e in main (argc=16, argv=0x7fffffffe0c8) at main.c:587
(gdb) up
#1  0x00007ffff6cfb0f0 in buffered_vfprintf (s=0x7ffff7010860, format=0x4107af " bytes for %s", args=0x28) at vfprintf.c:2255

diff --git a/branches/ucs-3.0/ucs/management/univention-directory-listener/src/cache.c b/branches/ucs-3.0/ucs/management/univention-directory-listener/src/cache.c
index 23b2d89..2a619ae 100644
--- a/branches/ucs-3.0/ucs/management/univention-directory-listener/src/cache.c
+++ b/branches/ucs-3.0/ucs/management/univention-directory-listener/src/cache.c
@@ -408,7 +408,7 @@ inline int cache_update_entry(NotifierID id, char *dn, CacheEntry *entry)
 		free(data.data);
 		return rv;
 	}
-	univention_debug(UV_DEBUG_LISTENER, UV_DEBUG_ALL, "put %d bytes for %s", (data.size, dn));
+	univention_debug(UV_DEBUG_LISTENER, UV_DEBUG_ALL, "put %d bytes for %s", data.size, dn);
 
 
 #ifdef WITH_DB42
Comment 1 Philipp Hahn univentionstaff 2012-03-16 22:11:12 CET
Der Fehler wurde entsprechend korrigiert.
Um zukünftige ähnliche Fehler zu vermeiden wurde im Makefile zusätzlich -Werror aufgenommen, damit Warnungen zukünftig zum Abbruch des Build-Vorgangs führen. Die noch vorhandenen anderen Warnungen wurden dabei ebenfalls korrigiert.

Außerdem wurde ein Debug-Paket hinzugefügt, da daß bei weiteren Problemen mit dem Listener die Debug-Informationen zur Verfügung stehen. (svn31534)

svn31535, univention-directory-listener_6.0.23-1.150.201203162158
ChangeLog:
\item A segmentation fault was fixed in the \ucsName{univention-directory-listener} (\ucsBug{26548}).
Comment 2 Janis Meybohm univentionstaff 2012-06-05 18:11:38 CEST
Bei einem Kunden aufgefallen, Ticket#: 2012053121002431
Comment 3 Stefan Gohmann univentionstaff 2012-07-02 09:45:24 CEST
Changelog: OK
Code: OK
Problem konnte nicht reproduziert werden: OK
Comment 4 Stefan Gohmann univentionstaff 2012-07-20 15:24:47 CEST
UCS 3.0-2 has been released: 
  http://forum.univention.de/viewtopic.php?f=54&t=1905

If this error occurs again, please use "Clone This Bug".