| Bug #16157 | InnoDB crashes when main location settings are empty | ||
|---|---|---|---|
| Submitted: | 3 Jan 2006 16:45 | Modified: | 19 Jun 2010 0:03 |
| Reporter: | Matthew Lord | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | MySQL Server: InnoDB storage engine | Severity: | S2 (Serious) |
| Version: | 5.0.x/4.1.XX | OS: | Linux (Linux/Windows) |
| Assigned to: | CPU Architecture: | Any | |
[3 Jan 2006 16:45]
Matthew Lord
[3 Jan 2006 16:50]
Matthew Lord
Test config
Attachment: my.cnf (application/octet-stream, text), 105 bytes.
[3 Jan 2006 16:59]
MySQL Verification Team
C:\mysql\bin>mysqld-nt --standalone --console InnoDB: The first specified data file ibdata1 did not exist: InnoDB: a new database to be created! 060103 14:55:26 InnoDB: Setting file ibdata1 size to 10 MB InnoDB: Database physically writes the file full: wait... 060103 14:55:26 [ERROR] mysqld-nt: Got signal 11. Aborting! 060103 14:55:26 [ERROR] Aborting 060103 14:55:26 [Note] mysqld-nt: Shutdown complete
[3 Jan 2006 21:27]
Heikki Tuuri
Hi!
I am assigning this to Osku. The reason for the crash was that the syntax checking of the innodb_log_group_home_dir string was incomplete. A similar bug was in the syntax checking of innodb_data_file_path.
This little bug should only be fixed in 5.0, not in 4.1. Below I have posted a patch over 5.0.16. Osku should test this with different my.cnf combinations.
Thank you,
Heikki
heikki@127:~/mysql-5.0.16/innobase/srv$ diff -bu srv0start.c srv0startfixed.c
--- srv0start.c 2006-01-03 23:23:20.956588352 +0200
+++ srv0startfixed.c 2006-01-03 23:21:50.975267592 +0200
@@ -233,6 +233,13 @@
}
}
+ if (i == 0) {
+ /* If innodb_data_file_path was defined in my.cnf, it must
+ contain at least one data file definition */
+
+ return(FALSE);
+ }
+
*data_file_names = (char**)ut_malloc(i * sizeof(void*));
*data_file_sizes = (ulint*)ut_malloc(i * sizeof(ulint));
*data_file_is_raw_partition = (ulint*)ut_malloc(i * sizeof(ulint));
@@ -379,6 +386,13 @@
}
}
+ if (i != 1) {
+ /* If innodb_log_group_home_dir was defined in my.cnf, it must
+ contain exactly one path definition under current MySQL */
+
+ return(FALSE);
+ }
+
*log_group_home_dirs = (char**) ut_malloc(i * sizeof(void*));
/* Then store the actual values to our array */
[31 Jan 2006 18:58]
Alexander Ivanov
Fixed in 5.0.19. Patch: http://lists.mysql.com/commits/1958.
[2 Feb 2006 17:59]
Mike Hillyer
Documented in 5.0.19 changelog:
<listitem>
<para>
Setting InnoDB path settings to an empty string caused InnoDB
storage engine to crash upon server startup. (Bug #16157)
</para>
</listitem>
[5 May 2010 15:02]
Bugs System
Pushed into 5.1.47 (revid:joro@sun.com-20100505145753-ivlt4hclbrjy8eye) (version source revid:vasil.dimov@oracle.com-20100331130613-8ja7n0vh36a80457) (merge vers: 5.1.46) (pib:16)
[6 May 2010 1:47]
Paul DuBois
Push resulted from incorporation of InnoDB tree. No changes pertinent to this bug. Re-closing.
[28 May 2010 6:02]
Bugs System
Pushed into mysql-next-mr (revid:alik@sun.com-20100524190136-egaq7e8zgkwb9aqi) (version source revid:vasil.dimov@oracle.com-20100331130613-8ja7n0vh36a80457) (pib:16)
[28 May 2010 6:30]
Bugs System
Pushed into 6.0.14-alpha (revid:alik@sun.com-20100524190941-nuudpx60if25wsvx) (version source revid:vasil.dimov@oracle.com-20100331130613-8ja7n0vh36a80457) (merge vers: 5.1.46) (pib:16)
[28 May 2010 6:58]
Bugs System
Pushed into 5.5.5-m3 (revid:alik@sun.com-20100524185725-c8k5q7v60i5nix3t) (version source revid:vasil.dimov@oracle.com-20100331130613-8ja7n0vh36a80457) (merge vers: 5.1.46) (pib:16)
[29 May 2010 15:28]
Paul DuBois
Push resulted from incorporation of InnoDB tree. No changes pertinent to this bug. Re-closing.
[17 Jun 2010 12:05]
Bugs System
Pushed into 5.1.47-ndb-7.0.16 (revid:martin.skold@mysql.com-20100617114014-bva0dy24yyd67697) (version source revid:vasil.dimov@oracle.com-20100331130613-8ja7n0vh36a80457) (merge vers: 5.1.46) (pib:16)
[17 Jun 2010 12:50]
Bugs System
Pushed into 5.1.47-ndb-6.2.19 (revid:martin.skold@mysql.com-20100617115448-idrbic6gbki37h1c) (version source revid:vasil.dimov@oracle.com-20100331130613-8ja7n0vh36a80457) (merge vers: 5.1.46) (pib:16)
[17 Jun 2010 13:33]
Bugs System
Pushed into 5.1.47-ndb-6.3.35 (revid:martin.skold@mysql.com-20100617114611-61aqbb52j752y116) (version source revid:vasil.dimov@oracle.com-20100331130613-8ja7n0vh36a80457) (merge vers: 5.1.46) (pib:16)
