Crash in cypasswd when access denied
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cyphesis |
Confirmed
|
Low
|
Unassigned |
Bug Description
Cypasswd is crashing when access denied:
$ ./cypasswd -a admin
New admin password:
Retype admin password:
2009-05-03T23:02:36 NOTICE DATABASE: row number 0 is out of range 0..-1
Segmentation fault (core dumped)
Backtrace:
(gdb) bt
#0 strlen () at ../sysdeps/
#1 0x000000000040a66b in std::char_
at /usr/lib/
#2 std::string::assign () at /usr/lib/
#3 std::string:
#4 Database::newId (this=0x250fc70, id=@0x7fff20bb8ae0) at ../../common/
#5 0x0000000000414048 in AccountBase:
at ../../common/
#6 0x00000000004076cd in main (argc=<value optimized out>, argv=<value optimized out>) at ../../tools/
Simple cypasswd run tells that access denied:
$ ./cypasswd
2009-05-03T23:04:40 ERROR Error selecting row.
2009-05-03T23:04:40 ERROR DATABASE: ERROR: access denied connecting accounts
Account admin does not yet exist
Changed in cyphesis: | |
importance: | Undecided → Low |
status: | New → Confirmed |
I had usedatabase=false in ~/.cyphesis.vconf.